Explorar o código

[qqmusic] Code fixes

ping %!s(int64=10) %!d(string=hai) anos
pai
achega
86ec1e487c
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      youtube_dl/extractor/qqmusic.py

+ 1 - 2
youtube_dl/extractor/qqmusic.py

@@ -212,10 +212,9 @@ class QQMusicToplistIE(QQPlaylistBaseIE):
             list_id, 'Download toplist page')
 
         entries = []
-        jsonp_url = ""
         if list_type == 'top':
             jsonp_url = "http://y.qq.com/y/static/toplist/json/top/%s/1.js" % num_id
-        elif list_type == 'global':
+        else:
             jsonp_url = "http://y.qq.com/y/static/toplist/json/global/%s/1_1.js" % num_id
         
         list = self._download_json(jsonp_url, list_id, note='Retrieve toplist json',