mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-14 07:37:25 +08:00
[rtvs] Add new extractor
This commit is contained in:
parent
3c1b6b6135
commit
fd07f6dbd0
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from .common import InfoExtractor
|
||||
|
||||
|
||||
class RtvsExtractorIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?rtvs\.sk/.*/archiv/[0-9]*/(?P<id>[0-9]+)'
|
||||
_TESTS = [{
|
||||
@ -12,7 +13,7 @@ class RtvsExtractorIE(InfoExtractor):
|
||||
'info_dict': {
|
||||
'id': '414872',
|
||||
'ext': 'mp3',
|
||||
'title': u'Ostrov pokladov 1 časť.mp3',
|
||||
'title': 'Ostrov pokladov 1 časť.mp3'
|
||||
}
|
||||
}, {
|
||||
# tv archive
|
||||
@ -21,9 +22,9 @@ class RtvsExtractorIE(InfoExtractor):
|
||||
'info_dict': {
|
||||
'id': '63118',
|
||||
'ext': 'mp4',
|
||||
'title': u'Amaro Džives - Náš deň',
|
||||
'description': u'Galavečer pri príležitosti Medzinárodného dňa Rómov.'
|
||||
}
|
||||
'title': 'Amaro Džives - Náš deň',
|
||||
'description': 'Galavečer pri príležitosti Medzinárodného dňa Rómov.'
|
||||
}
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
@ -35,4 +36,3 @@ class RtvsExtractorIE(InfoExtractor):
|
||||
playlist = self._download_json(playlist_url, video_id, "Downloading playlist")
|
||||
jwplayer_data = playlist[0]
|
||||
return self._parse_jwplayer_data(jwplayer_data, video_id=video_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user