Open xxtensazenxx opened 4 years ago
Are you running it in docker?
No docker; I've never used it before
Did you set all the configuration perams? https://github.com/samwiseg0/better-discord-notifications/blob/master/script_config.example.py
Step 3
Yup; everything is configured, I double checked
put my radarr API key under radarr_key=, made a movieDB api and put that key under moviedb_key =, and a IMDBAPI key too.
I think the errors may be python related?
Maybe. cd to the folder and just run the script example: python3 ./radarr-discord.py
Paste the output.
Traceback (most recent call last):
File "./radarr_discord.py", line 84, in
Your radarr URL is wrong or it cannot get to the API. Which is /api
. Make sure you do not have basic auth enabled for /api
. It is best to use localhost and the port and not through any reverse proxy.
Ah my bad! updated the urls using localhost; new output when I run the radarr script
Traceback (most recent call last):
File "./radarr_discord.py", line 87, in
and sonarr.py output is this
Traceback (most recent call last):
File "sonarr_discord.py", line 182, in
Radarr error is "normal" test it from the UI now. Same with sonarr? Try that one from the UI as well.
Ok, sonarrr is working now; Radarr is doing nothing now, No output in Radarr logs or radarr_notification.log
try running radarr_eventtype='test' bash -c 'python3 radarr_discord.py'
from the commandline. That would simulate the same thing as radarr running the test itself.
Output
Traceback (most recent call last):
File "radarr_discord.py", line 133, in
Are you running v3?
Radarr I'm running 0.2.0.1480, which is up to date I believe?
also here's the output when I tried again https://i.imgur.com/bwn4Qpz.png (On radarr)
That is v2. The script works for Aphrodite. I don't think it will work with that version. I never tested it with the older version. https://hub.docker.com/r/hotio/radarr hotio/radarr:aphrodite
You can pull the script before it was updated for v3. https://github.com/samwiseg0/better-discord-notifications/tree/787db54ae9ac9b8b43a8d2d01c788c8342f0bc49
It seems V3 is still very nightly, so I'm hesitant to upgrade to it before its on github, also I have no idea how to use docker.
I re-did everything with the script you linked but the final error I get for radarr is
radarr_discord.py Traceback (most recent call last): 8:11pm
radarr_discord.py File "/home/(removed)/scripts/discordnotify/radarr_discord.py", line 66, in
when I just run the script with your command radarr_eventtype='test' bash -c 'python3 radarr_discord.py'
It just posts the lego movie in the discord.
If it posts the lego movie then it worked. If there was an error it would not have posted at all. It should work now.
Weird, I keep trying it It says the KeyError 'Year' in the radarr logs :O
have you tried just downloading a movie and see if it works?
Yup, that's how i've been testing it. I just downloaded a few movies and each time it finishes it gives me the previous error with the "KeyError: 'year'" errors
But does it post to discord successfully?
Nope, it does not post to the discord
What does http://URL:PORT/api/movie/10?apikey=APIKEY
return?
{ "message": "NotFound" }
should I maybe reset API key?
This is not making sense.
1) When testing the script does it post to discord?
2) When downloading something and having the script run it errors with KeyError: 'year'"
? If that is the case something is still wrong with your radarr URL/API key in the config.
When doing the test it ignores anything coming from the radarr API and that is why it would succeed.
Make sure you are setting it exactly as the example shows in the config:
radarr_url = 'http://movies.domain.ltd/' # Make sure you include the trailing /
radarr_key = 'XXXXXXXXXXXXXXXX'
You do not need to reset the API key. You would get a different error.
@xxtensazenxx Did you get this figured out?
Nope, not yet. I checked and its configured as you described... maybe I'll just upgrade to v3. Is there any way to download it besides the docker:?>
They only have docker images for v3 unless you build it yourself.
https://puu.sh/FtfSZ/4fd360a2f7.png
Sonarr script is working perfectly but run into errors with the radarr one. I'm ok at troubleshooting but This is beyond me here. Can provide more info if needed