mirror of
https://github.com/oskvr37/tiddl.git
synced 2026-06-13 04:05:08 +03:00
♻️ use auth
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user