mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-02 22:57:34 -05:00
Custom Format detected on "Test Parsing" but not on real file #8130
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Extras
Area: Import Lists
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Organizer
Area: Parser
Area: Scanning
Area: Tooling
Area: UI
Area: Unit Tests
On Hold: MetadataAPI Blocking
On Hold: MetadataAPI Blocking
Priority: High
Priority: Low
Priority: Medium
Status: Accepted
Status: Cannot Reproduce
Status: Confirmed
Status: Help Wanted
Status: In Progress
Status: Indexer - need invite
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: On Hold
Status: Ready for Review
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
conflict
lidarr-pull
no-conflict
not-pulled
readarr-pull
readarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Radarr#8130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rubasace on GitHub (Jan 3, 2024).
Is there an existing issue for this?
Current Behavior
I have a TrueHD Atmos Custom format (from Trashguides):
When testing my custom formats against the file
The Lord of the Rings The Two Towers (2002) {imdb-tt0167261} [Remux-2160p][HDR10][TrueHD Atmos 7.1][HEVC][EN+ES].mkvit reportsTrueHD AtmosCustom Format but when checking the Movie file directly it doesn't.This causes the movie to potentially be downloaded despite being already on the highest score expected.
Expected Behavior
The movie file should report
TrueHD AtmosCustom format when such custom format matches on the "Test Parsing" functionality.Steps To Reproduce
No response
Environment
What branch are you running?
Master
Trace Logs? Not Optional
Trace Logs have been provided as applicable. Reports will be closed if the required logs are not provided.
trace- that are relevant and show this issue.@bakerboy448 commented on GitHub (Jan 3, 2024):
What's the original file name from the import event? Most likely it's a poorly named original file that has terms the custom format ignores
@rubasace commented on GitHub (Jan 3, 2024):
That was actually the case, I removed all the "not" clauses from the Custom Format and it just works. Still weird why the test parsing reports the custom format when I'm pasting the exact same filename. Not sure if that's something you still would like to investigate. Otherwise, feel free to close this issue.
Thanks for the help
@bakerboy448 commented on GitHub (Jan 3, 2024):
Not weird at all. The parser operates off the text. The on disk logic uses scenetitle (original file name) and on disk name.
can't find an existing issue for this, but can you rename it accordingly
@glassbase commented on GitHub (Jan 3, 2024):
I am in same boat having Trash Guides CFs. Thought I was going crazy when it was not parsing TrueHD Atmos custom format on movie details page, but test parsing says it has it. Copy and pasting the same filename in test parsing.
@rubasace commented on GitHub (Jan 3, 2024):
@glassbase I've created an issue on Trash Guides to suggest a fix. Please feel free to add any extra information if you believe I'm missing something.
@bakerboy448 Not sure how to rename it. Maybe just rename it as you believe is best or even close it if not relevant.
@bakerboy448 commented on GitHub (Jan 3, 2024):
Ref https://github.com/Sonarr/Sonarr/issues/5598
Ref https://github.com/Sonarr/Sonarr/pull/5575
@glassbase commented on GitHub (Jan 3, 2024):
I did not realize CF also used the download title. I thought it only used the file name.
My download was
Top.Gun.1986.2160p.UHD.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZwith TrueHD Atmos being the primary audio in the file.This download does in fact have both TrueHD Atmos and DTS-HD MA.
Trash Guides use of "NOT" caused it to not apply
TrueHD AtmosCF as it found DTS in the download file name. And also vice versa, not applyDTS-HD MAbecause it found TrueHDTrueHD Atmos
@bakerboy448 commented on GitHub (Jan 3, 2024):
github.com/Radarr/Radarr@74cfc94b4c/src/NzbDrone.Core/CustomFormats/CustomFormatCalculationService.cs (L172-L183)is likely the problematic code.SceneTitle is only populated if the original pre-import title matches the scene check
github.com/Radarr/Radarr@74cfc94b4c/src/NzbDrone.Core/Parser/SceneChecker.cs (L7-L22)Root cause is poorly named / renamed files that do not accurately reflect the media info of the files.