Improve logging & version bump

This commit is contained in:
AnimeDL 2025-01-28 18:40:21 -08:00
parent e5ac37d1f9
commit 06a839c518
5 changed files with 20 additions and 6 deletions

6
ao.ts
View file

@ -476,7 +476,11 @@ export default class AnimeOnegai implements ServiceClass {
}));
if (!canDecrypt) {
console.warn('Decryption not enabled!');
console.warn('Decryption not enabled, no CDM detected!');
}
if (!(this.cfg.bin.mp4decrypt || this.cfg.bin.shaka)) {
console.warn('No decryptor found, decryption not possible!');
}
const lang = langsData.languages.find(a=>a.ao_locale == media.lang) as langsData.LanguageItem;

View file

@ -1409,7 +1409,7 @@ export default class Crunchy implements ServiceClass {
if (options.cstream !== 'none') {
const playbackReq = await this.req.getData(`https://cr-play-service.prd.crunchyrollsvc.com/v1/${currentVersion ? currentVersion.guid : currentMediaId}/${CrunchyPlayStreams[options.cstream]}/play`, AuthHeaders);
if (!playbackReq.ok || !playbackReq.res) {
console.error('Non-DRM Request Stream URLs FAILED!');
console.error('Request Stream URLs FAILED!');
} else {
playStream = await playbackReq.res.json() as CrunchyPlayStream;
const derivedPlaystreams = {} as CrunchyStreams;
@ -1460,7 +1460,11 @@ export default class Crunchy implements ServiceClass {
const pbStreams = pbData.data[0];
if (!canDecrypt) {
console.warn('Decryption not enabled!');
console.warn('Decryption not enabled, no CDM detected!');
}
if (!(this.cfg.bin.mp4decrypt || this.cfg.bin.shaka)) {
console.warn('No decryptor found, decryption not possible!');
}
for (const s of Object.keys(pbStreams)) {

View file

@ -656,7 +656,13 @@ export default class Hidive implements ServiceClass {
const subsMargin = 0;
const chosenFontSize = options.originalFontSize ? undefined : options.fontSize;
let encryptionKeys: KeyContainer[] = [];
if (!canDecrypt) console.warn('Decryption not enabled!');
if (!canDecrypt) {
console.warn('Decryption not enabled, no CDM detected!');
}
if (!(this.cfg.bin.mp4decrypt || this.cfg.bin.shaka)) {
console.warn('No decryptor found, decryption not possible!');
}
if (!this.cfg.bin.ffmpeg)
this.cfg.bin = await yamlCfg.loadBinCfg();

View file

@ -27,7 +27,7 @@ const transformService = (str: Array<'crunchy'|'hidive'|'ao'|'adn'|'all'>) => {
return services.join(', ');
};
let docs = `# ${packageJSON.name} (${packageJSON.version}v)
let docs = `# ${packageJSON.name} (v${packageJSON.version})
If you find any bugs in this documentation or in the program itself please report it [over on GitHub](${packageJSON.bugs.url}).

View file

@ -1,7 +1,7 @@
{
"name": "multi-downloader-nx",
"short_name": "aniDL",
"version": "5.3.0rc1",
"version": "5.3.0",
"description": "Downloader for Crunchyroll, Hidive, AnimeOnegai, and AnimationDigitalNetwork with CLI and GUI",
"keywords": [
"download",