From 7f03bd2d86697719f826af5756398f25df3c08c3 Mon Sep 17 00:00:00 2001 From: Izuco Date: Sun, 19 Dec 2021 13:26:16 +0100 Subject: [PATCH] Fixed #189 --- crunchy.ts | 2 +- funi.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crunchy.ts b/crunchy.ts index 26a44656..d5acd7fc 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -1145,7 +1145,7 @@ async function downloadMediaList(medias: CrunchyEpMeta) : Promise<{ variables.push(...([ ['title', medias.episodeTitle], - ['episode', medias.episodeNumber], + ['episode', isNaN(parseInt(medias.episodeNumber)) ? medias.episodeNumber : parseInt(medias.episodeNumber)], ['service', 'CR'], ['showTitle', medias.seasonTitle], ['season', medias.season] diff --git a/funi.ts b/funi.ts index c58b3ef6..a0431ad4 100644 --- a/funi.ts +++ b/funi.ts @@ -587,7 +587,7 @@ async function downloadStreams(epsiode: FunimationMediaDownload){ console.log('[INFO] Stream URL:',videoUrl); fnOutput = parseFileName(argv.fileName, ([ - ['episode', fnEpNum], + ['episode', isNaN(parseInt(fnEpNum as string)) ? fnEpNum : parseInt(fnEpNum as string)], ['title', epsiode.title], ['showTitle', epsiode.showTitle], ['season', season], diff --git a/package-lock.json b/package-lock.json index e56280d0..4ba7d8f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "multi-downloader-nx", - "version": "2.0.9", + "version": "2.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "multi-downloader-nx", - "version": "2.0.9", + "version": "2.0.10", "license": "MIT", "dependencies": { "cheerio": "^1.0.0-rc.10", diff --git a/package.json b/package.json index 503d6d6a..248da5f4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "multi-downloader-nx", "short_name": "aniDL", - "version": "2.0.9", + "version": "2.0.10", "description": "Download videos from Funimation or Crunchyroll via cli", "keywords": [ "download",