Radarr / Radarr

Movie organizer/manager for usenet and torrent users.

Home Page:https://radarr.video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FREEBOX DOWNLOAD] Incorrect File Import Handling When Downloading Multiple Movies

YDeltagon opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Current Behavior

When using Freebox as the download client configured with Radarr, if multiple movies are downloaded into the same directory "radarr-films", Radarr incorrectly imports the first completed download as all the movies.
For example, when downloading the Harry Potter series, if "The Sorcerer’s Stone" finishes first, all subsequent imports in Radarr are recognized as "The Sorcerer’s Stone", despite Radarr assigning them different titles

image

Expected Behavior

Radarr should import each movie as a separate entity, respecting the individual completion and correct naming, ideally downloading each movie into a sub-folder named with the movie's download ID to avoid conflicts

image

Steps To Reproduce

  1. Configure Freebox as the download client in Radarr
  2. Initiate the download of multiple movies into the same target folder "radarr-films"
  3. Observe that the first completed download is imported as all movies in the series

Environment

- OS: W11 64bits
- Radarr: 5.4.6.8723 — 2024-04-13
- Using Reverse Proxy: Flaresolverr
- Browser: Chrome / Plex / LG WebOS / Android

What branch are you running?

Develop

Trace Logs? Not Optional

Is too long :\

Trace Logs have been provided as applicable. Reports will be closed if the required logs are not provided.

  • I have read and followed the steps in the wiki link above and provided the required trace logs - the logs contain trace - that are relevant and show this issue.

👋 @YDeltagon, In order to help you further we'll need to see logs. You'll need to enable trace logging and replicate the problem that you encountered. Guidance on how to enable trace logging can be found in our troubleshooting guide.

On : "TRACE 11"
at : 2024-04-18 01:13:03.6

"Attempting to hardlink movie file: F:\Telechargements\Radarr-Films\Harry.Potter.and.the.Order.of.the.Phoenix.2007.2160p.UHD.BLURAY.REMUX.HDR.HEVC.Multi.VFF.DTS-X.7.1-romandelc.mkv to F:\Videos\Radarr-Films(1998) Taxi - {imdb-tt0152930}\Taxi () _ Remux-2160p - [HEVC DTS-X (7.1 [EN+FR]) (Sub [EN+FR]) - HDR10 10bits].mkv"

https://gist.github.com/YDeltagon/c93123d547c92b3efa3d422b8959a3e0#file-radarr_trace_freebox-import-txt-L418

image

After analyzing the logs and considering the configuration details, I suspect that the issue with movie file imports might be related to the copyusinghardlinks setting. Since my source (Freebox) and destination are not on the same operating system, this could potentially cause issues with hardlinking.

I'm planning to test the import process with the copyusinghardlinks option disabled to see if this resolves the issue. I'll provide an update based on the results of this test.

Same error

image
Good
image
Harry Potter : Kung Fu Edition ?

Please provide the logs in the manner prescribed in the wiki you indicated you agreed to. No one will look through the tens of thousands of lines across 4 files for a niche client with a likely niche bug.

edit: logs in trace 11 that seems to have the issue also don't include the download client response and radarr parsing/details of the client items.

4 log files and uploaded directly to github is not what the wiki states.

copyusinghardlinks

not the issue. if hardlinks are not supported it falls back to copy+delete.

still does not include the download client response and radarr parsing/details of the client items. only shows proccessing of files on disk

Gist update with 1 minute before

Firstly, you have a bunch of corrupted mkv files.

Secondly, why is Taxi.1.1998.MULTi.BluRay.1080p.REMUX.AVC.HD-MA.5.1.x264-chrisj72.mkv renamed mid processing to Taxi.1. 1998 .FRENCH.BluRay.1080p.REMUX.AVC.TrueHD.5.1.x264-chrisj72?

I've tried repeatedly with various movies, but I keep encountering the same issue. My setup is similar to Sonarr, where I don't face many problems because it downloads into separate folders.

