Skip to content

Commit

Permalink
Sort manifest by best quality first (For Emby)
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 4, 2024
1 parent e1f0610 commit f9ec407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/playlist-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class PlaylistHandler {

const playlist = HLS.parse(manifest);

/** Sort playlist so highest resolution is first in list (EMBY workaround) */
/** Sort playlist so highest resolution is first in list (Emby workaround) */
playlist.variants.sort((v1, v2) => {
if (v1.bandwidth > v2.bandwidth) {
return -1;
Expand Down

0 comments on commit f9ec407

Please sign in to comment.