Compare commits

...

3 Commits

Author SHA1 Message Date
Safouane Aarab
50f5642332
Update yt_dlp/extractor/allstar.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
2023-11-19 16:20:20 +01:00
sfn
e202299ebe update thumbnail test 2023-11-19 16:17:55 +01:00
sfn
0b30ffb24d add clipImageSource to the thumbnails 2023-11-19 14:27:34 +01:00

View File

@ -15,6 +15,7 @@ from ..utils import (
_FIELDS = ''' _FIELDS = '''
_id _id
clipImageSource
clipImageThumb clipImageThumb
clipLink clipLink
clipTitle clipTitle
@ -68,7 +69,7 @@ class AllstarBaseIE(InfoExtractor):
'display_id': ('shareId', {str}), 'display_id': ('shareId', {str}),
'title': ('clipTitle', {str}), 'title': ('clipTitle', {str}),
'url': ('clipLink', {media_url_or_none}), 'url': ('clipLink', {media_url_or_none}),
'thumbnail': ('clipImageThumb', {media_url_or_none}), 'thumbnails': (('clipImageThumb', 'clipImageSource'), {'url': {media_url_or_none}}),
'duration': ('clipLength', {int_or_none}), 'duration': ('clipLength', {int_or_none}),
'filesize': ('clipSizeBytes', {int_or_none}), 'filesize': ('clipSizeBytes', {int_or_none}),
'timestamp': ('createdDate', {functools.partial(int_or_none, scale=1000)}), 'timestamp': ('createdDate', {functools.partial(int_or_none, scale=1000)}),
@ -111,7 +112,7 @@ class AllstarIE(AllstarBaseIE):
'id': '64482c2da9eec30008a67d1b', 'id': '64482c2da9eec30008a67d1b',
'title': '4K on Inferno', 'title': '4K on Inferno',
'url': 'md5:66befb5381eef0c9456026386c25fa55', 'url': 'md5:66befb5381eef0c9456026386c25fa55',
'thumbnail': 'md5:33c520f681627826a95ac43b092ecd2b', 'thumbnail': r're:https://media\.allstar\.gg/.+\.(?:png|jpg)$',
'uploader': 'chrk.', 'uploader': 'chrk.',
'ext': 'mp4', 'ext': 'mp4',
'duration': 20, 'duration': 20,
@ -130,7 +131,7 @@ class AllstarIE(AllstarBaseIE):
'title': 'AK-47 3K on Mirage', 'title': 'AK-47 3K on Mirage',
'url': 'md5:dde224fd12f035c0e2529a4ae34c4283', 'url': 'md5:dde224fd12f035c0e2529a4ae34c4283',
'ext': 'mp4', 'ext': 'mp4',
'thumbnail': 'md5:90564b121f5fd7a4924920ef45614634', 'thumbnail': r're:https://media\.allstar\.gg/.+\.(?:png|jpg)$',
'duration': 16, 'duration': 16,
'filesize': 30175859, 'filesize': 30175859,
'timestamp': 1688333419, 'timestamp': 1688333419,
@ -147,7 +148,7 @@ class AllstarIE(AllstarBaseIE):
'display_id': 'APQLGM2IMXW', 'display_id': 'APQLGM2IMXW',
'title': 'cherokee Rapid Fire Snipers Montage', 'title': 'cherokee Rapid Fire Snipers Montage',
'url': 'md5:a3ee356022115db2b27c81321d195945', 'url': 'md5:a3ee356022115db2b27c81321d195945',
'thumbnail': 'md5:f1a5e811864e173f180b738d956356f4', 'thumbnail': r're:https://media\.allstar\.gg/.+\.(?:png|jpg)$',
'ext': 'mp4', 'ext': 'mp4',
'timestamp': 1681810448, 'timestamp': 1681810448,
'uploader': 'cherokee', 'uploader': 'cherokee',
@ -163,7 +164,7 @@ class AllstarIE(AllstarBaseIE):
'display_id': 'RILJMH6QOS', 'display_id': 'RILJMH6QOS',
'title': 'cherokee Rapid Fire Snipers Montage', 'title': 'cherokee Rapid Fire Snipers Montage',
'url': 'md5:d5672e6f88579730c2310a80fdbc4030', 'url': 'md5:d5672e6f88579730c2310a80fdbc4030',
'thumbnail': 'md5:60872f0d236863bb9a6f3dff1623403c', 'thumbnail': r're:https://media\.allstar\.gg/.+\.(?:png|jpg)$',
'ext': 'mp4', 'ext': 'mp4',
'timestamp': 1688365434, 'timestamp': 1688365434,
'uploader': 'cherokee', 'uploader': 'cherokee',