Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit b31e23d

Browse files
authored
Update main.py
1 parent be5420f commit b31e23d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def authenticate_spotify():
3636
def read_playlist():
3737
global tracks
3838
try:
39-
items = sp.playlist_items(user_2023)["items"]
39+
items = sp.playlist_items(playlist_id)["items"]
4040
tracks = [f"{item["track"]["artists"][0]["name"]} - {item["track"]["name"]}" for item in items]
4141
message = "Spotify weekly read"
4242
write_to_summary(f"**Step success:** {message}")
@@ -49,7 +49,7 @@ def read_playlist():
4949
try:
5050
load_dotenv()
5151
USER_ID = os.getenv("SPOTIFY_USER")
52-
user_2023 = "3pmCbJYSYPxFlisJTe8Hxw"
52+
playlist_id = os.getenv("playlist_id")
5353
authenticate_spotify()
5454
read_playlist()
5555
with open('2023.txt', 'w') as f:

0 commit comments

Comments
 (0)