ytdl-sub/src/ytdl_sub/utils
Joshua M. Boniface 69df95e0e9
[BACKEND] Always perform copy/delete on OSError (#446)
* Always perform copy/delete on OSError

Extends the fix in #400 to handle all potential OSError errno values and
attempt a copy/delete in all cases. For example, a combination
cross-device move and a permissions change would throw errno 1 instead
of errno 18, which wasn't caught here. Instead of messing with
individual errno numbers, just always attempt a copy/delete and let
those throw their own exceptions if they don't work either.

* Remove unused os_error_exc variable
2023-02-19 21:06:48 -08:00
..
__init__.py setup cfg 2022-04-26 07:19:53 +00:00
chapters.py [FEATURE] Add support to scrape chapters from comments (#347) 2022-11-21 11:19:17 -08:00
datetime.py [BACKEND] Add generic.collection download strategy, use it for soundcloud, youtube channel/playlist (#230) 2022-09-14 15:36:14 -07:00
exceptions.py [BACKEND|BUG] Retry downloads with missing files (#137) 2022-08-01 12:39:23 -07:00
ffmpeg.py [BUGFIX] Cross-device patch for ffmpeg file writes (#407) 2023-01-10 14:19:45 -08:00
file_handler.py [BACKEND] Always perform copy/delete on OSError (#446) 2023-02-19 21:06:48 -08:00
logger.py Add --dry-run argument logic (#82) 2022-07-02 11:24:46 -07:00
retry.py [BUGFIX] Retry channel image downloads, continue if it fails (#218) 2022-09-06 16:12:28 -07:00
thumbnail.py [BUGFIX] Cross-device patch for ffmpeg file writes (#407) 2023-01-10 14:19:45 -08:00
xml.py [FEATURE] Support duplicate NFO keys (#220) 2022-09-07 14:06:13 -07:00
yaml.py asdf (#336) 2022-11-16 14:04:40 -08:00