Duplicate root directories
Describe the bug
The Bazarr web UI crashes when a TV root folder exists more than once in the database. The error originates from Mantine’s <Select> component, which does not allow duplicate options. Adding an additional TV root folder with the same name as an existing one causes the dropdown containing TV root folders to fail to render, breaking the interface.
To Reproduce
Steps to reproduce the behavior:
- Add a TV root folder in Bazarr (e.g.,
"TV Shows"). - Add the same folder again using the “Add TV Root” option in the UI.
- Open the Bazarr web interface.
- Observe that the dropdown for TV root folders fails to load, causing the UI to crash.
Expected behavior
The web UI should load normally, and each TV root folder should appear only once in the dropdown. The system should prevent adding duplicate root folders or handle them gracefully.
Note: The “Add TV Root” window is poorly designed and does not clearly indicate what fields are required or what the user is expected to enter. It should provide clear instructions, validation, and prevent duplicates before submission.
Screenshots / Console Output
Browser console shows:
Error: [@mantine/core] Duplicate options are not supported. Option with value "TV Shows" was provided more than once
at Ip (http:///assets/ui-BighK4yo.js:56:153788)
at da (http:///assets/ui-BighK4yo.js:56:154961)
at Xc (http:///assets/index-ACw-ZrJY.js:25:34157)
...
Software (please complete the following information):
- Bazarr: 1.5.4-beta.19
- Radarr version: 6.0.4.10291
- Sonarr version: 4.0.16.2943
- OS: Windows 11
Additional context
- The duplicate is stored in
C:\ProgramData\Bazarr\db\bazarr.dbunder the table containing TV root folders (likelytable_series_paths). - The UI crash occurs even if the backend is running.
- Workaround: Open
bazarr.dbwith DB Browser for SQLite, delete the duplicate entry, and restart Bazarr. - The bug happens specifically when the UI allows adding an additional TV root folder with the same name/path, which leads to the crash.
- Suggested improvement: The web interface should include a check for duplicate root folders, provide better guidance in the “Add TV Root” window, and automatically deduplicate them to prevent crashes.
Can you provide a screenshot of where you are adding a TV root? I can't find the place in the UI where this is done.
Also, please provide the exact version of the Bazarr software you are using, not 1.x.
This function seems like it could be handled by scraping the sonarr or radarr api.
I have no clue what you're talking about here, There's no way to add root folders in Bazarr. You can add path mapping and you can add the same multiple time without any issue (even if it doesn't make sense).
Sonarr already deals with duplicate root folders on their side and prevent the users from creating duplicate:
So, knowing that, can you explain again what is the issue with Bazarr while using the exact labels from the UI and not some other that make it hard to follow you?