-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Fix and rewrite audio and subtitle track selection when transcoding #931
Conversation
00f3b89
to
9f2ac56
Compare
// We need to remove the dashes so that the server can find the correct media source. | ||
// And if we didn't pass the mediaSourceId, our stream indices would silently get ignored. | ||
// https://github.com/jellyfin/jellyfin/blob/9a35fd673203cfaf0098138b2768750f4818b3ab/Jellyfin.Api/Helpers/MediaInfoHelper.cs#L196-L201 | ||
mediaSourceId = itemId.toString().replace("-", ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conversion feels hacky, do we not have a reference to the mediasource so we can use the id from that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is hacky but sadly not. The id shouldn't be a string anyways but the api model would require changes for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crobibero can you help us out here, would it be possible to 1) change the parameter type to a UUID, or 2) allow a UUID with dashes to be auto-converted serverside?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which parameter do you want changed? MediaSourceInfo
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mediaSourceId
, but I don't know whether it has to support other than UUIDs too.
9f2ac56
to
69cecbc
Compare
No description provided.