aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-09-13 02:57:14 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-09-13 02:59:43 +0800
commitb264c2130221912adfc7cc35d73c2a88d79eafeb (patch)
tree19a50dd4256c18e5fa6cdaf71f0eba0096f59db1 /youtube_dl/extractor
parent349b3a2ea0d6c264facacd92508516e8530108b2 (diff)
[tudou] Use single quotes and compat_str
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/tudou.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py
index 53ba8511f..5f7ac4b35 100644
--- a/youtube_dl/extractor/tudou.py
+++ b/youtube_dl/extractor/tudou.py
@@ -3,6 +3,7 @@
from __future__ import unicode_literals
from .common import InfoExtractor
+from ..compat import compat_str
class TudouIE(InfoExtractor):
@@ -32,7 +33,7 @@ class TudouIE(InfoExtractor):
_PLAYER_URL = 'http://js.tudouui.com/bin/lingtong/PortalPlayer_177.swf'
def _url_for_id(self, video_id, quality=None):
- info_url = "http://v2.tudou.com/f?id=" + str(video_id)
+ info_url = 'http://v2.tudou.com/f?id=' + compat_str(video_id)
if quality:
info_url += '&hd' + quality
xml_data = self._download_xml(info_url, video_id, "Opening the info XML page")