mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 16:31:55 +00:00
hotfix crunchyroll audio no hardsub playlist
This commit is contained in:
parent
d44189bdde
commit
9cec96a4b3
1 changed files with 13 additions and 8 deletions
21
crunchy.ts
21
crunchy.ts
|
|
@ -1954,6 +1954,14 @@ export default class Crunchy implements ServiceClass {
|
||||||
}
|
}
|
||||||
return s.hardsub_lang == options.hslang;
|
return s.hardsub_lang == options.hslang;
|
||||||
});
|
});
|
||||||
|
if (astreams.length < 1) {
|
||||||
|
console.warn('No audio streams found, using video audio streams instead');
|
||||||
|
astreams = vstreams;
|
||||||
|
}
|
||||||
|
if (vstreams.length < 1) {
|
||||||
|
console.error('Raw video streams not available!');
|
||||||
|
dlFailed = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.warn('Selected stream with %s hardsubs not available', langsData.locale2language(options.hslang).language);
|
console.warn('Selected stream with %s hardsubs not available', langsData.locale2language(options.hslang).language);
|
||||||
if (hsLangs.length > 0) {
|
if (hsLangs.length > 0) {
|
||||||
|
|
@ -1968,15 +1976,12 @@ export default class Crunchy implements ServiceClass {
|
||||||
astreams = astreams.filter((s) => {
|
astreams = astreams.filter((s) => {
|
||||||
return s.hardsub_lang == '-';
|
return s.hardsub_lang == '-';
|
||||||
});
|
});
|
||||||
if (vstreams.length < 1) {
|
|
||||||
console.warn('Raw video streams not available!');
|
|
||||||
if (hsLangs.length > 0) {
|
|
||||||
console.warn('Try hardsubs stream:', hsLangs.join(', '));
|
|
||||||
}
|
|
||||||
dlFailed = true;
|
|
||||||
}
|
|
||||||
if (astreams.length < 1) {
|
if (astreams.length < 1) {
|
||||||
console.warn('Raw audio streams not available!');
|
console.warn('No audio streams found, using video audio streams instead');
|
||||||
|
astreams = vstreams;
|
||||||
|
}
|
||||||
|
if (vstreams.length < 1) {
|
||||||
|
console.error('Raw video streams not available!');
|
||||||
if (hsLangs.length > 0) {
|
if (hsLangs.length > 0) {
|
||||||
console.warn('Try hardsubs stream:', hsLangs.join(', '));
|
console.warn('Try hardsubs stream:', hsLangs.join(', '));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue