Merge pull request #198 from mcarlton00/empty-folders

Don't request empty folders from api if setting is disabled
This commit is contained in:
mcarlton00 2022-08-07 14:52:03 -04:00 committed by GitHub
commit f66d2c55ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,6 +327,8 @@ def process_directory(url, progress, params, use_cache_data=False):
'?userId={}'.format(user_id) +
'&Fields={}'.format(default_filters) +
'&format=json')
if not show_empty_folders:
u = u + '&isMissing=False'
elif item_details.item_type == "Season":
u = ('/Shows/' + item_details.series_id +