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

Remove invalid item id usage as media source id #6396

Open
wants to merge 1 commit into
base: release-10.10.z
Choose a base branch
from

Conversation

Kevinjil
Copy link

Looking at the change history, it looks like an accidental || item.Id was introduced in 4c31742 to query for the item, perhaps not realising it is later used in the query later on for server-side filtering. This was partially fixed by c54db60 and
ca47635 for Live TV by not setting this variable in that case.

Changes
Only use the fallback item id in the API call

Issues
Fixes #6395

@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Dec 17, 2024

Cloudflare Pages deployment

Latest commit a0f0a0d
Status ✅ Deployed!
Preview URL https://6d4fc6fb.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

@Kevinjil
Copy link
Author

Marked as draft as I want to test some more scenarios, and perhaps get some insight from the original commit authors as to why it was added.

@viown
Copy link
Member

viown commented Dec 17, 2024

#6166 (comment)

The server returning no streams when mediaSourceId is defined is believed to be a server issue. See #6166 (comment)

@Kevinjil
Copy link
Author

#6166 (comment)

The server returning no streams when mediaSourceId is defined is believed to be a server issue. See #6166 (comment)

I believe this is not a server issue: we are querying for streams that match the given media source id, where the id we give is not a media source. An empty result is expected from an API point of view.

@viown
Copy link
Member

viown commented Dec 18, 2024

This should be a case specific to Live TV (which should have been fixed). Omitting item id might cause a regression of the original issue (#3994) due to PlaybackInfo not respecting the provided indices.

We might instead need to check for your scenario here

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

src/components/playback/playbackmanager.js Outdated Show resolved Hide resolved
@Kevinjil
Copy link
Author

Kevinjil commented Dec 18, 2024

This should be a case specific to Live TV (which should have been fixed). Omitting item id might cause a regression of the original issue (#3994) due to PlaybackInfo not respecting the provided indices.

I think that selectively applying the fix might be a better idea than trying to figure out all scenarios where is does not apply. I do not have the data to test the intended scenario but this seems like the solution.

We might instead need to check for your scenario here

I propose to only apply the fix if the tracks are selected.

@Kevinjil Kevinjil marked this pull request as ready for review December 18, 2024 21:41
@Kevinjil Kevinjil requested a review from a team as a code owner December 18, 2024 21:41
@Kevinjil
Copy link
Author

@viown As I agree with #6166 (comment) that is might be a weird place to do this logic, I kept the needsTrackWorkaround boolean to indicate why we are doing this here.

@viown
Copy link
Member

viown commented Dec 21, 2024

@Kevinjil Could you re-target your branch to release-10-10.z?

@Kevinjil Kevinjil changed the base branch from master to release-10.10.z December 21, 2024 13:56
@Kevinjil Kevinjil changed the base branch from release-10.10.z to master December 21, 2024 13:56
Looking at the change history, an ` || item.Id` was introduced in
4c31742 to query for the item, but
this workaround is only needed for track selection in some cases and
breaks playback in others. Only apply it when a track is selected.
@Kevinjil Kevinjil changed the base branch from master to release-10.10.z December 21, 2024 14:00
@Kevinjil
Copy link
Author

@Kevinjil Could you re-target your branch to release-10-10.z?

Done

@dmitrylyzo
Copy link
Contributor

We might instead need to check for your scenario here

There was BaseItemKind.Channel, but Bill suggested removing it.

If Channel is supposed to work as a LiveTV channel, we should just add it to the list. I am not familiar with Channel plugins, so I could be wrong.

@Kevinjil
Copy link
Author

We might instead need to check for your scenario here

There was BaseItemKind.Channel, but Bill suggested removing it.

If Channel is supposed to work as a LiveTV channel, we should just add it to the list. I am not familiar with Channel plugins, so I could be wrong.

Adding Channel will not solve the problem, the items provided by the channel themselves are Movie items.

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

Successfully merging this pull request may close these issues.

Item ID is used as MediaSourceId
4 participants