minor stuff

This commit is contained in:
eneller
2024-08-14 01:02:41 +02:00
parent 3be8adb748
commit cbbe50878c
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ data.sort_values(by='note', inplace=True)
acc_note = 0.0
acc_lp = 0
# the use of iterrows and all iteration over dataframes is discouraged for performance reasons
for index, row in data.iterrows():
for _ , row in data.iterrows():
if acc_lp + row['lp'] < target_lp:
acc_lp = acc_lp + row['lp']
acc_note = acc_note + row['lp'] * row['note']

View File

@@ -1,8 +1,8 @@
{
"SAVE_CREDENTIALS": "True",
"CREDENTIALS_LOCATION": "credentials.json",
"OUTPUT": "playlists/{playlist}/{artist} - {song_name}.{ext}",
"SONG_ARCHIVE": "archive.txt",
"OUTPUT": "downloaded/{artist}/{album}/{song_name} - {artist}.{ext}",
"SONG_ARCHIVE": "successful_archive.txt",
"ROOT_PATH": ".",
"ROOT_PODCAST_PATH": "",
"SPLIT_ALBUM_DISCS": "False",
@@ -23,7 +23,7 @@
"LANGUAGE": "en",
"PRINT_SPLASH": "False",
"PRINT_SKIPS": "True",
"PRINT_DOWNLOAD_PROGRESS": "True",
"PRINT_DOWNLOAD_PROGRESS": "False",
"PRINT_ERRORS": "True",
"PRINT_DOWNLOADS": "False",
"PRINT_API_ERRORS": "True",