[youku] Simplify (Closes #6717)
authorSergey M․ <dstftw@gmail.com>
Tue, 1 Sep 2015 16:26:17 +0000 (22:26 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 1 Sep 2015 16:26:17 +0000 (22:26 +0600)
youtube_dl/extractor/youku.py

index 6219bc1bb915ca17117c34fe7e7c98e915e2cfee..3447e7a6f295e0e1ee7faedea7245c57d9054e23 100644 (file)
@@ -55,7 +55,7 @@ class YoukuIE(InfoExtractor):
         'info_dict': {
             'id': 'XNjA1NzA2Njgw',
             'ext': 'flv',
-            'title': u'邢義田复旦讲座之想象中的胡人—从“左衽孔子”说起',
+            'title': '邢義田复旦讲座之想象中的胡人—从“左衽孔子”说起',
         },
         'params': {
             'videopassword': '100600',
@@ -201,7 +201,7 @@ class YoukuIE(InfoExtractor):
         # request basic data
         basic_data_url = 'http://v.youku.com/player/getPlayList/VideoIDS/%s' % video_id
         if video_password:
-            basic_data_url = '%s?password=%s' % (basic_data_url, video_password)
+            basic_data_url += '?password=%s' % video_password
 
         data1 = retrieve_data(
             basic_data_url,