mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-24 05:12:03 +00:00
[ccc:playlist] Add extractor
This commit is contained in:
parent
280913800d
commit
ae8c13565e
2 changed files with 28 additions and 1 deletions
|
@ -75,3 +75,27 @@ def _real_extract(self, url):
|
|||
'tags': event_data.get('tags'),
|
||||
'formats': formats,
|
||||
}
|
||||
|
||||
|
||||
class CCCPlaylistIE(InfoExtractor):
|
||||
IE_NAME = 'media.ccc.de:lists'
|
||||
_VALID_URL = r'https?://(?:www\.)?media\.ccc\.de/c/(?P<id>[^/?#&]+)'
|
||||
_TESTS = [{
|
||||
'url': 'https://media.ccc.de/c/30c3',
|
||||
'info_dict': {
|
||||
'title': '30C3',
|
||||
'id': '30c3',
|
||||
},
|
||||
'playlist_count': 135,
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
acronym = self._match_id(url).lower()
|
||||
|
||||
conf = self._download_json('https://media.ccc.de/public/conferences/' + acronym, acronym)
|
||||
|
||||
return self.playlist_result(
|
||||
[self.url_result(event['frontend_link']) for event in conf['events']],
|
||||
acronym,
|
||||
conf['title'],
|
||||
)
|
||||
|
|
|
@ -177,7 +177,10 @@
|
|||
CBSNewsLiveVideoIE,
|
||||
)
|
||||
from .cbssports import CBSSportsIE
|
||||
from .ccc import CCCIE
|
||||
from .ccc import (
|
||||
CCCIE,
|
||||
CCCPlaylistIE,
|
||||
)
|
||||
from .ccma import CCMAIE
|
||||
from .cctv import CCTVIE
|
||||
from .cda import CDAIE
|
||||
|
|
Loading…
Reference in a new issue