This commit is contained in:
Izuco 2021-11-23 15:56:19 +01:00
parent 0bfbeee6e3
commit 162e8656b6
No known key found for this signature in database
GPG key ID: 318460063D70949F
3 changed files with 11 additions and 8 deletions

View file

@ -954,7 +954,7 @@ async function getMedia(mMeta: CrunchyEpMeta){
console.log('[INFO] Playlists URL: %s (%s)', curStream.url, curStream.type);
}
if(!argv.skipdl && !dlFailed && curStream){
if(!argv.novids && !dlFailed && curStream){
const streamPlaylistsReq = await req.getData(curStream.url);
if(!streamPlaylistsReq.ok || !streamPlaylistsReq.res){
console.log('[ERROR] CAN\'T FETCH VIDEO PLAYLISTS!');
@ -1088,7 +1088,8 @@ async function getMedia(mMeta: CrunchyEpMeta){
}
}
}
else if(argv.skipdl){
else if(argv.novids){
appstore.out = parseFileName(argv.fileName, appstore.fn, argv.numbers).join(path.sep);
console.log('[INFO] Downloading skipped!');
}
@ -1150,11 +1151,11 @@ async function getMedia(mMeta: CrunchyEpMeta){
}
// go to muxing
if(!argv.skipmux && !dlFailed){
if(!argv.skipmux && !dlFailed && !argv.novids){
await muxStreams({
onlyAudio: [],
onlyVid: [],
videoAndAudio: [{
videoAndAudio: argv.novids ? [] : [{
path: (path.isAbsolute(appstore.out as string) ? appstore.out as string : path.join(cfg.dir.content, appstore.out as string)) + '.ts',
lang: appstore.lang as string,
lookup: false
@ -1261,6 +1262,7 @@ const downloadFromSeriesID = async () => {
service: 'crunchy',
type: 'srz'
}, argv.series as string, [item.episodeNumber]);
if (!argv.novids)
muxStreams({
onlyAudio: [],
onlyVid: [],
@ -1591,7 +1593,7 @@ async function getMediaList(medias: CrunchyEpMetaMultiDub){
console.log('[INFO] Playlists URL: %s (%s)', curStream.url, curStream.type);
}
if(!argv.skipdl && !dlFailed && curStream){
if(!argv.novids && !dlFailed && curStream){
const streamPlaylistsReq = await req.getData(curStream.url);
if(!streamPlaylistsReq.ok || !streamPlaylistsReq.res){
console.log('[ERROR] CAN\'T FETCH VIDEO PLAYLISTS!');
@ -1730,7 +1732,8 @@ async function getMediaList(medias: CrunchyEpMetaMultiDub){
}
}
}
else if(argv.skipdl){
else if(argv.novids){
appstore.out = parseFileName(argv.fileName, appstore.fn, argv.numbers).join(path.sep);
console.log('[INFO] Downloading skipped!');
}

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "multi-downloader-nx",
"version": "2.0.0",
"version": "2.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,7 +1,7 @@
{
"name": "multi-downloader-nx",
"short_name": "aniDL",
"version": "2.0.0",
"version": "2.0.1",
"description": "Download videos from Funimation or Crunchyroll via cli",
"keywords": [
"download",