From 8d67b672f9a1d1e6eff4a4c230308be8f09a1f2d Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 16 Feb 2023 23:47:12 -0500 Subject: [PATCH] Oops, fix the source thing properly --- vrobbler/apps/scrobbles/tsv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vrobbler/apps/scrobbles/tsv.py b/vrobbler/apps/scrobbles/tsv.py index 87a3cee..beea889 100644 --- a/vrobbler/apps/scrobbles/tsv.py +++ b/vrobbler/apps/scrobbles/tsv.py @@ -26,7 +26,7 @@ def process_audioscrobbler_tsv_file(file_path, user_tz=None): source_id = "" for row_num, row in enumerate(rows): if row_num in [0, 1, 2]: - if "Rockbox" in row[2]: + if "Rockbox" in row[0]: source = "Rockbox" source_id += row[0] + "\n" continue @@ -53,7 +53,6 @@ def process_audioscrobbler_tsv_file(file_path, user_tz=None): .replace(tzinfo=user_tz) .astimezone(pytz.utc) ) - source = 'Audioscrobbler File' new_scrobble = Scrobble( timestamp=timestamp,