vitiko98 / qobuz-dl

A complete Lossless and Hi-Res music downloader for Qobuz
GNU General Public License v3.0
1.45k stars 193 forks source link

Files downloaded with error are skipped while new try of download #181

Open seensoul opened 2 years ago

seensoul commented 2 years ago

When trying to dl release, sometimes we stuck on error. Eg. Error getting release: HTTPSConnectionPool(host='www.qobuz.com', port=443): Max retries exceeded with url: /api.json/0.2/track/getFileUrl?request_ts=1669744819.9389074&request_sig=3634ba66ed5ce7dc29cec5d5de186401&track_id=128293213&format_id=27&intent=stream (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001E708B16750>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')). Skipping...

Trying to download the same release again results in treating these erroneous tracks as downloaded.

IV. Redde mihi laetitiam was already downloaded V. Quoniam si voluisses sacrificium was already downloaded

It would be great, that before skipping the downloaded track (after next recall of program after error) , the program would check if exsisting track was downloaded properily and would not skip tracks, that are uncomplete.