✨ PKCE / OAuth login will be chosen on the fly, depending on the desired audio quality of the track to speed up non HIRES_LOSSLESS downloads. Quality for tracks in download queue can be chosen individually. Fixes #73
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from PySide6 import QtCore, QtWidgets
|
||||
from tidalapi import Album, Mix, Playlist, Track, UserPlaylist, Video
|
||||
from tidalapi.artist import Artist
|
||||
from tidalapi.media import Quality
|
||||
|
||||
|
||||
def get_table_data(
|
||||
@@ -11,6 +12,12 @@ def get_table_data(
|
||||
return result
|
||||
|
||||
|
||||
def get_table_text(item: QtWidgets.QTreeWidgetItem, column: int) -> str:
|
||||
result: str = item.text(column)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def get_results_media_item(item: QtWidgets.QTreeWidgetItem) -> Track | Video | Album | Artist | Playlist | Mix:
|
||||
result: Track | Video | Album | Artist | Playlist | Mix = get_table_data(item, 1)
|
||||
|
||||
@@ -31,6 +38,14 @@ def get_queue_download_media(
|
||||
return result
|
||||
|
||||
|
||||
def get_queue_download_quality(
|
||||
item: QtWidgets.QTreeWidgetItem,
|
||||
) -> Quality:
|
||||
result: Quality = get_table_text(item, 4)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def set_table_data(
|
||||
item: QtWidgets.QTreeWidgetItem, data: Track | Video | Album | Artist | Mix | Playlist | UserPlaylist, column: int
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user