Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using tags to remove games from exported list #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion csv_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def Main(args, options):
row['title'] = clean(re.sub(i[0], i[1], row['title']))

# Skip or rename according to the user options
if row['title'] in options['ignoreGames']:
if row['title'] in options['ignoreGames'] or not set(row['tags']).isdisjoint(options['ignoreTags']):
continue
if row['title'] in options['rename']:
row['title'] = options['rename'][row['title']]
Expand Down
4 changes: 4 additions & 0 deletions options.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"The Witcher 3: Wild Hunt – Expansion Pass",
"The Witcher Adventure Game (online beta)"
],
"ignoreTags": [
"Done",
"NoStream"
],
/* Fix incorrect titles */
"rename": {
"1979 Revolution:Black Friday": "1979 Revolution: Black Friday",
Expand Down