[ard] Add extraction of is_live field

This commit is contained in:
TinyToweringTree 2019-09-03 10:54:00 +02:00
parent 716514b92b
commit 799d33c715

View File

@ -420,7 +420,7 @@ class ARDMediathekBaseIE(InfoExtractor):
class ARDMediathekIE(ARDMediathekBaseIE):
_VALID_URL = r'https://(?:beta|www)\.ardmediathek\.de/[^/]+/(?:player|live)/(?P<video_id>[a-zA-Z0-9]+)(?:/(?P<display_id>[^/?#]+))?'
_VALID_URL = r'https://(?:beta|www)\.ardmediathek\.de/[^/]+/(?P<mode>player|live)/(?P<video_id>[a-zA-Z0-9]+)(?:/(?P<display_id>[^/?#]+))?'
_TESTS = [{
# available till 26.07.2022
'url': 'https://www.ardmediathek.de/ard/player/Y3JpZDovL2JyLmRlL3ZpZGVvLzUwY2YzZTVhLTk0NjYtNGFiMS04NjAzLTFjM2VkNWFjYjM0YQ/',
@ -785,6 +785,7 @@ class ARDMediathekIE(ARDMediathekBaseIE):
res = {
'id': video_id,
'display_id': display_id,
'is_live': mobj.group('mode') == 'live',
}
res.update(self._extract_metadata(data))