Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
krishsharma0413 committed Dec 30, 2023
1 parent 80b92c7 commit 35429d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"access_token": "BQBOFvTjRqI66SdCAo12CxZIMju5q7CUVspG68WVrnZLPdtcd4wZVq5Ky9rdHrAfCUVlS1zus9tbzu-qP9vPmZ9tAYAKbQd26A7d7UReHyzcHSqLq60", "token_type": "Bearer", "expires_in": 3600, "expires_at": 1703941566}
4 changes: 1 addition & 3 deletions spotify_dl/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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", "")),
)

Expand Down

0 comments on commit 35429d4

Please sign in to comment.