From 21967113c67ad5fd0777b53e51bf3fd37697156f Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Wed, 16 Jul 2025 15:40:51 -0700 Subject: [PATCH] better --- logs/app.log | 6 ++++++ ui/pages/downloads.py | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/logs/app.log b/logs/app.log index 43a98e61..44d09b42 100644 --- a/logs/app.log +++ b/logs/app.log @@ -107227,3 +107227,9 @@ 2025-07-16 15:32:13 - newmusic.soulseek_client - DEBUG - _make_request:243 - Headers: {'Content-Type': 'application/json', 'X-API-Key': '1234567891234567'} 2025-07-16 15:32:13 - newmusic.soulseek_client - DEBUG - _make_request:254 - Response status: 200 2025-07-16 15:32:13 - newmusic.soulseek_client - DEBUG - _make_request:255 - Response text: [{"username":"shytokyo","directories":[{"directory":"Music\\Gorillaz\\Gorillaz","fileCount":1,"files":[{"id":"aec6a482-4852-4496-af4b-01913a958eda","username":"shytokyo","direction":"Download","filename":"Music\\Gorillaz\\Gorillaz\\Clint Eastwood.flac","size":36898493,"startOffset":0,"state":"Completed, Succeeded","stateDescription":"Completed, Succeeded","requestedAt":"2025-07-16T22:32:10.6574007","enqueuedAt":"2025-07-16T22:32:10.8939931","startedAt":"2025-07-16T22:32:10.9619246Z","endedAt":"2... +2025-07-16 15:37:53 - newmusic.soulseek_client - DEBUG - clear_all_completed_downloads:925 - Clearing all completed downloads with endpoint: transfers/downloads/all/completed +2025-07-16 15:37:53 - newmusic.soulseek_client - DEBUG - _make_request:242 - Making DELETE request to: http://localhost:5030/api/v0/transfers/downloads/all/completed +2025-07-16 15:37:53 - newmusic.soulseek_client - DEBUG - _make_request:243 - Headers: {'Content-Type': 'application/json', 'X-API-Key': '1234567891234567'} +2025-07-16 15:37:53 - newmusic.soulseek_client - DEBUG - _make_request:254 - Response status: 204 +2025-07-16 15:37:53 - newmusic.soulseek_client - DEBUG - _make_request:255 - Response text: ... +2025-07-16 15:37:53 - newmusic.soulseek_client - INFO - clear_all_completed_downloads:930 - Successfully cleared all completed downloads from slskd diff --git a/ui/pages/downloads.py b/ui/pages/downloads.py index fa412efe..159454b7 100644 --- a/ui/pages/downloads.py +++ b/ui/pages/downloads.py @@ -8297,11 +8297,9 @@ class DownloadsPage(QWidget): def update_album_track_button_states(self, download_item, status): """Update track download button states based on download progress""" - print(f"[DEBUG] 🔄 Searching for track button to update: '{download_item.title}' by '{download_item.artist}' with status '{status}'") # Find the track item that corresponds to this download album_items_found = self.findChildren(AlbumResultItem) - print(f"[DEBUG] Found {len(album_items_found)} album items to search") for album_item in album_items_found: @@ -8334,7 +8332,6 @@ class DownloadsPage(QWidget): print(f"[DEBUG] ✅ Successfully updated track button state for '{download_item.title}': {status}") return - print(f"[DEBUG] ❌ NO MATCH FOUND for track '{download_item.title}' by '{download_item.artist}' - button state not updated") def start_stream(self, search_result, result_item=None): """Start streaming a search result using StreamingThread or toggle if same track""" @@ -9510,7 +9507,6 @@ class DownloadsPage(QWidget): if transfer_id == download_item.download_id and transfer_id not in matched_transfer_ids: matching_transfer = transfer matched_transfer_ids.add(transfer_id) - print(f"[DEBUG] ✅ Found ID match: {transfer_id} -> {transfer.get('filename', 'Unknown')}") break # If no ID match, try improved filename matching as fallback