summary refs log tree commit diff
diff options
context:
space:
mode:
authornetanel <netanelmaman0@gmail.com>2014-12-06 09:20:35 +0200
committernetanel <netanelmaman0@gmail.com>2014-12-06 09:20:35 +0200
commit754f0008ec6b87316ce3e4807f150726ff2af3c5 (patch)
treea15f95765f4d8af8abc91191444177de36d2976d
parent7b61ac3ddf0bfe660266e70fc7c10f048758698f (diff)
downloadyoutube-dl-754f0008ec6b87316ce3e4807f150726ff2af3c5.tar.gz
youtube-dl-754f0008ec6b87316ce3e4807f150726ff2af3c5.tar.xz
youtube-dl-754f0008ec6b87316ce3e4807f150726ff2af3c5.zip
fix increment operator
-rw-r--r--youtube_dl/extractor/eighttracks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/eighttracks.py b/youtube_dl/extractor/eighttracks.py
index 101a09699..f093592a8 100644
--- a/youtube_dl/extractor/eighttracks.py
+++ b/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)