Browse Source

Merge branch 'feature/AddFolderIgnoreFlag' into develop

tags/release_0.25.1
JackDandy 5 years ago
parent
commit
e17cfa9ef1
  1. 1
      CHANGES.md
  2. 8
      sickbeard/helpers.py

1
CHANGES.md

@ -1,5 +1,6 @@
### 0.23.0 (2019-xx-xx xx:xx:xx UTC)
* Add ignore folders that contain ".sickgearignore" flag file
* Change add 3 days cache for tmdb base info only
* Change `Discordapp` to `Discord` in line with company change
* Change remove `app` from URL when calling webhook

8
sickbeard/helpers.py

@ -364,7 +364,13 @@ def list_media_files(path):
return []
files = []
for cur_file in ek.ek(os.listdir, path):
file_list = ek.ek(os.listdir, path)
if '.sickgearignore' in file_list:
logger.log('Folder "%s" contains ".sickgearignore", ignoring Folder' % path, logger.DEBUG)
return []
for cur_file in file_list:
full_cur_file = ek.ek(os.path.join, path, cur_file) # type: AnyStr
# if it's a folder do it recursively

Loading…
Cancel
Save