FileFlows Arr-Handoff robust gegen Duplicate-Loops #3

Merged
sascha merged 12 commits from fix/fileflows-arr-handoff-robustness-20260912 into main 2026-09-12 12:10:56 +02:00
Showing only changes of commit 188164c3e5 - Show all commits

View file

@ -238,6 +238,31 @@ class RadarrImportSafetyTests(unittest.TestCase):
self.assertEqual(imported["releaseGroup"], "MAMA")
self.assertEqual(imported["indexerFlags"], 4)
def test_release_folder_matches_when_movie_filename_is_shortened(self):
release = "Example.Movie.2026.German.DL.1080p.WEB.H264-GROUP"
exact = f"/tdarr/converted/video/{release}/movie-final.mkv"
result = run_script(
{
"releaseTitle": "movie-final",
"exactPath": exact,
"scopeRoot": "/tdarr/converted/video/",
"queueResponse": {"records": [{"title": release, "movieId": 7331}]},
"historyResponse": {"records": []},
"parseResponse": {},
"candidates": [
{
"path": exact,
"quality": {"quality": {"id": 3, "name": "WEBDL-1080p"}},
"languages": [{"id": 4, "name": "German"}],
}
],
}
)
self.assertEqual(result["result"], 1)
command = next(call for call in result["calls"] if call["type"] == "command")
self.assertEqual(command["body"]["files"][0]["movieId"], 7331)
if __name__ == "__main__":
unittest.main()