To resolve this, both Sonarr and Radarr should consider implementing a feature to download each movie into a dedicated folder named after a unique identifier (e.g., the download ID) Freebox/telechargement/radarr-films/DownloadID assigned by Sonarr and Radarr. This would address the issue as indicated in my first screenshot, where there is an option to set a variable for the folder name. Implementing this could significantly streamline the file management and import process.

Additionally, I'm puzzled as to why Radarr is detecting name changes, with spaces appearing and the ".mkv" disappearing, without any action on my part. It happens automatically. Also, I can confirm that the MKVs are not corrupted because they play perfectly fine, and manual imports work without any issues.

I would like to see the trace logs after you add 2 movies to freebox, because I want to see /downloads/add in the logs.

Also are you using multiple download clients or just one instance of freebox?

One instance

Do you plan to provide the trace logs I requested?

It's in progress. I've initiated ultra-light versions of two films and started the trace log. I'll send it over as soon as it's available.

19000 lines...
'm not sure how to make it easier for you with so many lines of log; I did my best, started the downloads, and just waited for the import.

Hang in there with all those lines!

https://gist.github.com/YDeltagon/bd76cb8723c86121d936307a21453706

image
image

Thanks, those logs are somewhat helpful.

I'll provide you later with a build that contains a possible fix for you to test out.

Thank you very much, your responsiveness is impressive!
I'm available whenever it's convenient for you ;)

https://radarr.servarr.com/v1/update/freebox-infohash/updatefile?os=windows&runtime=netcore&arch=x64&installer=true

Install this, give it a test and then provide new trace logs for 2 grabs like the previous ones.

Thanks for the logs. I'll push some log statements to a new build to see what's really going on.

@YDeltagon Do you use any remote mappings? Can you show them in a screenshot?

'Freebox:Harry.Potter.Et.Les.Reliques.De.la.Mort.1ere.Partie.2010.FRENCH.BRRip.XviD.AC3-NoTag': ClientState=Completed (readonly) RadarrStage=Downloading Movie='Harry Potter Et Les Reliques De la Mort 1ere Partie - 2010 Bluray-480p v1' OutputPath=F:\Telechargements\Radarr-Films\.

The issue seems to be the OutputPath not containing the filename as well, just the download directory. While it works fine for Sonarr due to having subfolders for season packs, might not work for single episode files as well.

Considering the nature of this service, I'm unable to implement a fix by fetching the list of the torrent files to get the proper filename.

image
image
image
image

Hello, and voila

'Freebox:Harry.Potter.Et.Les.Reliques.De.la.Mort.1ere.Partie.2010.FRENCH.BRRip.XviD.AC3-NoTag': ClientState=Completed (readonly) RadarrStage=Downloading Movie='Harry Potter Et Les Reliques De la Mort 1ere Partie - 2010 Bluray-480p v1' OutputPath=F:\Telechargements\Radarr-Films\.

The issue seems to be the OutputPath not containing the filename as well, just the download directory. While it works fine for Sonarr due to having subfolders for season packs, might not work for single episode files as well.

Considering the nature of this service, I'm unable to implement a fix by fetching the list of the torrent files to get the proper filename.

That's exactly what I thought. Sonarr doesn't encounter issues because it downloads into separate folders. For Radarr, it would be beneficial to have a variable in the "category" setting in my Freebox download client to manage each movie download into its own folder. This would help ensure that each movie is handled correctly and avoid the issues we're seeing with file importation.

image

Like I said, Sonarr should have the same issue with single episodes.

Your suggestion is not a proper fix, someone with access needs to do the similar thing Qbittorrent does and to loop through the torrent files.

Like I said, Sonarr should have the same issue with single episodes.

Yes, sorry my english is not perfect, i use some "google trad"
Sonarr download saison on folder, yes - single ep, on the root download folder = bug

Thanks for your help 💯

No problem. For now I can only recommend switching to something like qBittorrent until a French contributor takes a a jab at this.

I use " Blackhole"
I can't use qBittorrent because I can't put a VPN on my PC, otherwise, it messes up the game servers I host...
it's a bit of a mess on this PC :D