Add comment about unknown external files for youtube-dl/yt-dlp downloads.
This commit is contained in:
parent
993b7a5428
commit
9d46b2d3de
|
@ -1018,6 +1018,9 @@ class PodcastChannel(PodcastModelObject):
|
||||||
|
|
||||||
known_files.add(filename)
|
known_files.add(filename)
|
||||||
|
|
||||||
|
# youtube-dl and yt-dlp create <name>.partial and <name>.partial.<ext> files while downloading.
|
||||||
|
# On startup, the latter is reported as an unknown external file.
|
||||||
|
# Both files are properly removed when the download completes.
|
||||||
existing_files = set(filename for filename in
|
existing_files = set(filename for filename in
|
||||||
glob.glob(os.path.join(self.save_dir, '*'))
|
glob.glob(os.path.join(self.save_dir, '*'))
|
||||||
if not filename.endswith('.partial'))
|
if not filename.endswith('.partial'))
|
||||||
|
|
Loading…
Reference in New Issue