mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 16:31:55 +00:00
additional crunchyroll audio hardsub fix
This commit is contained in:
parent
9cec96a4b3
commit
ade23664b0
1 changed files with 2 additions and 0 deletions
|
|
@ -1794,6 +1794,8 @@ export default class Crunchy implements ServiceClass {
|
||||||
} else {
|
} else {
|
||||||
audioStream = (await audioPlaybackReq.res.json()) as CrunchyPlayStream;
|
audioStream = (await audioPlaybackReq.res.json()) as CrunchyPlayStream;
|
||||||
const derivedPlaystreams = {} as CrunchyStreams;
|
const derivedPlaystreams = {} as CrunchyStreams;
|
||||||
|
// Give Audiostream the Videostream hardsubs if undefined or empty array
|
||||||
|
if (!audioStream.hardSubs || Object.values(audioStream.hardSubs).length === 0) audioStream.hardSubs = videoStream.hardSubs;
|
||||||
for (const hardsub in audioStream.hardSubs) {
|
for (const hardsub in audioStream.hardSubs) {
|
||||||
const stream = audioStream.hardSubs[hardsub];
|
const stream = audioStream.hardSubs[hardsub];
|
||||||
derivedPlaystreams[hardsub] = {
|
derivedPlaystreams[hardsub] = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue