about summary refs log tree commit diff
path: root/youtube_dl/extractor/dbtv.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-21 16:57:07 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-21 16:57:07 +0100
commitc8f167823f483b4dd043e011722ccce9aa8223b4 (patch)
treebe9793865efdd4728f34a6dc6306f9f06b76e38e /youtube_dl/extractor/dbtv.py
parent70f6796e7d644b78ed346163287a148cd72733e9 (diff)
downloadyoutube-dl-c8f167823f483b4dd043e011722ccce9aa8223b4.tar.gz
youtube-dl-c8f167823f483b4dd043e011722ccce9aa8223b4.tar.xz
youtube-dl-c8f167823f483b4dd043e011722ccce9aa8223b4.zip
[dbtv] Make sure the 'id' field is a string
Diffstat (limited to 'youtube_dl/extractor/dbtv.py')
-rw-r--r--youtube_dl/extractor/dbtv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dbtv.py b/youtube_dl/extractor/dbtv.py
index 1d3e2ff08..212217625 100644
--- a/youtube_dl/extractor/dbtv.py
+++ b/youtube_dl/extractor/dbtv.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
+from ..compat import compat_str
 from ..utils import (
     float_or_none,
     int_or_none,
@@ -61,7 +62,7 @@ class DBTVIE(InfoExtractor):
         self._sort_formats(formats)
 
         return {
-            'id': video['id'],
+            'id': compat_str(video['id']),
             'display_id': display_id,
             'title': video['title'],
             'description': clean_html(video['desc']),