Skip to content

Commit 4d35197

Browse files
committed
Merge remote-tracking branch 'origin/main' into update-ytmusicapi
2 parents 1e6e8f0 + cc076e6 commit 4d35197

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Diff for: README.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ Setup
5555
-------
5656

5757
1. Generate a new app at https://developer.spotify.com/dashboard
58-
2. Run
58+
2. Generate a new app by following instructions at https://ytmusicapi.readthedocs.io/en/stable/setup/oauth.html
59+
3. Run
5960

6061
.. code-block::
6162

Diff for: spotify_to_ytmusic/settings.ini.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ client_secret =
88
[spotify]
99
client_id = id_from_developer_console
1010
client_secret = secret_from_developer_console
11-
use_oauth = no
11+
use_oauth = False

Diff for: spotify_to_ytmusic/setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import Optional
66

77
import ytmusicapi
8+
from charset_normalizer.cli import query_yes_no
89

910
from spotify_to_ytmusic.settings import DEFAULT_PATH, EXAMPLE_PATH, Settings
1011
from spotify_to_ytmusic.utils.browser import has_browser
@@ -82,9 +83,12 @@ def setup_spotify():
8283
),
8384
"client_secret": input(
8485
"Paste your client secret from the Spotify developer dashboard:"
86+
8587
),
86-
"use_oauth": input(
87-
"Use OAuth method for authorization to transfer private playlists (yes/no):"
88+
"use_oauth": str(
89+
query_yes_no(
90+
"Use OAuth method for authorization to transfer private playlists:"
91+
)
8892
),
8993
}
9094
settings["spotify"].update(credentials)

0 commit comments

Comments
 (0)