mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-11 09:51:23 +01:00
Compare commits
7 Commits
a98bad9c4b
...
4cc9137f11
Author | SHA1 | Date | |
---|---|---|---|
|
4cc9137f11 | ||
|
b461c28ba2 | ||
|
6ea78d890d | ||
|
1301c71868 | ||
|
34bbe847fd | ||
|
9a3c374589 | ||
|
13d896e9b3 |
|
@ -2,6 +2,7 @@ from .common import InfoExtractor
|
|||
from ..utils import (
|
||||
traverse_obj,
|
||||
unified_timestamp,
|
||||
strip_or_none,
|
||||
)
|
||||
|
||||
|
||||
|
@ -20,10 +21,30 @@ 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,
|
||||
},
|
||||
}]
|
||||
|
||||
|
@ -39,13 +60,17 @@ class DuoplayIE(InfoExtractor):
|
|||
|
||||
return {
|
||||
'id': video_id,
|
||||
'title': traverse_obj(ep, 'subtitle'),
|
||||
'description': traverse_obj(ep, 'synopsis'),
|
||||
# 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')),
|
||||
'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'),
|
||||
'episode_number': traverse_obj(ep, 'episode_nr'),
|
||||
# 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'),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user