Merge pull request #195 from ttshivers/direct_play_subtitles

Direct play subtitles
This commit is contained in:
Travis Shivers 2020-09-28 15:14:00 -05:00 committed by GitHub
commit caf67ad79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -227,7 +227,9 @@ export default {
GET_SUBTITLE_PARAMS: (state, getters) => {
if (!getters.GET_SELECTED_SUBTITLE_STREAM || getters.CAN_DIRECT_PLAY
|| getters.CAN_DIRECT_PLAY_SUBTITLES) {
return null;
return {
subtitles: 'none',
};
}
if (getters.SHOULD_FORCE_BURN_SUBTITLES) {

View File

@ -48,8 +48,10 @@ async function* fetchLineGenerator(url, signal) {
const extractValue = async (nextPromise) => {
try {
const { value } = await nextPromise;
return value;
const { done, value } = await nextPromise;
return done
? null
: value;
} catch (e) {
return null;
}