diff --git a/.cache b/.cache new file mode 100644 index 0000000..418b9f4 --- /dev/null +++ b/.cache @@ -0,0 +1 @@ +{"access_token": "BQBOFvTjRqI66SdCAo12CxZIMju5q7CUVspG68WVrnZLPdtcd4wZVq5Ky9rdHrAfCUVlS1zus9tbzu-qP9vPmZ9tAYAKbQd26A7d7UReHyzcHSqLq60", "token_type": "Bearer", "expires_in": 3600, "expires_at": 1703941566} \ No newline at end of file diff --git a/spotify_dl/youtube.py b/spotify_dl/youtube.py index 3d84a1b..db04af2 100644 --- a/spotify_dl/youtube.py +++ b/spotify_dl/youtube.py @@ -64,7 +64,6 @@ def write_tracks(tracks_file, song_dict): i = 0 writer = csv.writer(file_out, delimiter=";") for url_dict in song_dict["urls"]: - # for track in url_dict['songs']: for track in url_dict["songs"]: track_url = track["track_url"] # here track_name = track["name"] @@ -153,11 +152,10 @@ def find_and_download_songs(kwargs): with open(reference_file, "r", encoding="utf-8") as file: for line in file: temp = line.split(";") - name, artist, album, tempo, i = ( + name, artist, album, i = ( temp[0], temp[1], temp[4], - temp[5], int(temp[-1].replace("\n", "")), )