Off topic Code request help Radarr/Sonarr

  • So far no luck here either. just does not seem to do anything.

    Darn you was my lost hope Bern lol might have to bung ryecoaaron money to do it lol! 2 minutes with him and it would be working.

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Darn you was my lost hope Bern lol might have to bung ryecoaaron money to do it lol! 2 minutes with him and it would be working.

    Don't know about that. My poking so far is leading me to suspect potential python/pyarr version problems too. When I popped it on an ubuntu 20 lxc (basically the ubuntu exquivalent of debian 11) I am getting python related errors pointing to pyarr and it's json parsing. (I generally use ubuntu on the lxc's as it goes on with a little less messing around than debian)


    not sure if the scripting is python 2 based but ubuntu is installing python3 and the equivalent pyarr, or if there is something else going on I am missing.


    Gonna have one more kick at it with a debian 10 or 11.

  • Ok so, fired up a deb 11 lxc, it's pinging the host ok, running the scripts returns no errors but seems to do nothing still.


    No access activity in the *arr logs. Tried echoing the parsed id's that the python scripts are supposed to return, and not seeing anything, which tells me that the scripts are not actually pulling anything from the containers.


    Once again though if this is an issue with a docker versus a native install, I don't know to address that really. If it is because of a module missing from the container, you could add it, but the next restart would drop the module, unless the base image is rebuilt from scratch. A try with a native install of radarr and these scripts on another system or a vm might work and answer the question of the no returned id's, but it's something I don't have the time to even get into building up another system and testing right now.


    While this would be nice for automation, I don't have the ability (without some time learning some things) or desire to really chase further by rebuilding docker base images.


    ***edit***

    The deb lxc was not giving the pyarr errors that the ubuntu lxc was giving.

  • No worries Bern thank you for trying. I would not be anygood to help as my coding skills are zero. I'll have a look about see if there is something like this one out there

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Ive found one that works! Enjoy peeps


    GitHub - MattDGTL/sonarr-radarr-queue-cleaner: A simple script using Sonarr and Radarr API
    A simple script using Sonarr and Radarr API. Contribute to MattDGTL/sonarr-radarr-queue-cleaner development by creating an account on GitHub.
    github.com

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Interesting. I'll have to give it a whirl. Maybe see if it can be extended to do the other servarr apps too.

    Works great BernH. I just made a folder and ran the two commands after filling in the API etc... ive set it to every 30 minutes tho.

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Works great BernH. I just made a folder and ran the two commands after filling in the API etc... ive set it to every 30 minutes tho.

    Looking at the docker file, it looks like the env variables are set for only sonarr and radarr, but theoretically, we should be able to add variables for the other apps. If their json structurs are the same (hopefully they should be), extending it to work with the others should not be a problem.


    Since it builds a docker container to run this in, there should be no worries about it polluting the native python install for OMV.

  • Looking at the docker file, it looks like the env variables are set for only sonarr and radarr, but theoretically, we should be able to add variables for the other apps. If their json structurs are the same (hopefully they should be), extending it to work with the others should not be a problem.

    Yea I don't see why not.


    Since it builds a docker container to run this in, there should be no worries about it polluting the native python install for OMV.


    indeed its its own container

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Hey BernH!


    So I have been messing around with this, changing, for me, from Radarr to Readarr... It seems to be a little more involved as if something were more embedded than the cleaner.pl file.

    I modified mine as such



    But when starting the container, it seems Sonarr works but not the radarr to readarr modified and I get this error;



    Like it wants to find radarr_url..Where is it looking for that.

  • You still have a radarr on line 79 just seen it.


    Code
        readarr_queue = await make_api_request(radarr_url, READARR_API_KEY, {'page': '1', 'pageSize': await count_records(READARR_API_URL,READARR_API_KEY)})

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Holy F Balls! Just mofified it...- Now says;


    Code
    [INFO]: Checking readarr queue...
    
    2023-09-20 20:47:05,469 [ERROR]: Error making API request to http://192.168.5.44:8787/api/v3/queue: 404 Client Error: Not Found for url: http://192.168.5.44:8787/api/v3/queue
    
    2023-09-20 20:47:05,471 [ERROR]: Error making API request to http://192.168.5.44:8787/api/v3/queue: 404 Client Error: Not Found for url: http://192.168.5.44:8787/api/v3/queue?page=1
    
    2023-09-20 20:47:05,471 [WARNING]: Readarr queue is None or missing "records" key
    
    2023-09-20 20:47:05,471 [INFO]: Finished running media-tools script. Sleeping for 10 minutes.


    I copied and pasted the key, and it is indeed the correct location.

  • its saying the IP address is wrong or Key


    No the dockerfile is ran only once to install it to a container.


    I run it like this


    docker run -d --name media-cleaner -e SONARR_API_KEY='xxx' -e RADARR_API_KEY='xxx' -e SONARR_URL='http://10.0.0.222:8989' -e RADARR_URL='http://10.0.0.222:7878' -e API_TIMEOUT='600' media-cleaner


    What command did you run it with?

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • docker run -d --name media-cleaner -e SONARR_API_KEY='xxx -e READARR_API_KEY='xxx' -e SONARR_URL='http://192.168.5.44:8989' -e READARR_URL='http://192.168.5.44:8787' -e API_TIMEOUT='600' media-cleaner

    Hmm looks fine ill install readarr tomorrow and have ago.

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • Just weird!


    Sonarr works but not Readarr; All I did was change every instance of Radarr to Readarr, and of course the Port.


    Sonarr is 192.168.5.44:8989

    Readarr is 192.168.5.44:8787


    Both are open and available. I even copy/pasted the API Key!!

    I wonder if Sonarr and Radarr use

    Code
    /api/v3/queue

    But Readarr does not.

  • I was digging into this too. readarr and lidarr are using a different api set from what I can see. (v1 not the v3 sonarr and radarr use). I was unable to get it to connect to both of them.


    I suspect the entire script would have to be changed to talk to the v1 api. Unfortunately I don't know python so I'm at a loss on actually programming something in here.


    All that said, I couldn't actually get this to work with my setup. The initial run reads the status of anything in the queue, and then goes into it's timeout before running again, but it never does a second run. so it never actually blacklists or removes the items from the queue. And of course since it just sits there at the timeout, there is no additional logging info that would point me to an error.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!