Skip to content

Commit

Permalink
Fix: modify fallback to use only stream without subtitle (closes #33)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateussouzaweb committed Jan 31, 2024
1 parent f276632 commit e1abe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const streamVideo: Callback = async ({ state }) => {

const streams = streamsResponse.streams.adaptive_hls || []
const locale = localStorage.getItem('preferredContentSubtitleLanguage')
const priorities = [locale, 'en-US', '']
const priorities = [locale, '']

let stream = ''
priorities.forEach((locale) => {
Expand Down

0 comments on commit e1abe11

Please sign in to comment.