-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please finally fix notify flow #975
Comments
Thanks, last time I tried this it worked fine for me. You can see here the same method is used for both radarr and sonarr: Which radarr and sonarr versions are you using? |
Hi, sonarr was working from begining, i never saw the radarr part work. Every single transcode fails because of this part of the flow. I think someone found something out. It might have to do with the "old filename" and "new filename". Could u try to swap that? |
No issues here neither, i do also file rename incl {avcodec} (soundcodec} since day 1 i use notify radarr and sonarr, |
I doubt it. Radarr:
|
I had this exact issue with the notify plugin but only on some specific movies. I rewrote this plugin to make it more robust then opened a pull request some time ago : HaveAGitGat/Tdarr_Plugins#600 One thing I added was to try to get the id of the movie using the inputFileObj._id (current file name) if the plugin fails with the originalLibraryFile._id (original file name). I also added some logs to understand a little what's happing. |
I remember investigating this issue (before I made the modifications on the plugin). I imported the open API file of the Radarr API on Postman and made some tests there.
Given the error :
I would still suggest using the modifications I made on this plugin as it provides a little more information for understanding what's happening and is a little more resilient. In addition to all this, can you provide a screen shot of how you use this plugin in your flow please ? It would help if you could show how you handle passing the different parameters for Radarr and Sonarr depending on your file type (movie or serie). |
So thats my flow: edit (all my flows are the same just with or without notify) |
Am I correct in assuming that you use two separate libraries for your movies and series and that the movie library uses another flow which has the Radarr configuration ? Did you also check your API key for the Radarr flow ? Can you also provide one file file name you have the error on ? |
yes, how else??? yes i checked ported and api key already 19802370912387108283091283123ß9180724678123657841687239812836497120783712 times, atleast.
|
all of them.
|
I don't see anything there that would cause the issue. That being said, since this plugin is used by lots of people, and it's obviously working for most of us, the problem is still probably on your side. |
Cant the dev add your changes to the code? |
@CurlyFlow still need to check some things but you can try out their changes by adding the js file to your local plugins at: FlowPlugins/LocalFlowPlugins/tools/notifyRadarrOrSonarr/2.0.0/index.js Let us know if it works for you |
Ok, where do i find that file? (i mean the file from marnalas) i think we found out what the problem was at some point somewhere (but cant find it) if i remember correct it was that it tells radarr the old name like before transformation, but it only worked if you tell him the new name. (dont ask me) i somehow manually querryd radarr, and it would work with the new name, but not the old. Why i dont know. But a fix would be, try normal, if not working, try new name? |
You can find the file here : https://github.com/HaveAGitGat/Tdarr_Plugins/pull/600/files
This might happen if, somehow, Radarr detects the name change before the notify plugin is executed. Trying with the new name is one of the changes I implemented. So if it's the root of your issue, first of all my modifications should work for you and, second, you should see something along those lines in the logs
|
Im a bit lost here. I dont have "FlowPlugins/LocalFlowPlugins/tools/notifyRadarrOrSonarr/2.0.0/index.js" I have appdata\tdarr\server\Tdarr\Plugins\FlowPlugins\CommunityFlowPlugins\tools\notifyRadarrOrSonarr There is no 2.0.0 directory, i created that directory and placed the index.js there, but how to use it now? Do i need to select it somwehere? |
Yes my suggestion was to put it in the LocalFlowPlugins folder (you might need to create this) as it’s not coming from the community plugins repo atm but you can put it in either - plugins in CommunityFlowPlugins can be overwritten by any future updates but LocalFlowPlugins is just your own plugins. Yes once you’ve added it there you need to then select the new plugin version in the webUI and add it to the flow (refresh the page), it will be on the right hand side bar in the default position. The old 1.0.0 version will be at the very bottom of the sidebar if you still need to use it. |
Something cahgned so i guess its correct... under version it says 2.0.0
|
Yup, from the logs it looks like my modifications are there. |
no |
I dont understand what is different from my setup to yours sab -> so/radarr -> tdarr Do your files also have empty spaces " " or "[" or "]" or "+" or "}"? Maybe its just a problem because of special characters... Also what are you sending radarr? Maybe we could send an import to that directory? Instead of an rename? When i looked for the movie, it wasnt the correct one in radarr (so still the old) Someone maybe want to teams into my pc to check? Or something? I would really like to help to solve that problem... |
@Marnalas did u see my edit? |
Ah no, didn't see it. I follow the trash guides naming schemes https://trash-guides.info/Radarr/Radarr-recommended-naming-scheme/. My file names look like this : Dune (2021) {imdb-tt1160419} [Bluray-1080p][TrueHD Atmos 7.1][FR+EN][h265]-FoX.mkv There is something I don't understand in what you wrote in your edit. You say that the file name showed in the plugin logs (Alien Outbreak [DE+EN] Remux-1080p) is not the correct one known by Radarr. That implies that something changed the name at some point. Can you give us more details about that ? In my situation this is what happens :
No renaming happens between steps 2 and 6. From what you're describing, it looks like you have some other stuff happening that changes the name outside of Tdarr (so Tdarr doesn't know the new name). I know you already said that it's not the case but I don't get how Tdarr could have "an old name" without the name being changed by something at some point. |
Good question. I dont know how that could have happend. I only use sonarr and radarr for naming... and like i said sonarr is working fine since beginning. Do you also have radarr 5.3.6.8612? Im doing an update all and then i try to tdarr it again.. maybe it has something to do with tdarr creating 0 byte files? With every file it tries 2-3 times to copy a fu... file over... AHH one thing is maybe different, do you also change the file extention in your flow? Mine gets all reset to mp4? |
Yeah I force the container to mkv and also transcode video+audio (which impacts the files names). I have two Radarr instances, each linked to its own Tdarr library. Both of them are updated to the last version automatically, right now they are v5.3.6.8612. What you just wrote raises a lot of questions. But handling that here will be complicated. I think a discord conversation/screen share will be needed. The easiest way to organise that would be for you to join the Tdarr discord : https://discord.com/invite/q8AcZWQ. Contact me in the help-chat channel, by tagging "Enro Marnalas". |
For anybody reading this. @CurlyFlow shared his screen and we investigated. I can say for sure that it's not a Tdarr/Tdarr plugin issue. The problem comes from the Radarr API "parse" endpoint used to get the movieId. We queried it directly with curl and, I have no idea why, it just refused to find the movies even when the file name was correct. We checked everything we could think of (cultural context issues with some characters decoding, etc.) but even with a file name reduced to "eins.mp4" the parse endpoint still refused to work as intended. We hang up on the conclusion that maybe it's related to CurlyFlow's installation being quite old and having migrated through many versions, maybe it's the fact that he has lots of content, maybe it's a combination of everything, etc. Short version: we don't know. CurlyFlow is gonna try to do a fresh install with a few movies and check if it works. |
@Marnalas FYI, I switched from the movieLookup endpoint to the parse endpoint (in combination with encodeURIComponent which would fix your special characters) to have Radarr be in charge of trying to find the file. Especially with larger installs the movieLookup response could be quite large. |
@supersnellehenk Thank you for your message. I'll try to play with the moovieLookup endpoints in postman and try to determine how to use it best to not have this large response problem. I do agree with you that Radarr should be in charge of finding the movie. More details on what I intend to do : |
Ok, just got confirmation from @CurlyFlow that the latest modifications I made in the PR HaveAGitGat/Tdarr_Plugins#600 solved his issue (see his logs below). The notify plugin is now able to find the movieId throught the lookup?term=imdb:imdbId endpoint (for both Radarr and Sonarr).
I still have no idea why the parse endpoint doesn't work for @CurlyFlow while it works for most of us. That being said, I also had some problems on my side for some specific files, so I think that these modifications can be to the benefits of everyone using this plugin. |
Yes, its working fine! |
You should edit your messages and remove any personal information. I'll do it my messages. |
Thanks marnalas for fixing this issue. |
To make it short, the sonarr part is working fine, the radarr one doesnt work.
It never did since you added it.. i think its very important because i dont want to redownload things just because radarr thinks it has a "old" file...
The text was updated successfully, but these errors were encountered: