* Add optional parameters for OAuth client ID and secret to setup Use your own Google API client ID and client secret in setup by calling ytmusicapi oauth --client_id <your Google API client ID> --client_secret <your Google API client secret> to avoid HTTP 400: Bad Request errors * Improve setup parameter parsing and help texts - Add subparsers for parameters for oauth and browser tokens - Add help options - Add a check for presence of both client_id and client_secret if oauth is chosen. * ruff autofix * wip: remove default oauth_client_id & secret, turn into mandatory params * fix yt_oauth fixture * fix format/lint * fix cli args and oauth test * remove skip --------- Co-authored-by: sigma67 <sigma67.github@gmail.com>
47 lines
1.3 KiB
INI
47 lines
1.3 KiB
INI
[auth]
|
|
brand_account = 101234229123420379537
|
|
brand_account_empty = 1123456629123420379537
|
|
account_name = Sample Account
|
|
channel_handle = @SampleAccount
|
|
headers = headers_auth_json_as_string
|
|
headers_empty = headers_account_with_empty_library_as_json_as_string
|
|
browser_file = ./browser.json
|
|
oauth_file = ./oauth.json
|
|
headers_raw = raw_headers_pasted_from_browser
|
|
client_id = yt-data-api-client-id-tv
|
|
client_secret = yt-data-api-client-secret-tv
|
|
|
|
[queries]
|
|
uploads_songs = query_gives_gt_20_songs
|
|
library_any = query_gives_gt_5_results
|
|
library_songs = query_gives_gt_10_songs
|
|
library_albums = query_gives_gte_5_albums
|
|
library_artists = query_gives_gte_1_artist
|
|
library_playlists = query_gives_gte_1_playlist
|
|
|
|
[playlists]
|
|
own = owned_playlist_id
|
|
own_length = number_of_tracks_in_playlist
|
|
|
|
[albums]
|
|
album_browse_id = sample_id_of_regionally_available_album
|
|
album_track_length = available_album_length
|
|
|
|
[uploads]
|
|
file = song_in_tests_directory.mp3
|
|
private_album_id = sample_id_of_private_album
|
|
private_artist_id = sample_id_of_private_artist
|
|
private_upload_id = sample_video_id_of_private_upload
|
|
|
|
[podcasts]
|
|
channel_id = UCGwuxdEeCf0TIA2RbPOj-8g
|
|
podcast_id = PLxq_lXOUlvQDgCVFj9L79kqJybW0k6OaB
|
|
episode_id = KNkyHCLOr1o
|
|
|
|
[limits]
|
|
library_playlists = 100
|
|
library_songs = 200
|
|
library_artists = 300
|
|
library_subscriptions = 50
|
|
library_upload_albums = 200
|
|
library_upload_artists = 250
|