Skip to content

Commit

Permalink
fix: cinecitta english subtitles tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuijjer committed Dec 17, 2023
1 parent 8efa2af commit 9796092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud/scrapers/cinecitta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type WpJsonMovie = {
link: string
movie_sync_id: number
language_subtitles: string
status_other: string
}

type ShowJson = {
Expand All @@ -37,7 +38,8 @@ const hasEnglishSubtitles = (movie: WpJsonMovie) => {

const metadataHasEnglishSubtitles =
movie.language_subtitles?.toLowerCase() === 'engels' ||
movie.language_subtitles?.toLowerCase() === 'english'
movie.language_subtitles?.toLowerCase() === 'english' ||
movie.status_other?.toLowerCase() === 'english subtitled'

return titleDescribesEnglishSubtitles || metadataHasEnglishSubtitles
}
Expand Down

0 comments on commit 9796092

Please sign in to comment.