]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dcn] extract video ids in season entries
authorremitamine <remitamine@gmail.com>
Sun, 10 Jan 2016 06:45:41 +0000 (07:45 +0100)
committerremitamine <remitamine@gmail.com>
Sun, 10 Jan 2016 06:45:41 +0000 (07:45 +0100)
youtube_dl/extractor/dcn.py

index 8f48571de2717fec01c4b574a2454cac7f5738c6..15a1c40f7a07c36136a0142148af3f7f44f49733 100644 (file)
@@ -5,7 +5,10 @@ import re
 import base64
 
 from .common import InfoExtractor
-from ..compat import compat_urllib_parse
+from ..compat import (
+    compat_urllib_parse,
+    compat_str,
+)
 from ..utils import (
     int_or_none,
     parse_iso8601,
@@ -186,7 +189,8 @@ class DCNSeasonIE(InfoExtractor):
 
                 entries = []
                 for video in show['videos']:
+                    video_id = compat_str(video['id'])
                     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)