mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
[srgssr] fix rts video extraction(closes #11831)
This commit is contained in:
parent
c60089c022
commit
b8a03b6660
1 changed files with 0 additions and 3 deletions
|
@ -48,9 +48,6 @@ def get_media_data(self, bu, media_type, media_id):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
bu, media_type, media_id = re.match(self._VALID_URL, url).groups()
|
bu, media_type, media_id = re.match(self._VALID_URL, url).groups()
|
||||||
|
|
||||||
if bu == 'rts':
|
|
||||||
return self.url_result('rts:%s' % media_id, 'RTS')
|
|
||||||
|
|
||||||
media_data = self.get_media_data(bu, media_type, media_id)
|
media_data = self.get_media_data(bu, media_type, media_id)
|
||||||
|
|
||||||
metadata = media_data['AssetMetadatas']['AssetMetadata'][0]
|
metadata = media_data['AssetMetadatas']['AssetMetadata'][0]
|
||||||
|
|
Loading…
Reference in a new issue