This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

archiver-bot: only report movie as available when file actually exists

+5 -3
+5 -3
5pkgs/archiver-bot/archiver_bot/__init__.py
··· 315 315 ) as resp: 316 316 results = await resp.json() 317 317 if results and len(results) > 0: 318 - # Return direct file path if available, otherwise folder 319 - movie_file = results[0].get("movieFile", {}) 318 + movie = results[0] 319 + if not movie.get("hasFile"): 320 + return None 321 + movie_file = movie.get("movieFile", {}) 320 322 if movie_file and movie_file.get("path"): 321 323 return movie_file["path"] 322 - return results[0].get("path") or results[0].get("folderName") 324 + return None 323 325 else: 324 326 async with session.get( 325 327 f"http://localhost:8989/api/v3/series?tvdbId={tmdb_id}",