Commit Graph

143 Commits

Author SHA1 Message Date
Smart123s
c5e4bd5ad8 Move login to Fire CLI 2023-02-23 08:27:12 +01:00
Smart123s
92c95b1f9f Save owned games to user's session file
Could be moved to a separate file in the future, as this data could be
considered as cache only.
2023-02-22 15:06:13 +01:00
Smart123s
aff41ae316 Fix reload_owned_games() 2023-02-22 15:04:06 +01:00
Smart123s
1a205ee23f Remove expired sales from disk 2023-02-22 13:22:18 +01:00
Smart123s
423b2f14a7 Refactor: Rename functions in DiskManager 2023-02-22 13:18:16 +01:00
Smart123s
e0a9607d85 Rename SaleManager to DiskManager 2023-02-22 13:17:23 +01:00
Smart123s
badc8b19c8 Make games loadable from disk 2023-02-22 13:13:54 +01:00
Smart123s
0718943c40 Statically type get_sale_page() 2023-02-21 15:40:54 +01:00
Smart123s
c7c9b5d606 Move sale page parsing to a separate class 2023-02-21 10:25:41 +01:00
Smart123s
b1670814c5 Sort sales page by newest 2023-02-21 10:11:32 +01:00
Smart123s
891ce4ec12 Don't create duplicate instances of ItchGame 2023-02-21 10:06:30 +01:00
Smart123s
a233f53d7f Change unknown price from -1 to None 2023-02-20 13:01:35 +01:00
Smart123s
f05973a531 Load user's list of owned games 2023-02-20 13:00:14 +01:00
Smart123s
96f4ae9804 Refactor: move claim_game, is_game_owned to User 2023-02-20 12:50:19 +01:00
Smart123s
4a974f8023 Make csrf_token a property 2023-02-20 12:04:24 +01:00
Smart123s
fa3e8cd4d9 Store user data in separate directory 2023-02-18 21:08:29 +01:00
Smart123s
33237f2df4 Use appdirs package for retrieving config paths 2023-02-18 20:56:35 +01:00
Smart123s
ad64d08f9d Implement sale_end property 2023-02-18 20:18:03 +01:00
Smart123s
af56d783ab Make claimable property cached 2023-02-18 20:10:07 +01:00
Smart123s
94279eaf90 Extend ItchGame's attributes 2023-02-18 19:55:56 +01:00
Smart123s
d993d431ae Add is game claimable function 2023-02-18 15:31:07 +01:00
Smart123s
d740199f54 Add missing # char to copyright headers 2023-02-18 14:58:13 +01:00
Smart123s
9f4b7fd6b2 Rename init to main 2023-02-18 14:57:40 +01:00
Smart123s
01803951f4 Update copyright year 2023-02-17 09:22:50 +01:00
Smart123s
e58d15743d Detect if a game had already been claimed 2023-02-17 09:21:25 +01:00
Smart123s
2f047b9c58 Login if no session is saved on disk 2022-12-24 10:15:38 +01:00
Smart123s
5a2c9aa5fe Fix expired sale 2022-06-26 23:09:54 +02:00
Smart123s
7c6929559a Fix no 100% sale on early page exec stop 2022-06-26 22:16:51 +02:00
Smart123s
b2229aa937 Claim every game 2022-06-17 14:44:28 +02:00
Smart123s
9fccc42b46 Better log failed to claim game 2022-06-17 14:44:27 +02:00
Smart123s
b1b347ed24 Fix currency error 2022-06-17 14:44:27 +02:00
Smart123s
6b5fc54737 Iterate over all sale pages 2022-06-17 14:44:26 +02:00
Smart123s
b3b787b9cf Skip not claimable games 2022-06-17 14:44:24 +02:00
Smart123s
3372d36614 Remove claimable check from init 2022-06-17 13:07:37 +02:00
Smart123s
d44b9c7dcc Rename ItchContext to ItchUser 2022-06-17 13:07:28 +02:00
Smart123s
d13affd5fc Move game related code to ItchGame 2022-06-17 10:12:13 +02:00
Smart123s
1f3270d8f1 Parse games from sale page 2022-06-17 10:10:09 +02:00
Smart123s
eeec325c4c Download list of games on sale 2022-06-14 07:42:42 +02:00
Smart123s
7b24c45344 Add claim game 2022-06-14 06:30:54 +02:00
Smart123s
8630cd27ec Save session to file 2022-06-14 06:30:22 +02:00
Smart123s
a6cbaab24e Add .gitignore 2022-06-12 17:19:28 +02:00
Smart123s
8897f24029 Add login 2022-06-12 17:18:25 +02:00
Smart123s
9a21faccae Initial commit 2022-06-12 17:18:12 +02:00