mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[dcn] extract video ids in season entries
This commit is contained in:
parent
a9bbd26f1d
commit
3fc088f8c7
1 changed files with 6 additions and 2 deletions
|
@ -5,7 +5,10 @@
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import compat_urllib_parse
|
from ..compat import (
|
||||||
|
compat_urllib_parse,
|
||||||
|
compat_str,
|
||||||
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
int_or_none,
|
int_or_none,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
|
@ -186,7 +189,8 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for video in show['videos']:
|
for video in show['videos']:
|
||||||
|
video_id = compat_str(video['id'])
|
||||||
entries.append(self.url_result(
|
entries.append(self.url_result(
|
||||||
'http://www.dcndigital.ae/media/%s' % video['id'], 'DCNVideo'))
|
'http://www.dcndigital.ae/media/%s' % video_id, 'DCNVideo', video_id))
|
||||||
|
|
||||||
return self.playlist_result(entries, season_id, title)
|
return self.playlist_result(entries, season_id, title)
|
||||||
|
|
Loading…
Reference in a new issue