AlexAplin / nndownload

Download and process links from Niconico (nicovideo.jp)
MIT License
213 stars 28 forks source link

OSError after economy mode byte comparison #63

Closed thgdorns closed 4 years ago

thgdorns commented 4 years ago

I leave NND downloading. When economy hours begin, it keeps download some videos, even if I add the parameter to avoid low-quality videos.

Then, when I restart NND outside economy hours, it gives me this error when trying to redownload low-quality videos: 2020-03-15 20:24:28,028 INFO: Downloading sm23622944 to "..\PELO\田舎娘アリス(修正版) (sm23622944).mp4"... 2020-03-15 20:24:29,311 INFO: Checking file integrity before resuming. 2020-03-15 20:24:29,735 INFO: Byte comparison block does not match. Deleting existing file and redownloading... 2020-03-15 20:24:29,736 ERROR: PermissionError: [WinError 32] File is being used by another process: '..\PELO\田舎娘アリス(修正版) (sm23622944).mp4' Traceback (most recent call last): File "nndownload.py", line 1327, in main read_file(session, cmdl_opts.input) File "nndownload.py", line 298, in read_file process_url_mo(session, url_mo) File "nndownload.py", line 1291, in process_url_mo request_video(session, url_id) File "nndownload.py", line 644, in request_video download_video(session, filename, template_params) File "nndownload.py", line 860, in download_video os.remove(filename)