better
This commit is contained in:
parent
c7268cb527
commit
21967113c6
2 changed files with 6 additions and 4 deletions
|
|
@ -107227,3 +107227,9 @@
|
|||
2025-07-16 15:32:13 - newmusic.soulseek_client - [94mDEBUG[0m - _make_request:243 - Headers: {'Content-Type': 'application/json', 'X-API-Key': '1234567891234567'}
|
||||
2025-07-16 15:32:13 - newmusic.soulseek_client - [94mDEBUG[0m - _make_request:254 - Response status: 200
|
||||
2025-07-16 15:32:13 - newmusic.soulseek_client - [94mDEBUG[0m - _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 - [94mDEBUG[0m - clear_all_completed_downloads:925 - Clearing all completed downloads with endpoint: transfers/downloads/all/completed
|
||||
2025-07-16 15:37:53 - newmusic.soulseek_client - [94mDEBUG[0m - _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 - [94mDEBUG[0m - _make_request:243 - Headers: {'Content-Type': 'application/json', 'X-API-Key': '1234567891234567'}
|
||||
2025-07-16 15:37:53 - newmusic.soulseek_client - [94mDEBUG[0m - _make_request:254 - Response status: 204
|
||||
2025-07-16 15:37:53 - newmusic.soulseek_client - [94mDEBUG[0m - _make_request:255 - Response text: ...
|
||||
2025-07-16 15:37:53 - newmusic.soulseek_client - [92mINFO[0m - clear_all_completed_downloads:930 - Successfully cleared all completed downloads from slskd
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue