Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't set content type to null for mixed libraries during creation #5496

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicknsy
Copy link
Contributor

@nicknsy nicknsy commented May 13, 2024

Changes
Removed code that set content type to null for mixed libraries during virtual folder creation.

This was added in 81d936f. There is no further information about what issue this fixed, however it is currently causing issues for parts of code that expect the content type to be correctly set.

I was not able to find any issues when creating a mixed library, viewing mixed library content, etc. after making this change but so much of the code has changed since 2015 it's hard to say if whatever issue that prompted this change has been fixed somewhere else or if it is just not obvious enough to find during preliminary testing.

Alternatively, code that checks for 'mixed' type could instead check for null.

Issues
Fixes #5490
Fixes jellyfin/jellyfin#11284

Also fixes related issues such as library sub-heading showing "Other" instead of "Mixed Movies and Shows."

@nicknsy nicknsy requested a review from a team as a code owner May 13, 2024 17:11
Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit fca2be4
Status ✅ Deployed!
Preview URL https://c48ee241.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs
View bot logs

@thornbill
Copy link
Member

This will definitely break other functionality (in web) that depends on the mixed type being undefined.

@nicknsy
Copy link
Contributor Author

nicknsy commented May 13, 2024

This will definitely break other functionality (in web) that depends on the mixed type being undefined.

Would it be better then to change code that checks for mixed type to check for undefined type? Seems to just be a few places in the library scripts. As long as it's guaranteed that an undefined type always means mixed movies and shows then that should also work.

@thornbill
Copy link
Member

I haven't had a chance to read over the related issue fully but we need to ensure that existing libraries with the undefined type continue to work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants