You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yt-dlp/yt_dlp/downloader
Paul Wrubel d75201a873
Use `os.replace` where applicable (#793)
When using 
```py
os.remove(encodeFilename(filename))
os.rename(encodeFilename(temp_filename), encodeFilename(filename))
```
the `os.remove` need not be atomic and so can be executed arbitrarily compared to the immediately following rename call. It is better to use `os.replace` instead

Authored by: paulwrubel
3 years ago
..
__init__.py fix bug in 6251555f1c 3 years ago
common.py Use `os.replace` where applicable (#793) 3 years ago
dash.py [cleanup] Fix linter in 96fccc101f 3 years ago
external.py [aria2c] Obey `--rate-limit` 3 years ago
f4m.py [downloader] Pass `info_dict` to `progress_hook`s 3 years ago
fragment.py [webvtt] Merge daisy-chained duplicate cues (#638) 3 years ago
hls.py [webvtt] Fix timestamp overflow adjustment (#698) 3 years ago
http.py Revert erroneous use of the `Content-Length` header (#637) 3 years ago
ism.py [downloader] Pass `info_dict` to `progress_hook`s 3 years ago
mhtml.py [downloader] Pass `info_dict` to `progress_hook`s 3 years ago
niconico.py [cleanup] Refactor some code 3 years ago
rtmp.py [downloader] Pass `info_dict` to `progress_hook`s 3 years ago
rtsp.py [downloader] Pass `info_dict` to `progress_hook`s 3 years ago
websocket.py [websockets] Add `WebSocketFragmentFD` (#399) 3 years ago
youtube_live_chat.py [downloader] Pass `info_dict` to `progress_hook`s 3 years ago