Open BlastBolt5 opened 1 month ago
I suspect this is because of the extra dot in your command line, presumably this fileName should work fine: ./temp/anime/en-US/That Time I Got Reincarnated as a Slime/Season 03/That Time I Got Reincarnated as a Slime - S03E01 - Demons and Strategies
I should see if I can throw an error for cases like this
changing the filename still leaves me with that random directory in the directory specified in the dir-path.yml ("/home/blastbolt5/anime" in this case) the extra ./ was a left over from the temp fix I mentioned in #732
Just for testing sake, what if you remove the "." at the start of the fileName option ?
--fileName "/temp/anime/en-US/That Time I Got Reincarnated as a Slime/Season 03/That Time I Got Reincarnated as a Slime - S03E01 - Demons and Strategies"
Errors out trying to write it straight to the root of the filesystem
node:fs:1032
binding.rename(
^
Error: ENOENT: no such file or directory, rename '/home/blastbolt5/anime/temp-GX9UQE4JZ.video.m4s' -> '/temp/anime/en-US/That Time I Got Reincarnated as a Slime/Season 03/That Time I Got Reincarnated as a Slime - S03E01 - Demons and Strategies.English.video.m4s'
at Object.renameSync (node:fs:1032:11)
at eIe.<anonymous> (/snapshot/_builds/index.cjs)
at Generator.next (<anonymous>)
at fulfilled (/snapshot/_builds/index.cjs)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -2,
code: 'ENOENT',
syscall: 'rename',
path: '/home/blastbolt5/anime/temp-GX9UQE4JZ.video.m4s',
dest: '/temp/anime/en-US/That Time I Got Reincarnated as a Slime/Season 03/That Time I Got Reincarnated as a Slime - S03E01 - Demons and Strategies.English.video.m4s'
}
Using the full direct path for the fileName option
--fileName "/home/blastbolt5/anime/temp/anime/en-US/That Time I Got Reincarnated as a Slime/Season 03/That Time I Got Reincarnated as a Slime - S03E01 - Demons and Strategies"
Created this mess at /home/blastbolt5/anime/
Still with nothing in them, the video went to the folder it was supposed to
Program version
5.1.4
Operating System
Linux
Type
CLI
Service
Crunchyroll
Command used
aniDL --service crunchy --dubLang eng --episode GX9UQE4JZ --force n --fileName ./temp/./anime/en-US/That Time I Got Reincarnated as a Slime/Season 03/That Time I Got Reincarnated as a Slime - S03E01 - Demons and Strategies
Show ID
GYZJ43JMR
Episode
GX9UQE4JZ
Console Output
Additional Information
It creates a random directory at
no that is not accidentally put in there twice, it just seems to try to create that directory as well even tho it saves the final file to just
It's just trying to create the folder structure at two locations, one in the proper spot, the other using the proper full path but starting at the directory specified in the dir-path.yml