diff --git a/plugin.json b/plugin.json index 03c72ef..4575356 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "Name": "Playnite", "Description": "Search and launch your Playnite library.", "Author": "Garulf", - "Version": "1.2.1", + "Version": "1.3.2", "Language": "python", "Website": "https://github.com/Garulf/playnite-plugin", "IcoPath": "./icon.png", diff --git a/plugin/main.py b/plugin/main.py index 4307ff6..c00d4da 100644 --- a/plugin/main.py +++ b/plugin/main.py @@ -85,6 +85,9 @@ def install_filter(self): def uninstalled_filter(self): self.games = [game for game in self.games if game.is_installed and (game.install_directory != None or game.install_directory != "")] + def remove_hidden(self): + self.games = [game for game in self.games if not game.hidden] + def query(self, query): self.load_settings() try: @@ -100,6 +103,7 @@ def query(self, query): self.install_filter() elif self.hide_uninstalled: self.uninstalled_filter() + self.remove_hidden() self.main_search(query) diff --git a/plugin/playnite.py b/plugin/playnite.py index b5df66d..fd4a8ee 100644 --- a/plugin/playnite.py +++ b/plugin/playnite.py @@ -27,6 +27,7 @@ class Game(object): def __init__(self, data_folder, data) -> None: self.data_folder = data_folder self.data = data + self.hidden = False for key, value in data.items(): if value == 'True': value = True