mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 03:02:56 +08:00
[ccc] Support playlist download for media.ccc.de
This commit is contained in:
parent
30e6161799
commit
826fa9c0e5
@ -75,3 +75,20 @@ class CCCIE(InfoExtractor):
|
||||
'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>[^/?#&]+)'
|
||||
|
||||
def _real_extract(self, url):
|
||||
display_id = self._match_id(url).lower()
|
||||
|
||||
all_conferences = self._download_json('https://media.ccc.de/public/conferences', display_id)
|
||||
event = next(filter(lambda x: x.get('acronym').lower() == display_id, all_conferences['conferences']))
|
||||
event_list = self._download_json(event['url'], display_id)['events']
|
||||
|
||||
return self.playlist_result(
|
||||
[self.url_result(event['frontend_link']) for event in event_list],
|
||||
display_id,
|
||||
)
|
||||
|
@ -171,7 +171,10 @@ from .cbsnews import (
|
||||
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 New Issue
Block a user