summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRikrdoga <ricardoga@outlook.com>2025-10-16 18:44:08 -0600
committerRikrdoga <ricardoga@outlook.com>2025-10-20 10:33:13 -0600
commitec4502ad00e4b9ab6e7ad7da4d71bb8c1ba99ac9 (patch)
tree5549a041c4650a08732e4c64d3fe9749f2cf3bcc
parent302b552ed7ce9a4eaeb093ff018959b4dd5468c6 (diff)
downloadtidal-dl-ng-ec4502ad00e4b9ab6e7ad7da4d71bb8c1ba99ac9.tar.gz
Disable Load from gist and fix JSON in api.py (remove // Invalid)
-rw-r--r--tidal_dl_ng/api.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/tidal_dl_ng/api.py b/tidal_dl_ng/api.py
index 4da23f1..0ba5bb8 100644
--- a/tidal_dl_ng/api.py
+++ b/tidal_dl_ng/api.py
@@ -13,7 +13,7 @@ __KEYS_JSON__ = """
{
"version": "1.0.1",
"keys": [
- // Invalid
+
{
"platform": "Fire TV",
"formats": "Normal/High/HiFi(No Master)",
@@ -22,7 +22,7 @@ __KEYS_JSON__ = """
"valid": "False",
"from": "Fokka-Engineering (https://github.com/Fokka-Engineering/libopenTIDAL/blob/655528e26e4f3ee2c426c06ea5b8440cf27abc4a/README.md#example)"
},
- // Only max MQA.
+
{
"platform": "Fire TV",
"formats": "Master-Only(Else Error)",
@@ -31,7 +31,7 @@ __KEYS_JSON__ = """
"valid": "True",
"from": "Dniel97 (https://github.com/Dniel97/RedSea/blob/4ba02b88cee33aeb735725cb854be6c66ff372d4/config/settings.example.py#L68)"
},
- // Invalid
+
{
"platform": "Android TV",
"formats": "Normal/High/HiFi(No Master)",
@@ -40,7 +40,7 @@ __KEYS_JSON__ = """
"valid": "False",
"from": ""
},
- // Invalid
+
{
"platform": "TV",
"formats": "Normal/High/HiFi/Master",
@@ -49,13 +49,13 @@ __KEYS_JSON__ = """
"valid": "False",
"from": "morguldir (https://github.com/morguldir/python-tidal/commit/50f1afcd2079efb2b4cf694ef5a7d67fdf619d09)"
},
- // Invalid
+
{
"platform": "Android Auto",
"formats": "Normal/High/HiFi/Master",
"clientId": "zU4XHVVkc2tDPo4t",
"clientSecret": "VJKhDFqJPqvsPVNBV6ukXTJmwlvbttP7wlMlrc72se4=",
- "valid": "True",
+ "valid": "False",
"from": "1nikolas (https://github.com/yaronzz/Tidal-Media-Downloader/pull/840)"
}
]
@@ -106,14 +106,14 @@ def getVersion():
# Load from gist
-try:
- respond = requests.get(
- "https://api.github.com/gists/48d01f5a24b4b7b37f19443977c22cd6", timeout=REQUESTS_TIMEOUT_SEC
- )
- if respond.status_code == 200:
- content = respond.json()["files"]["tidal-api-key.json"]["content"]
- __API_KEYS__ = json.loads(content)
-except Exception as e:
+# try:
+# respond = requests.get(
+# "https://api.github.com/gists/48d01f5a24b4b7b37f19443977c22cd6", timeout=REQUESTS_TIMEOUT_SEC
+# )
+# if respond.status_code == 200:
+# content = respond.json()["files"]["tidal-api-key.json"]["content"]
+# __API_KEYS__ = json.loads(content)
+# except Exception as e:
# TODO: Implement proper logging.
- print(e)
- pass
+# print(e)
+# pass