Commit Graph

339 Commits

Author SHA1 Message Date
Zoe Roux 4d96ab5451 Fix scanner's invalid expected response 2025-06-22 19:29:16 +02:00
Zoe Roux 2f6943cd6f Fix lots of stuff 2025-06-07 19:02:06 +02:00
Zoe Roux 489336c77a Add tests for video linking 2025-06-07 17:48:10 +02:00
Zoe Roux 3e69ea9c8b Implement link videos on the scanner 2025-06-07 17:45:39 +02:00
Zoe Roux 107e581801 Fix entries fetching when first ep of season is not 1 2025-06-07 17:45:39 +02:00
Zoe Roux 9b68110cf6 Fix json post of series & movies 2025-06-07 17:45:39 +02:00
Zoe Roux 505427f0ff Fix missing absolute group handling 2025-06-07 17:45:39 +02:00
Zoe Roux 791bbf275a Fix order starting at 0 instead of 1 2025-06-07 17:45:39 +02:00
Zoe Roux d1bf1f3339 Fix scanner's create requests 2025-06-07 17:45:39 +02:00
Zoe Roux 55d1551cd3 Fix uv's shell.nix (& add python-slugify) 2025-06-07 17:45:39 +02:00
Zoe Roux a22edc11ce Handle crew & fix some themoviedb bugs 2025-06-07 17:45:39 +02:00
Zoe Roux 12d9ad3183 wip: Reconnect to database on connection failure 2025-06-07 17:45:39 +02:00
Zoe Roux df23cf54d7 Fix listener 2025-06-07 17:45:39 +02:00
Zoe Roux 9c451a865e Cleanup task handling/cancellation of background tasks 2025-06-07 17:45:39 +02:00
Zoe Roux ae0f55ae9b Clear failed requests before scanning 2025-06-07 17:45:39 +02:00
Zoe Roux c9fcbc8e8f Implement proper shutdown of scan/monitor tasks 2025-06-07 17:45:39 +02:00
Zoe Roux 1747454845 Fix dockerfiles 2025-06-07 17:45:39 +02:00
Zoe Roux 095d309bb6 Use docker compose watch for api 2025-06-07 17:45:39 +02:00
Zoe Roux 10e200ea5a Remove docker.dev for docker watch for scanner 2025-06-07 17:45:38 +02:00
Zoe Roux af75985a14 Switch to uv 2025-06-07 17:45:38 +02:00
Zoe Roux 34c891128e Provider cleanup 2025-06-07 17:45:38 +02:00
Zoe Roux cafc40d5f2 Fix tmdb stuff 2025-06-07 17:45:38 +02:00
Zoe Roux 90b6e2264d Create request in db 2025-06-07 17:45:38 +02:00
Zoe Roux a9b7d18a6e Fix request creation 2025-06-07 17:45:38 +02:00
Zoe Roux 2fc696dde9 Add database migration script 2025-06-07 17:45:38 +02:00
Zoe Roux f3310e23f3 Stop trying to use the non-working DI of fastapi 2025-06-07 17:45:38 +02:00
Zoe Roux ebda81db97 Fix identify 2025-06-07 17:45:38 +02:00
Zoe Roux d6d71421fd Fix scanner's teardown 2025-06-07 17:45:38 +02:00
Zoe Roux d873c74545 Fix scanner/api communications 2025-06-07 17:45:38 +02:00
Zoe Roux e2f02a279d fastapi's di is utter garbage 2025-06-07 17:45:38 +02:00
Zoe Roux 444249dfc4 Singleton try 2025-06-07 17:45:38 +02:00
Zoe Roux 6d70870ef3 Proper app cleanup 2025-06-07 17:45:38 +02:00
Zoe Roux 0839f5afb7 Small fixes & error handling 2025-06-07 17:45:38 +02:00
Zoe Roux 9eae11d3b5 Use fastapi router 2025-06-07 17:45:38 +02:00
Zoe Roux cd874e382f Handle database connection vars 2025-06-07 17:45:38 +02:00
Zoe Roux 0cafe1ef40 Cleanup startup events 2025-06-07 17:45:38 +02:00
Zoe Roux d666cda744 Fix jwks validation in scanner 2025-06-07 17:45:38 +02:00
Zoe Roux a29dff1014 Validate jwts in the scanner 2025-06-07 17:45:38 +02:00
Zoe Roux 45a1198f30 Add put /scan to trigger a scan 2025-06-07 17:45:38 +02:00
Zoe Roux 1e65053c37 Map Language for pydantic 2025-06-07 17:45:38 +02:00
Zoe Roux b0dad090ae Start scan & monitor on master instance of scanner 2025-06-07 17:45:38 +02:00
Zoe Roux 53867792f3 Switch to asyncpg & create initial listener 2025-06-07 17:45:38 +02:00
Zoe Roux 21435da93f wip: Link videos found after request started 2025-06-07 17:45:38 +02:00
Zoe Roux 2bf9464c18 Implement request processor (listen for requests) 2025-06-07 17:45:38 +02:00
Zoe Roux f5f4ad439c Create a psycopg pool 2025-06-07 17:45:38 +02:00
Zoe Roux d1e38c9e1c Create request migration 2025-06-07 17:45:38 +02:00
Zoe Roux 249019d6f5 Move old stuff to one dir 2025-06-07 17:45:38 +02:00
Zoe Roux 608e0cf12e Move stuff around 2025-06-07 17:45:38 +02:00
Zoe Roux f1f7dde507 Match guessed's entries to tmdb's entries 2025-06-07 17:45:38 +02:00
Zoe Roux 058f7a67a1 Switch to tmdb's API Read Access Token 2025-06-07 17:45:38 +02:00