[GH-ISSUE #62] Some songs fail at 99% #47

Closed
opened 2026-03-04 12:28:26 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (May 19, 2023).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/62

I'm using the latest developmentBranch build and some songs fail at 99%

[2023-05-20 01:52:09,075 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 222: download_track() :: ERROR] -> Download failed for track by id '44UnT7KIVgEQFkUeXUp3OJ', Unexpected error: Traceback (most recent call last):
File "PIL\PngImagePlugin.py", line 1286, in _save
KeyError: 'CMYK'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "worker\downloader.py", line 172, in download_track
File "utils\spotify.py", line 203, in set_music_thumbnail
File "PIL\Image.py", line 2432, in save
File "PIL\PngImagePlugin.py", line 1289, in _save
OSError: cannot write mode CMYK as PNG
!
[2023-05-20 01:52:09,082 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 377: run() :: ERROR] -> Download process returned false: 44UnT7KIVgEQFkUeXUp3OJ

image

Originally created by @ghost on GitHub (May 19, 2023). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/62 I'm using the latest developmentBranch build and some songs fail at 99% [2023-05-20 01:52:09,075 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 222: download_track() :: ERROR] -> Download failed for track by id '44UnT7KIVgEQFkUeXUp3OJ', Unexpected error: Traceback (most recent call last): File "PIL\PngImagePlugin.py", line 1286, in _save KeyError: 'CMYK' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "worker\downloader.py", line 172, in download_track File "utils\spotify.py", line 203, in set_music_thumbnail File "PIL\Image.py", line 2432, in save File "PIL\PngImagePlugin.py", line 1289, in _save OSError: cannot write mode CMYK as PNG ! [2023-05-20 01:52:09,082 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 377: run() :: ERROR] -> Download process returned false: 44UnT7KIVgEQFkUeXUp3OJ ![image](https://github.com/casualsnek/onthespot/assets/45408242/670afa96-d4fe-4713-b374-8d64c3f8e862)
kerem closed this issue 2026-03-04 12:28:26 +03:00
Author
Owner

@casualsnek commented on GitHub (May 19, 2023):

I'm using the latest developmentBranch build and some songs fail at 99%

[2023-05-20 01:52:09,075 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 222: download_track() :: ERROR] -> Download failed for track by id '44UnT7KIVgEQFkUeXUp3OJ', Unexpected error: Traceback (most recent call last): File "PIL\PngImagePlugin.py", line 1286, in _save KeyError: 'CMYK'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "worker\downloader.py", line 172, in download_track File "utils\spotify.py", line 203, in set_music_thumbnail File "PIL\Image.py", line 2432, in save File "PIL\PngImagePlugin.py", line 1289, in _save OSError: cannot write mode CMYK as PNG ! [2023-05-20 01:52:09,082 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 377: run() :: ERROR] -> Download process returned false: 44UnT7KIVgEQFkUeXUp3OJ

image

Just pushed github.com/casualsnek/onthespot@3d10727edf can you pull the latest development branch and see if it's working now ?

<!-- gh-comment-id:1554975553 --> @casualsnek commented on GitHub (May 19, 2023): > I'm using the latest developmentBranch build and some songs fail at 99% > > [2023-05-20 01:52:09,075 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 222: download_track() :: ERROR] -> Download failed for track by id '44UnT7KIVgEQFkUeXUp3OJ', Unexpected error: Traceback (most recent call last): File "PIL\PngImagePlugin.py", line 1286, in _save KeyError: 'CMYK' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): File "worker\downloader.py", line 172, in download_track File "utils\spotify.py", line 203, in set_music_thumbnail File "PIL\Image.py", line 2432, in save File "PIL\PngImagePlugin.py", line 1289, in _save OSError: cannot write mode CMYK as PNG ! [2023-05-20 01:52:09,082 :: worker.downloader.SESSION_DL_TH-810c87d7-4119-4e36-9b93-93722a94d6f8 :: worker\downloader.py -> 377: run() :: ERROR] -> Download process returned false: 44UnT7KIVgEQFkUeXUp3OJ > > ![image](https://user-images.githubusercontent.com/45408242/239590989-670afa96-d4fe-4713-b374-8d64c3f8e862.png) Just pushed https://github.com/casualsnek/onthespot/commit/3d10727edf91edf4d235857ba6ca1e48993d2969 can you pull the latest development branch and see if it's working now ?
Author
Owner

@ghost commented on GitHub (May 19, 2023):

It worked.
thank you.

<!-- gh-comment-id:1555272239 --> @ghost commented on GitHub (May 19, 2023): It worked. thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/onthespot#47
No description provided.