Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: putting output on a different drive breaks it #732

Open
BlastBolt5 opened this issue Jul 9, 2024 · 2 comments
Open

[BUG]: putting output on a different drive breaks it #732

BlastBolt5 opened this issue Jul 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@BlastBolt5
Copy link

BlastBolt5 commented Jul 9, 2024

Program version

5.1.4

Operating System

Linux

Type

CLI

Service

Crunchyroll

Command used

aniDL --service crunchy --dubLang eng --episode GEVUZ7WGP --force n --fileName ./anime/en-US/Blue Exorcist/Season 03/Blue Exorcist - S03E09 - Help Me

Show ID

G649PJ0JY

Episode

GEVUZ7WGP

Console Output

=== Multi Downloader NX 5.1.4 ===

USER: <Removed>
Your Country: <Removed>

Requested object ID: GEVUZ7WGP
 ✓[S:GRVNC2E78|E:GEVUZ7WGP|EPI.928563] Blue Exorcist -Shimane Illuminati Saga- (English Dub) - 9 - Help Me [23m40s, SUB, DUB, STREAM]

Requesting: [E:GEVUZ7WGP] Blue Exorcist -Shimane Illuminati Saga- (English Dub) - 9 - Help Me
Chapter request successful
Selecting raw stream
Full stream found! (✓1: adaptive_chrome_dash_drm/eng/- )
Downloading video...
Playlists URL: https://cr-play-service.prd.crunchyrollsvc.com/v1/manifest/GEVUZ7WGP/evs3/b369b4ddf71b40fc98b97d7cdabc95f1/assets/p/2b74255b8cc31b8e25a6e095b788d7bd_,5535061.mp4,5535062.mp4,5535060.mp4,5535058.mp4,5535059.mp4,4496.txt,.urlset/manifest.mpd?playbackGuid=0e-426c151d-bb75-43be-851f-3ce8ac98c37b&accountid=25e2f192-51d8-558e-a8f3-64d310785a25 (adaptive_chrome_dash_drm/eng/-)
Servers available:
	fy.v.vrv.co
Available Video Qualities:
	[1] 428x240 (487KiB/s)
	[2] 640x360 (973KiB/s)
	[3] 848x480 (1946KiB/s)
	[4] 1280x720 (3903KiB/s)
	[5] 1920x1080 (7798KiB/s)
Available Audio Qualities:
	[1] 64kB/s
	[2] 96kB/s
	[3] 128kB/s
Selected quality: 
	Video: 1920x1080 (7798KiB/s)
	Audio: 128kB/s
	Server: fy.v.vrv.co
