♻️ use auth

This commit is contained in:
oskvr37
2024-07-20 23:14:50 +02:00
parent ca603a8cdd
commit 3a8424c4d8
+3 -3
View File
@@ -1,16 +1,16 @@
import argparse
from .api import TidalApi
from .auth import getDeviceAuth, getToken
def main():
parser = argparse.ArgumentParser(description="TIDDL, the Tidal Downloader")
print("✅ TIDDL installed!")
api = TidalApi()
auth = api.getDeviceAuth()
auth = getDeviceAuth()
print(f"Go to https://{auth['verificationUriComplete']} and add device!")
input("Hit enter when you are ready")
token = api.getToken(auth["deviceCode"])
token = getToken(auth["deviceCode"])
print(token)