Merge pull request #26 from faroukbmiled/refactored

added a way to down invalid items
This commit is contained in:
Ryuk 2023-10-05 12:58:01 -07:00 committed by GitHub
commit aecd996e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ def initialize_steam(master):
@if_internet_available @if_internet_available
def valid_id(workshop_id): def valid_id(workshop_id):
data = item_steam_api(workshop_id) data = item_steam_api(workshop_id)
if check_config("skip_valid", "no") == "skip": if check_config("skip_invalid", "skip") == "no":
if data: if data:
return True return True
if "consumer_app_id" in data['response']['publishedfiledetails'][0]: if "consumer_app_id" in data['response']['publishedfiledetails'][0]: