Compare commits

..

No commits in common. "4cc9137f11932887be7452d33c856d697da594fc" and "a98bad9c4b43ab2a3e44a3352881a37ce118c7b3" have entirely different histories.

View File

@ -2,7 +2,6 @@ from .common import InfoExtractor
from ..utils import (
traverse_obj,
unified_timestamp,
strip_or_none,
)
@ -21,30 +20,10 @@ class DuoplayIE(InfoExtractor):
'upload_date': '20170523',
'timestamp': 1495567800,
'series': 'Siberi võmm',
'series_id': 4312,
'season': 'Season 2',
'season_number': 2,
'episode': 'Operatsioon "Öö"',
'episode_number': 12,
'episode_id': 24,
},
}, {
'note': 'Empty title',
'url': 'https://duoplay.ee/17/uhikarotid?ep=14',
'md5': '6aca68be71112314738dd17cced7f8bf',
'info_dict': {
'id': '17',
'ext': 'mp4',
'title': 'Episode 14',
'thumbnail': r're:https://.+\.jpg(?:\?c=\d+)?$',
'description': 'md5:4719b418e058c209def41d48b601276e',
'upload_date': '20100916',
'timestamp': 1284661800,
'series': 'Ühikarotid',
'series_id': 17,
'season': 'Season 2',
'season_number': 2,
'episode_id': 14,
},
}]
@ -60,17 +39,13 @@ class DuoplayIE(InfoExtractor):
return {
'id': video_id,
# fallback to absolute "episode_id" value
'title': traverse_obj(ep, 'subtitle') or f"Episode {traverse_obj(ep, 'episode_id')}",
'description': strip_or_none(traverse_obj(ep, 'synopsis')),
'title': traverse_obj(ep, 'subtitle'),
'description': traverse_obj(ep, 'synopsis'),
'thumbnail': traverse_obj(ep, ('images', 'original')),
'formats': self._extract_m3u8_formats(manifest_url, video_id, 'mp4'),
'timestamp': unified_timestamp(traverse_obj(ep, 'airtime') + ' +0200'),
'series': traverse_obj(ep, 'title'),
'series_id': traverse_obj(ep, 'telecast_id'),
'season_number': traverse_obj(ep, 'season_id'),
'episode': traverse_obj(ep, 'subtitle'),
# fallback to absolute "episode_id" value
'episode_number': traverse_obj(ep, 'episode_nr') or traverse_obj(ep, 'episode_id'),
'episode_id': traverse_obj(ep, 'episode_id'),
'episode_number': traverse_obj(ep, 'episode_nr'),
}