File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ def _update_andruzzzhka_scrapes(self):
39
39
print ("Updating Local BeatSaver Cache. This helps avoiding spamming the API hundreds of times." )
40
40
print ("Downloading beatSaverScrappedData (helps to avoid spamming beatsaver API)..." )
41
41
42
+ self .beatsaver_cachefile .unlink (missing_ok = True )
43
+
42
44
dl_filename = str (self .tmp_dir .joinpath ("andruzzzhka_scrape.zip" ))
43
45
wget .download (beatsaver_scraped_data_url , dl_filename )
44
46
@@ -51,7 +53,8 @@ def _update_andruzzzhka_scrapes(self):
51
53
except zipfile .BadZipFile as e :
52
54
# Workaround for https://github.com/andruzzzhka/BeatSaberScrappedData/issues/6
53
55
print (f"Error when extracting zipfile:\n { e } \n Downloading uncompressed json instead (will be slower!)..." )
54
- wget .download ("https://raw.githubusercontent.com/andruzzzhka/BeatSaberScrappedData/master/beatSaverScrappedData.json" )
56
+ wget .download ("https://raw.githubusercontent.com/andruzzzhka/BeatSaberScrappedData/master/beatSaverScrappedData.json" ,
57
+ out = str (self .beatsaver_cachefile ))
55
58
56
59
last_updated = time .time ()
57
60
print ("\n Cache ready." )
You can’t perform that action at this time.
0 commit comments