Stream URL: https://fy.v.vrv.co/evs3/b369b4ddf71b40fc98b97d7cdabc95f1/assets/p/2b74255b8cc31b8e25a6e095b788d7bd_,5535061.mp4,5535062.mp4,5535060.mp4,5535058.mp4,5535059.mp4,4496.txt
Total parts in video stream: 355 (36*10)
Saving stream to «/home/blastbolt5/anime/temp-GEVUZ7WGP.video.enc.m4s»...
Download and save init part...
Init part downloaded.
10 of 355 parts downloaded [3%] (28s | 41Mb/s)
20 of 355 parts downloaded [6%] (23s | 57Mb/s)
30 of 355 parts downloaded [8%] (24s | 57Mb/s)
40 of 355 parts downloaded [11%] (23s | 60Mb/s)
50 of 355 parts downloaded [14%] (21s | 62Mb/s)
60 of 355 parts downloaded [17%] (21s | 61Mb/s)
70 of 355 parts downloaded [20%] (20s | 61Mb/s)
80 of 355 parts downloaded [23%] (19s | 64Mb/s)
90 of 355 parts downloaded [25%] (18s | 63Mb/s)
100 of 355 parts downloaded [28%] (17s | 65Mb/s)
110 of 355 parts downloaded [31%] (17s | 64Mb/s)
120 of 355 parts downloaded [34%] (16s | 64Mb/s)
130 of 355 parts downloaded [37%] (15s | 65Mb/s)
140 of 355 parts downloaded [39%] (14s | 65Mb/s)
150 of 355 parts downloaded [42%] (13s | 65Mb/s)
160 of 355 parts downloaded [45%] (12s | 66Mb/s)
170 of 355 parts downloaded [48%] (12s | 64Mb/s)
180 of 355 parts downloaded [51%] (11s | 63Mb/s)
190 of 355 parts downloaded [54%] (11s | 62Mb/s)
200 of 355 parts downloaded [56%] (10s | 63Mb/s)
210 of 355 parts downloaded [59%] (9s | 63Mb/s)
220 of 355 parts downloaded [62%] (9s | 64Mb/s)
230 of 355 parts downloaded [65%] (8s | 64Mb/s)
240 of 355 parts downloaded [68%] (7s | 64Mb/s)
250 of 355 parts downloaded [70%] (7s | 64Mb/s)
260 of 355 parts downloaded [73%] (6s | 64Mb/s)
270 of 355 parts downloaded [76%] (5s | 64Mb/s)
280 of 355 parts downloaded [79%] (5s | 65Mb/s)
290 of 355 parts downloaded [82%] (4s | 64Mb/s)
300 of 355 parts downloaded [85%] (3s | 65Mb/s)
310 of 355 parts downloaded [87%] (3s | 65Mb/s)
320 of 355 parts downloaded [90%] (2s | 65Mb/s)
330 of 355 parts downloaded [93%] (1s | 66Mb/s)
340 of 355 parts downloaded [96%] (1s | 66Mb/s)
350 of 355 parts downloaded [99%] (0s | 66Mb/s)
355 of 355 parts downloaded [100%] (0s | 65Mb/s)
Total parts in audio stream: 355 (36*10)
Saving stream to «/home/blastbolt5/anime/temp-GEVUZ7WGP.audio.enc.m4s»...
Download and save init part...
Init part downloaded.
10 of 355 parts downloaded [3%] (2s | 11Mb/s)
20 of 355 parts downloaded [6%] (5s | 4.7Mb/s)
30 of 355 parts downloaded [8%] (4s | 6.0Mb/s)
40 of 355 parts downloaded [11%] (4s | 6.0Mb/s)
50 of 355 parts downloaded [14%] (3s | 6.6Mb/s)
60 of 355 parts downloaded [17%] (3s | 7.3Mb/s)
70 of 355 parts downloaded [20%] (3s | 7.1Mb/s)
80 of 355 parts downloaded [23%] (2s | 7.5Mb/s)
90 of 355 parts downloaded [25%] (3s | 6.9Mb/s)
100 of 355 parts downloaded [28%] (2s | 7.3Mb/s)
110 of 355 parts downloaded [31%] (2s | 7.7Mb/s)
120 of 355 parts downloaded [34%] (2s | 8.1Mb/s)
130 of 355 parts downloaded [37%] (2s | 8.5Mb/s)
140 of 355 parts downloaded [39%] (2s | 8.8Mb/s)
150 of 355 parts downloaded [42%] (2s | 9.1Mb/s)
160 of 355 parts downloaded [45%] (1s | 9.4Mb/s)
170 of 355 parts downloaded [48%] (1s | 9.7Mb/s)
180 of 355 parts downloaded [51%] (1s | 9.4Mb/s)
190 of 355 parts downloaded [54%] (1s | 9.6Mb/s)
200 of 355 parts downloaded [56%] (1s | 9.3Mb/s)
210 of 355 parts downloaded [59%] (1s | 9.5Mb/s)
220 of 355 parts downloaded [62%] (1s | 9.6Mb/s)
230 of 355 parts downloaded [65%] (1s | 9.7Mb/s)
240 of 355 parts downloaded [68%] (1s | 9.9Mb/s)
250 of 355 parts downloaded [70%] (1s | 10Mb/s)
260 of 355 parts downloaded [73%] (1s | 10Mb/s)
270 of 355 parts downloaded [76%] (1s | 10Mb/s)
280 of 355 parts downloaded [79%] (0s | 10Mb/s)
290 of 355 parts downloaded [82%] (0s | 11Mb/s)
300 of 355 parts downloaded [85%] (0s | 11Mb/s)
310 of 355 parts downloaded [87%] (0s | 11Mb/s)
320 of 355 parts downloaded [90%] (0s | 11Mb/s)
330 of 355 parts downloaded [93%] (0s | 11Mb/s)
340 of 355 parts downloaded [96%] (0s | 11Mb/s)
350 of 355 parts downloaded [99%] (0s | 11Mb/s)
355 of 355 parts downloaded [100%] (0s | 11Mb/s)
Decryption Needed, attempting to decrypt
Started decrypting video

> "mp4decrypt" --show-progress --key <removed> "/home/blastbolt5/anime/temp-GEVUZ7WGP.video.enc.m4s" "/home/blastbolt5/anime/temp-GEVUZ7WGP.video.m4s"
Decryption done for video
node:fs:1032
  binding.rename(
          ^

Error: EXDEV: cross-device link not permitted, rename '/home/blastbolt5/anime/temp-GEVUZ7WGP.video.m4s' -> '/home/blastbolt5/anime/anime/en-US/Blue Exorcist/Season 03/Blue Exorcist - S03E09 - Help Me.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: -18,
  code: 'EXDEV',
  syscall: 'rename',
  path: '/home/blastbolt5/anime/temp-GEVUZ7WGP.video.m4s',
  dest: '/home/blastbolt5/anime/anime/en-US/Blue Exorcist/Season 03/Blue Exorcist - S03E09 - Help Me.English.video.m4s'
}

Node.js v20.11.1

Additional Information

Seems to be an issue that the software renames the file instead of moving it which isn't allowed when moving across partitions

This used to work so something must have changed at some point, so something must have changed in the past month or so since I last updated

@BlastBolt5 BlastBolt5 added the bug Something isn't working label Jul 9, 2024
@Jaynator495
Copy link

Ah, yea DRM saves to a temp name and then moves it, as it turns out though apparently nodes way of moving things is more akin to a rename than a move, so it doesn't work across filesystems... I'll see if I can implement a function to copy the file, then delete the temp file after the copy, rather than a direct move. (ideally only if it's on a different filesystem, but that may be hard to check)

@BlastBolt5
Copy link
Author

Yeah leaving it in a temp directory, moving and then deleting it is my temp fix for now (cause I have it mostly automated)
Weird that it used to work fine tho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants