mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[downloader] Correctly support empty install tag
This commit is contained in:
parent
5db6d9c73f
commit
1640a47d6a
|
@ -139,12 +139,13 @@ class DLManager(Process):
|
|||
|
||||
# Not entirely sure what install tags are used for, only some titles have them.
|
||||
# Let's add it for testing anyway.
|
||||
if file_install_tag:
|
||||
if file_install_tag is not None:
|
||||
if isinstance(file_install_tag, str):
|
||||
file_install_tag = [file_install_tag]
|
||||
|
||||
files_to_skip = set(i.filename for i in manifest.file_manifest_list.elements
|
||||
if not any(fit in i.install_tags for fit in file_install_tag))
|
||||
if not any((fit in i.install_tags) or (not fit and not i.install_tags)
|
||||
for fit in file_install_tag))
|
||||
self.log.info(f'Found {len(files_to_skip)} files to skip based on install tag.')
|
||||
mc.added -= files_to_skip
|
||||
mc.changed -= files_to_skip
|
||||
|
|
Loading…
Reference in a new issue