casualsnek / onthespot

qt based music downloader written in python
GNU General Public License v2.0
735 stars 53 forks source link

Error: Connection forcibly closed, playlist has some items left to download #122

Open Singoleth opened 1 month ago

Singoleth commented 1 month ago

When downloading long playlists with more than 100 tracks (example: https://open.spotify.com/playlist/20W9Oh5kOMiTT6TZckEREb?si=7b1901b557df42ea), I recently get errors. The code is below. Can anybody help?

image

2024-05-17 11_40_32-casualOnTheSpot

`[2024-05-17 11:07:40,248 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 384: run() :: ERROR] -> Download process returned false: 3YfsavPFMqogkh9Ph4Ed5n [2024-05-17 11:07:40,852 :: worker.utility :: worker\utility.py -> 26: run() :: INFO] -> Playlist m3u8 checking ID 20W9Oh5kOMiTT6TZckEREb [2024-05-17 11:07:40,852 :: worker.utility :: worker\utility.py -> 52: run() :: INFO] -> Playlist 20W9Oh5kOMiTT6TZckEREb has some items left to download [2024-05-17 11:07:44,854 :: worker.utility :: worker\utility.py -> 26: run() :: INFO] -> Playlist m3u8 checking ID 20W9Oh5kOMiTT6TZckEREb [2024-05-17 11:07:44,855 :: worker.utility :: worker\utility.py -> 52: run() :: INFO] -> Playlist 20W9Oh5kOMiTT6TZckEREb has some items left to download [2024-05-17 11:07:45,249 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 340: run() :: INFO] -> Processing download for track by id '0acFgroSAvBRgbfazTuwdF', Attempt: 0/3 [2024-05-17 11:07:45,251 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 97: download_track() :: ERROR] -> Metadata fetching failed for track by id '0acFgroSAvBRgbfazTuwdF', Traceback (most recent call last): File "worker\downloader.py", line 52, in download_track File "utils\spotify.py", line 278, in get_song_info File "librespot\core.py", line 2238, in get File "librespot\core.py", line 2258, in get_token File "librespot\mercury.py", line 183, in send_sync_json File "librespot\mercury.py", line 171, in send_sync File "librespot\mercury.py", line 158, in send File "librespot\core.py", line 1263, in send File "librespot\core.py", line 1355, in __send_unchecked File "librespot\crypto.py", line 45, in send_encoded File "librespot\core.py", line 1875, in flush ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

[2024-05-17 11:07:45,252 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 384: run() :: ERROR] -> Download process returned false: 0acFgroSAvBRgbfazTuwdF [2024-05-17 11:07:45,252 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 340: run() :: INFO] -> Processing download for track by id '0acFgroSAvBRgbfazTuwdF', Attempt: 1/3 [2024-05-17 11:07:45,254 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 97: download_track() :: ERROR] -> Metadata fetching failed for track by id '0acFgroSAvBRgbfazTuwdF', Traceback (most recent call last): File "worker\downloader.py", line 52, in download_track File "utils\spotify.py", line 278, in get_song_info File "librespot\core.py", line 2238, in get File "librespot\core.py", line 2258, in get_token File "librespot\mercury.py", line 183, in send_sync_json File "librespot\mercury.py", line 171, in send_sync File "librespot\mercury.py", line 158, in send File "librespot\core.py", line 1263, in send File "librespot\core.py", line 1355, in __send_unchecked File "librespot\crypto.py", line 45, in send_encoded File "librespot\core.py", line 1875, in flush ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

[2024-05-17 11:07:45,255 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 384: run() :: ERROR] -> Download process returned false: 0acFgroSAvBRgbfazTuwdF [2024-05-17 11:07:45,256 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 340: run() :: INFO] -> Processing download for track by id '0acFgroSAvBRgbfazTuwdF', Attempt: 2/3 [2024-05-17 11:07:45,259 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 97: download_track() :: ERROR] -> Metadata fetching failed for track by id '0acFgroSAvBRgbfazTuwdF', Traceback (most recent call last): File "worker\downloader.py", line 52, in download_track File "utils\spotify.py", line 278, in get_song_info File "librespot\core.py", line 2238, in get File "librespot\core.py", line 2258, in get_token File "librespot\mercury.py", line 183, in send_sync_json File "librespot\mercury.py", line 171, in send_sync File "librespot\mercury.py", line 158, in send File "librespot\core.py", line 1263, in send File "librespot\core.py", line 1355, in __send_unchecked File "librespot\crypto.py", line 45, in send_encoded File "librespot\core.py", line 1875, in flush ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

[2024-05-17 11:07:45,260 :: worker.downloader.SESSION_DL_TH-8ae3d03c-c7f2-4f64-a4e9-1e2ab4082754 :: worker\downloader.py -> 384: run() :: ERROR] -> Download process returned false: 0acFgroSAvBRgbfazTuwdF [2024-05-17 11:07:48,856 :: worker.utility :: worker\utility.py -> 26: run() :: INFO] -> Playlist m3u8 checking ID 20W9Oh5kOMiTT6TZckEREb [2024-05-17 11:07:48,856 :: worker.utility :: worker\utility.py -> 52: run() :: INFO] -> Playlist 20W9Oh5kOMiTT6TZckEREb has some items left to download`