Sfoglia il codice sorgente

fix increment operator

netanel 11 anni fa
parent
commit
754f0008ec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      youtube_dl/extractor/eighttracks.py

+ 1 - 1
youtube_dl/extractor/eighttracks.py

@@ -135,7 +135,7 @@ class EightTracksIE(InfoExtractor):
                     if download_tries > 3:
                         raise
                     else:
-                        ++download_tries
+                        download_tries += 1
                         time.sleep(avg_song_duration)
 
             api_data = json.loads(api_json)