From 8d9cb90e657defa9c1e8ce788a44c7e12ed6ea81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Idil=20S=C3=BClo?= Date: Wed, 19 Apr 2023 15:55:12 +0300 Subject: [PATCH 1/2] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3bf7dd6..542351a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This repository is built with Python and uses [spotipy](https://github.com/spoti **Step 1:** Create an [OpenAI account](https://beta.openai.com/account/api-keys) -**Step 2:** Generate [Spotify Client ID & Secret Key](https://developer.spotify.com/dashboard/login) +**Step 2:** Generate [Spotify Client ID & Secret Key](https://developer.spotify.com/dashboard/login) and set a Redirect URI under your App settings, e.g. `http://localhost:8080`. **Step 3:** Install dependencies From a04553d51716b7985fd6a3097d74cdb1071d3224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Idil=20S=C3=BClo?= Date: Thu, 18 May 2023 14:59:56 +0200 Subject: [PATCH 2/2] Add names of tracks that are not found, fix typo --- chatgptify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chatgptify.py b/chatgptify.py index ccd0644..42ce6dc 100644 --- a/chatgptify.py +++ b/chatgptify.py @@ -24,7 +24,7 @@ def __init__(self) -> None: scope=scope)) self.playlist = None - self.name = "Chat-GPT presents..." + self.name = "ChatGPT presents..." self.playlist_response = None self.last_response = None @@ -72,7 +72,7 @@ def ask_chatgpt(self, prompt : str, prompt_type : str = "", display=True) -> Non if display: width = 70 print("-" * width) - print(" " * (width // 11) + "Chat-GPT") + print(" " * (width // 11) + "ChatGPT") prompt_str = textwrap.fill("Prompt: " + prompt) print(prompt_str) print("-" * width) @@ -108,7 +108,7 @@ def create_playlist(self) -> None: artist=item['artists'], album=item['album']) playlist.append(track) except: - print("Track not found.") + print("Track not found: {}".format(q)) self.playlist = playlist