浏览代码

[dbtv] Make sure the 'id' field is a string

Jaime Marquínez Ferrándiz 10 年之前
父节点
当前提交
c8f167823f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/dbtv.py

+ 2 - 1
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']),