Skip to content

Commit

Permalink
Merge pull request #913 from chiflix/fix
Browse files Browse the repository at this point in the history
style(typescript): fix ts error
  • Loading branch information
ipy authored Aug 30, 2019
2 parents cad3c45 + a5fc1f2 commit 0957172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/renderer/components/PlayingView/SubtitleControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export default {
...mapGetters(['winWidth', 'originSrc', 'primarySubtitleId', 'secondarySubtitleId', 'list', 'privacyAgreement',
'calculatedNoSub', 'winHeight', 'isFirstSubtitle', 'enabledSecondarySub', 'isRefreshing', 'winRatio', 'translateProgress', 'selectedTargetLanugage']),
...mapState({
// @ts-ignore
loadingTypes: ({ Subtitle }) => {
const { loadingStates, types } = Subtitle;
const loadingSubtitles = Object.keys(loadingStates)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/services/subtitle/searchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ export function retrieveEmbeddedList(
): Promise<[string, ISubtitleStream][]> {
return getSubtitleStreams(videoSrc).then(streams => streams
.filter(({ index }) => !excludedStreamIndexes.includes(index))
.filter(({ codecName }) => Object.values(Format).includes(codecName))
.filter(({ codecName }) => Object.values(Format).includes(codecName as Format))
.map(stream => [videoSrc, stream]));
}

0 comments on commit 0957172

Please sign in to comment.