Skip to content

Commit

Permalink
fix constants.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Dec 31, 2023
1 parent e477ef0 commit 6dbca13
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 127 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ include-package-data=false
command_line = "-m unittest discover tests"

[tool.ruff]
#fix = true
line-length = 110
ignore = [ "F403", "F405", "F821", "E731" ]
extend-select = [
Expand Down
136 changes: 11 additions & 125 deletions ytmusicapi/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,135 +3,21 @@
YTM_PARAMS = "?alt=json"
YTM_PARAMS_KEY = "&key=AIzaSyC9XL3ZjWddXya6X74dJoCTL-WEYFDNX30"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0"
# fmt: off
SUPPORTED_LANGUAGES = {
"ar",
"de",
"en",
"es",
"fr",
"hi",
"it",
"ja",
"ko",
"nl",
"pt",
"ru",
"tr",
"ur",
"zh_CN",
"zh_TW",
"ar", "de", "en", "es", "fr", "hi", "it", "ja", "ko", "nl", "pt", "ru", "tr", "ur", "zh_CN",
"zh_TW"
}
SUPPORTED_LOCATIONS = {
"AE",
"AR",
"AT",
"AU",
"AZ",
"BA",
"BD",
"BE",
"BG",
"BH",
"BO",
"BR",
"BY",
"CA",
"CH",
"CL",
"CO",
"CR",
"CY",
"CZ",
"DE",
"DK",
"DO",
"DZ",
"EC",
"EE",
"EG",
"ES",
"FI",
"FR",
"GB",
"GE",
"GH",
"GR",
"GT",
"HK",
"HN",
"HR",
"HU",
"ID",
"IE",
"IL",
"IN",
"IQ",
"IS",
"IT",
"JM",
"JO",
"JP",
"KE",
"KH",
"KR",
"KW",
"KZ",
"LA",
"LB",
"LI",
"LK",
"LT",
"LU",
"LV",
"LY",
"MA",
"ME",
"MK",
"MT",
"MX",
"MY",
"NG",
"NI",
"NL",
"NO",
"NP",
"NZ",
"OM",
"PA",
"PE",
"PG",
"PH",
"PK",
"PL",
"PR",
"PT",
"PY",
"QA",
"RO",
"RS",
"RU",
"SA",
"SE",
"SG",
"SI",
"SK",
"SN",
"SV",
"TH",
"TN",
"TR",
"TW",
"TZ",
"UA",
"UG",
"US",
"UY",
"VE",
"VN",
"YE",
"ZA",
"ZW",
"AE", "AR", "AT", "AU", "AZ", "BA", "BD", "BE", "BG", "BH", "BO", "BR", "BY", "CA", "CH", "CL",
"CO", "CR", "CY", "CZ", "DE", "DK", "DO", "DZ", "EC", "EE", "EG", "ES", "FI", "FR", "GB", "GE",
"GH", "GR", "GT", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IN", "IQ", "IS", "IT", "JM", "JO",
"JP", "KE", "KH", "KR", "KW", "KZ", "LA", "LB", "LI", "LK", "LT", "LU", "LV", "LY", "MA", "ME",
"MK", "MT", "MX", "MY", "NG", "NI", "NL", "NO", "NP", "NZ", "OM", "PA", "PE", "PG", "PH", "PK",
"PL", "PR", "PT", "PY", "QA", "RO", "RS", "RU", "SA", "SE", "SG", "SI", "SK", "SN", "SV", "TH",
"TN", "TR", "TW", "TZ", "UA", "UG", "US", "UY", "VE", "VN", "YE", "ZA", "ZW"
}
# fmt: on
OAUTH_CLIENT_ID = "861556708454-d6dlm3lh05idd8npek18k6be8ba3oc68.apps.googleusercontent.com"
OAUTH_CLIENT_SECRET = "SboVhoG9s0rNafixCSGGKXAT"
OAUTH_SCOPE = "https://www.googleapis.com/auth/youtube"
Expand Down
2 changes: 1 addition & 1 deletion ytmusicapi/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
import sys
from typing import Dict
from pathlib import Path
from typing import Dict

import requests

Expand Down

0 comments on commit 6dbca13

Please sign in to comment.