p-hueber / prefetcharr Goto Github PK
View Code? Open in Web Editor NEWLet Sonarr fetch the next season of a show you are watching on Jellyfin/Emby/Plex.
License: Other
Let Sonarr fetch the next season of a show you are watching on Jellyfin/Emby/Plex.
License: Other
Debian 12
root@server:/home/prefetcharr# ls
Cargo.lock Cargo.toml CHANGELOG.md deny.toml Dockerfile README.md src
root@tjaards-rundfunk:/home/prefetcharr# cargo install --lock --path .
error: unexpected argument '--lock' found
tip: a similar argument exists: '--locked'
Usage: cargo install --locked [CRATE[@<VER>]]...
For more information, try '--help'.
root@server:/home/prefetcharr# cargo install --locked --path .
Installing prefetcharr v0.3.0 (/home/prefetcharr)
Updating crates.io index
Downloaded serde_derive v1.0.195
Downloaded thiserror-impl v1.0.56
Downloaded thiserror v1.0.56
Downloaded serde v1.0.195
Downloaded memchr v2.7.1
Downloaded serde_json v1.0.111
Downloaded clap v4.4.13
Downloaded clap_builder v4.4.12
Downloaded syn v2.0.48
Downloaded quote v1.0.35
Downloaded proc-macro2 v1.0.76
Downloaded anyhow v1.0.79
Downloaded deranged v0.3.11
Downloaded 13 crates (1017.2 KB) in 0.39s
Compiling proc-macro2 v1.0.76
Compiling unicode-ident v1.0.12
Compiling libc v0.2.151
Compiling once_cell v1.19.0
Compiling cfg-if v1.0.0
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: could not compile `proc-macro2` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `libc` (build script) due to previous error
error: could not compile `libc` (build script) due to previous error
error: failed to compile `prefetcharr v0.3.0 (/home/prefetcharr)`, intermediate artifacts can be found at `/home/prefetcharr/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
root@tjaards-rundfunk:/home/prefetcharr#
What's the chances of adding in plex support or tautulli for tracking watched episodes?
Hi,
while building works fine, it is kind of bothersome and doesn't allow a compose-file with other services to just be pulled.
I'm not familiar with specifics and how much work the setup is, but I would greatly appreciate you supplying a prebuilt image via Docker Hub or GHCR.
Thanks for considering!
Hi,
since the last update, next seasons only get monitored, not searched.
2024-04-16T22:55:42.171074Z INFO prefetcharr: prefetcharr 0.7.0
2024-04-16T22:55:42.235646Z INFO prefetcharr: Start watching Jellyfin sessions
2024-04-16T23:00:43.391992Z INFO prefetcharr::process: title="The Simpsons" now_playing=NowPlaying { series: Tvdb(71663), episode: 22, season: 4 }
2024-04-16T23:00:43.393070Z INFO prefetcharr::process: Searching next season num=5
2024-04-16T23:00:43.533372Z ERROR prefetcharr::process: Failed to process err=HTTP status client error (401 Unauthorized) for url (http://localhost:8989/api/v3/command)
Sonarr log says [Info] Sonarr.Http.Authentication.ApiKeyAuthenticationHandler: AuthenticationScheme: API was challenged.
API key is correct and remained unchanged between versions.
Different environments might require more buffer for the next season (slow download speeds for example). Havin the remaining episodes before searching the next season as a variable would allow users to adjust this.
Thanks for the great app, very useful!
Hi,
I would like to propose an optional logging to stdout so logs show up in docker logs
and in extension in apps like Portainer.
Thanks for considering!
I currently have some shows/seasons where I already have imported the season, but the season itself is unmonitored so that Sonarr won't upgrade it.
It seems like this tool only checks for weather or not the next season is monitored - so in this case, it will start monitoring season 2 even though it is already downloaded:
A possible quick workaround would be to check if the current season is unmonitored, and if it is then the next one won't be set to monitored. Could be an optional setting of course.
I am getting the following error in the prefetcharr logs when shows are being watched on Jellyfin:
Error:
2024-04-12T02:35:06.963994Z ERROR prefetcharr::process: Failed to process err=error decoding response body
Caused by:
EOF while parsing a value at line 1 column 0
Jellyfin version 10.8.13 (served through docker [latest tag])
Prefetcharr version 0.6.0 (served through docker)
The error seems to appear when any show is being watched, and appears during the scheduled scan process. If no show is being watched, the error does not appear. Does not seem to matter whether it is within the 'remaining episodes' amount or not. Please let me know if there's any other info I can add!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.