rename metadata attribute from models to track_metadata

This commit is contained in:
Rafael Moraes 2024-08-02 22:39:30 -03:00
parent 005af07fcc
commit 6593644c72
2 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ def main(
continue
for queue_index, queue_item in enumerate(download_queue, start=1):
queue_progress = f"Track {queue_index}/{len(download_queue)} from URL {url_index}/{len(urls)}"
track = queue_item.metadata
track = queue_item.track_metadata
try:
logger.info(
f'({queue_progress}) Downloading "{track["attributes"]["name"]}"'

View File

@ -10,7 +10,7 @@ class UrlInfo:
@dataclass
class DownloadQueueItem:
metadata: dict = None
track_metadata: dict = None
@dataclass