Skip to content

Commit

Permalink
Stop warning about invalid encoded filenames to avoid path.py bug
Browse files Browse the repository at this point in the history
refs #2704, #2719
  • Loading branch information
gazpachoking committed Oct 13, 2014
1 parent efaa2cd commit fc8a92d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flexget/plugins/filter/exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def on_task_filter(self, task, config):
folder = path(folder).expanduser()
if not folder.exists():
raise plugin.PluginWarning('Path %s does not exist' % folder, log)
for p in folder.walk(errors='warn'):
for p in folder.walk(errors='ignore'):
key = p.name
# windows file system is not case sensitive
if platform.system() == 'Windows':
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/filter/exists_movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def on_task_filter(self, task, config):
# scan through

# TODO: add also video files?
for item in folder.walkdirs(errors='warn'):
for item in folder.walkdirs(errors='ignore'):
if item.name.lower() in self.skip:
continue
count_dirs += 1
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/filter/exists_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def on_task_filter(self, task, config):
log.warning('Directory %s does not exist', folder)
continue

for filename in folder.walk(errors='warn'):
for filename in folder.walk(errors='ignore'):
# run parser on filename data
try:
disk_parser = get_plugin_by_name('parsing').instance.parse_series(data=filename.name, name=series_parser.name)
Expand Down
2 changes: 1 addition & 1 deletion flexget/plugins/input/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def on_task_input(self, task, config):
folder = path(folder).expanduser()
log.debug('scanning %s' % folder)
if config['recursive']:
files = folder.walk(errors='warn')
files = folder.walk(errors='ignore')
else:
files = folder.listdir()
for item in files:
Expand Down

0 comments on commit fc8a92d

Please sign in to comment.