Hiding libraries of two providers in global filter menu not working

Issue description:

All libraries are displayed if at least one library is set to hidden in two or more shown media providers in the global filter menu.

Expectation:
Only the libraries set to be shown will be shown. The hidden libraries will be hidden.

Logs:

Upload description: 202503251945 Hiding libraries of two providers in the global filter menu not working

Additional information:

 
See logs:
the following query is always “true” if both media providers 4 and 6 are shown but have hidden libraries:
(albums.provider_id!=4 OR …) OR (albums.provider_id!=6 OR …)

(albums.provider_id NOT IN (5)) AND ((
(albums.provider_id!=4 OR (albums.provider_id=4 AND albums.source_library LIKE ‘%, EC0…,%’))
OR (albums.provider_id!=6 OR (albums.provider_id=6 AND albums.source_library LIKE ‘%, C8F…,%’))
OR (albums.provider_id!=6 OR (albums.provider_id=6 AND albums.source_library LIKE ‘%, 582…,%’))
))

See also screenshots (uploaded together with the logs):
hiding a library in two providers increases the number of shown albums.
 

Reproduction steps:

 
To reproduce the following is needed:

  • two or more media providers with two or more libraries each

To reproducte
a) open global filter menu
b) show two media providers
c) hide one or more (but not all) libraries in each shown media providers.
Then all albums from both media providers will be shown and not only the to be shown libraries.
 

Media provider:

WebDAV

Screenshots:

     

Thanks will be fixed.

1 Like