Add comment about unknown external files for youtube-dl/yt-dlp downloads.

This commit is contained in:
auouymous 2023-01-12 04:10:08 -07:00
parent 993b7a5428
commit 9d46b2d3de
1 changed files with 3 additions and 0 deletions

View File

@ -1018,6 +1018,9 @@ class PodcastChannel(PodcastModelObject):
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
glob.glob(os.path.join(self.save_dir, '*'))
if not filename.endswith('.partial'))