Don't move .partial files into "Unknown" folder
This commit is contained in:
parent
9c9b2f2333
commit
ca02aca587
1 changed files with 2 additions and 1 deletions
|
@ -703,7 +703,8 @@ class PodcastChannel(PodcastModelObject):
|
|||
known_files = set(e.local_filename(create=False) \
|
||||
for e in self.get_downloaded_episodes())
|
||||
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'))
|
||||
external_files = existing_files.difference(known_files, \
|
||||
[os.path.join(self.save_dir, x) \
|
||||
for x in ('folder.jpg', 'Unknown')])
|
||||
|
|
Loading…
Reference in a new issue