Compare commits

...

4 Commits

Author SHA1 Message Date
ncameron03 9fbf11385e
Merge cfc4745037 into 1a366403d9 2024-04-28 17:56:49 +02:00
bashonly 1a366403d9
[build] Run `macos_legacy` job on `macos-12` (#9804)
`macos-latest` has been bumped to `macos-14-arm64` which breaks the builds

Authored by: bashonly
2024-04-28 15:35:17 +00:00
Simon Sawicki 7e26bd53f9
[core/windows] Fix tests for `sys.executable` with spaces (Fix for 64766459e3)
Authored by: Grub4K
2024-04-28 15:47:55 +02:00
ncameron03 cfc4745037 mover Add extractor 2024-04-26 20:10:45 -04:00
4 changed files with 50 additions and 5 deletions

View File

@ -300,7 +300,7 @@ jobs:
macos_legacy:
needs: process
if: inputs.macos_legacy
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@v4

View File

@ -2090,10 +2090,7 @@ Line 1
args = [sys.executable, '-c', 'import sys; print(end=sys.argv[1])', argument, 'end']
assert run_shell(args) == expected
escaped = shell_quote(argument, shell=True)
args = f'{sys.executable} -c "import sys; print(end=sys.argv[1])" {escaped} end'
assert run_shell(args) == expected
assert run_shell(shell_quote(args, shell=True)) == expected
if __name__ == '__main__':

View File

@ -1116,6 +1116,7 @@ from .motherless import (
MotherlessUploaderIE,
)
from .motorsport import MotorsportIE
from .mover import MoverIE
from .moviepilot import MoviepilotIE
from .moview import MoviewPlayIE
from .moviezine import MoviezineIE

47
yt_dlp/extractor/mover.py Normal file
View File

@ -0,0 +1,47 @@
from .common import InfoExtractor
class MoverIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?mover\.uz/watch/(?P<id>[a-zA-Z0-9]+)'
_TESTS = [{
'url': 'https://mover.uz/watch/cMSqJpZm',
'md5': 'a0b50df896154eda275a37219c214fd4',
'info_dict': {
'id': 'cMSqJpZm',
'ext': 'mp4',
'title': '16.38 A Fool Moon Night 98.51% 4824x combo osu! mania',
'thumbnail': 'https://i.mover.uz/cMSqJpZm_h2.jpg',
}
}, {
'url': 'https://mover.uz/watch/kLB0KQKe',
'md5': '3c7dc53488675ef003db803c2d0f124e',
'info_dict': {
'id': 'kLB0KQKe',
'ext': 'mp4',
'title': 'DEADPOOL & WOLVERINE Trailer (2024) Extended | 4K UHD',
'thumbnail': 'https://i.mover.uz/kLB0KQKe_h2.jpg',
}
}, {
'url': 'https://mover.uz/watch/yYfmpNRa',
'md5': 'a142825db45c9ef8f495635b6f227f3a',
'info_dict': {
'id': 'yYfmpNRa',
'ext': 'mp4',
'title': 'Новое поколение Mazda 6. Дождались',
'thumbnail': 'https://i.mover.uz/yYfmpNRa_h2.jpg',
}
}]
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
title = self._html_search_meta(['og:title'], webpage, default=None)
thumbnail = self._html_search_meta(['og:image'], webpage, default=None)
mp4_url = 'https://v.mover.uz/' + video_id + "_h.mp4"
return {
'id': video_id,
'title': title,
'thumbnail': thumbnail,
'url': mp4_url,
}