From 08a2e43f49e5261609e35b196f2aacba8776b140 Mon Sep 17 00:00:00 2001 From: Peter Taylor Date: Sun, 29 Jan 2023 18:49:54 +0000 Subject: [PATCH] fix issues --- itchiodl/library.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/itchiodl/library.py b/itchiodl/library.py index 0aee2f4..eeb08ad 100644 --- a/itchiodl/library.py +++ b/itchiodl/library.py @@ -58,12 +58,15 @@ class Library: print(f"{title} is a purchased game.") i = 1 while self.games == []: + j = self.load_game_page(i) + self.games = [ x for x in self.games if x.link == f"https://{publisher}.itch.io/{title}" ] - if self.load_game_page(i) == 0: + + if j == 0: break i += 1