1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 23:15:35 +08:00

[ccc] Support playlist download for media.ccc.de

This commit is contained in:
Tobias Kunze 2017-10-27 13:22:13 +02:00
parent 30e6161799
commit 826fa9c0e5
2 changed files with 21 additions and 1 deletions

View File

@ -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,
)

View File

@ -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