File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 55
55
-------
56
56
57
57
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
59
60
60
61
.. code-block ::
61
62
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ client_secret =
8
8
[spotify]
9
9
client_id = id_from_developer_console
10
10
client_secret = secret_from_developer_console
11
- use_oauth = no
11
+ use_oauth = False
Original file line number Diff line number Diff line change 5
5
from typing import Optional
6
6
7
7
import ytmusicapi
8
+ from charset_normalizer .cli import query_yes_no
8
9
9
10
from spotify_to_ytmusic .settings import DEFAULT_PATH , EXAMPLE_PATH , Settings
10
11
from spotify_to_ytmusic .utils .browser import has_browser
@@ -82,9 +83,12 @@ def setup_spotify():
82
83
),
83
84
"client_secret" : input (
84
85
"Paste your client secret from the Spotify developer dashboard:"
86
+
85
87
),
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
+ )
88
92
),
89
93
}
90
94
settings ["spotify" ].update (credentials )
You can’t perform that action at this time.
0 commit comments