parse provider language with srt extension

This commit is contained in:
TheBeastLT
2023-10-30 16:42:02 +02:00
parent 12286cba02
commit 8575e0604d

View File

@@ -67,7 +67,7 @@ function getQuality(record, torrentInfo, fileInfo) {
} }
function getLanguages(record, torrentInfo, fileInfo) { function getLanguages(record, torrentInfo, fileInfo) {
const providerLanguages = record.torrent.languages && titleParser.parse(record.torrent.languages).languages || []; const providerLanguages = record.torrent.languages && titleParser.parse(record.torrent.languages + '.srt').languages || [];
const torrentLanguages = torrentInfo.languages || []; const torrentLanguages = torrentInfo.languages || [];
const fileLanguages = fileInfo.languages || []; const fileLanguages = fileInfo.languages || [];
const dubbed = torrentInfo.dubbed || fileInfo.dubbed; const dubbed = torrentInfo.dubbed || fileInfo.dubbed;