aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-01-10 07:45:41 +0100
committerremitamine <remitamine@gmail.com>2016-01-10 07:45:41 +0100
commit3fc088f8c7f61026943a62fc28e051a7d3a6bdd5 (patch)
tree54630a889feeccbc3f0bf63eb6302661aeec52c5 /youtube_dl/extractor
parenta9bbd26f1d2bb45205f9fbd2626569522049e40e (diff)
[dcn] extract video ids in season entries
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/dcn.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/dcn.py b/youtube_dl/extractor/dcn.py
index 8f48571de..15a1c40f7 100644
--- a/youtube_dl/extractor/dcn.py
+++ b/youtube_dl/extractor/dcn.py
@@ -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)