[BUG] [ERROR] Key for part NaN download error/[ERROR] Track not selected #19

Closed
opened 2020-07-16 01:00:57 +00:00 by Ryahn · 7 comments
Ryahn commented 2020-07-16 01:00:57 +00:00 (Migrated from github.com)

** Main info: **

Script version: 4.6.0
Show ID: 36842
Episode ID: 1

** Additional Info: **

[ERROR] Key for part NaN download error:
        Cannot read property 'p' of undefined
[ERROR] Key for part NaN download error:
        Cannot read property 'p' of undefined
[ERROR] 2 parts not downloaded
[ERROR] DL Stats: {"first":0,"total":180,"completed":10}

Using node funi.js -s 36842 -e 1 -q 0 --mks

I also get [ERROR] Track not selected when using on another anime node funi.js -s 1108396 -e 2

<!-- Please fill in the placeholders.--> ** Main info: ** Script version: 4.6.0 Show ID: 36842 Episode ID: 1 ** Additional Info: ** ``` [ERROR] Key for part NaN download error: Cannot read property 'p' of undefined [ERROR] Key for part NaN download error: Cannot read property 'p' of undefined [ERROR] 2 parts not downloaded [ERROR] DL Stats: {"first":0,"total":180,"completed":10} ``` Using `node funi.js -s 36842 -e 1 -q 0 --mks` I also get `[ERROR] Track not selected` when using on another anime `node funi.js -s 1108396 -e 2`
ghost commented 2020-07-16 13:55:09 +00:00 (Migrated from github.com)

I have the same issue...

I have the same issue...
WtchBrw commented 2020-07-22 02:42:04 +00:00 (Migrated from github.com)

COMMAND:
node funi -s 54210 -e 1-11

OUTPUT:
[ERROR] Key for part NaN download error:
Cannot read property 'p' of undefined
[ERROR] Key for part NaN download error:
Cannot read property 'p' of undefined
[ERROR] 2 parts not downloaded
[ERROR] DL Stats: {"first":0,"total":170,"completed":10}

I get the same error too with the command and output above.

COMMAND: node funi -s 54210 -e 1-11 OUTPUT: [ERROR] Key for part NaN download error: Cannot read property 'p' of undefined [ERROR] Key for part NaN download error: Cannot read property 'p' of undefined [ERROR] 2 parts not downloaded [ERROR] DL Stats: {"first":0,"total":170,"completed":10} I get the same error too with the command and output above.
ghost commented 2020-07-24 12:17:16 +00:00 (Migrated from github.com)

same

same
XxUnkn0wnxX commented 2020-07-26 18:50:17 +00:00 (Migrated from github.com)

same issue here @anidl

[ERROR] Key for part NaN download error:
	Cannot read property 'p' of undefined
[ERROR] Key for part NaN download error:
	Cannot read property 'p' of undefined
[ERROR] 2 parts not downloaded
[ERROR] DL Stats: {"first":0,"total":172,"completed":10}

it seems it cannot continue, it downloads the 1st 10 parts then fails, then if you retry it resumes and DL's the next 10 parts then fails..

my best guess would be the script is unable to keep track of the next set of parts it needs to download.

the work around is to use the m3u8 url it gives you & use it in a command like this:

youtube-dl --no-check-certificate --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" --audio-quality 0 --audio-format aac -f best "URL.m3u8"

OR

ffmpeg -protocol_whitelist "file,http,https,tcp,tls,crypto,hls,applehttp" -i "URL.m3u8" -c copy -bsf:a aac_adtstoasc output.mkv

till this gets fixed..
not sure why the downloader cannot have a function to use ffmpeg or youtube-dl to fetch the video/audio files instead as they never have issues.

have funimation-downloader-nx for auth to fetch & pass the necessary URL's into ffmpeg/youtube-dl & then DL subs & remux at the end.

same issue here @anidl ``` [ERROR] Key for part NaN download error: Cannot read property 'p' of undefined [ERROR] Key for part NaN download error: Cannot read property 'p' of undefined [ERROR] 2 parts not downloaded [ERROR] DL Stats: {"first":0,"total":172,"completed":10} ``` it seems it cannot continue, it downloads the 1st 10 parts then fails, then if you retry it resumes and DL's the next 10 parts then fails.. my best guess would be the script is unable to keep track of the next set of parts it needs to download. the work around is to use the m3u8 url it gives you & use it in a command like this: ``` youtube-dl --no-check-certificate --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" --audio-quality 0 --audio-format aac -f best "URL.m3u8" ``` OR ``` ffmpeg -protocol_whitelist "file,http,https,tcp,tls,crypto,hls,applehttp" -i "URL.m3u8" -c copy -bsf:a aac_adtstoasc output.mkv ``` till this gets fixed.. not sure why the downloader cannot have a function to use ffmpeg or youtube-dl to fetch the video/audio files instead as they never have issues. have funimation-downloader-nx for auth to fetch & pass the necessary URL's into ffmpeg/youtube-dl & then DL subs & remux at the end.
XxUnkn0wnxX commented 2020-08-04 08:19:47 +00:00 (Migrated from github.com)

ok it seems the issue is with the server it selects funiprod.akamaized.net but doing EG node funi -s 825013 -e 35 -x 2 (Fruits Basket S2E10 Dub) no issues
-x is the server selection
Screen Shot 2020-08-04 at 6 18 32 pm
just do -x 2 or -x 3
while by default it does -x 1 which is the funiprod.akamaized.net server.
or in cli-defaults.yml config set nServer: 1 to nServer: 2 if your lazy to manually input the server command every time.

ok it seems the issue is with the server it selects `funiprod.akamaized.net` but doing EG `node funi -s 825013 -e 35 -x 2` (Fruits Basket S2E10 Dub) no issues `-x` is the server selection ![Screen Shot 2020-08-04 at 6 18 32 pm](https://user-images.githubusercontent.com/2242880/89270642-fa319c00-d67e-11ea-83c4-3741e6890614.jpg) just do `-x 2` or `-x 3` while by default it does `-x 1` which is the `funiprod.akamaized.net` server. or in `cli-defaults.yml` config set `nServer: 1` to `nServer: 2` if your lazy to manually input the server command every time.
shinji257 commented 2020-08-25 18:43:02 +00:00 (Migrated from github.com)

One way to handle this (if it is possible) is have it retry using the next server on the list rather than hard aborting and moving to the next episode (if any).

EDIT: That might not work. It does seem to grab 10 segments then die. It can resume and get 10 more then die again. ffmpeg as no issue with the m3u8 files at all. What I'm doing at this point is using the script to grab m3u8 urls, then using ffmpeg to grab the .ts files and name them as the script expects, then finally running the script again with the same options so that it can merge and process the output accordingly. The script did find the .ts that ffmpeg just fine and used it to create a mkv.

Not sure what the -bsf:a aac_adtstoasc is for since it just ended up with warnings nor what would happen if the related type of audio was left unprocessed.

Just a note... the second run is so it can grab subs to embed on subtitled episodes.

One way to handle this (if it is possible) is have it retry using the next server on the list rather than hard aborting and moving to the next episode (if any). EDIT: That might not work. It does seem to grab 10 segments then die. It can resume and get 10 more then die again. ffmpeg as no issue with the m3u8 files at all. What I'm doing at this point is using the script to grab m3u8 urls, then using ffmpeg to grab the .ts files and name them as the script expects, then finally running the script again with the same options so that it can merge and process the output accordingly. The script did find the .ts that ffmpeg just fine and used it to create a mkv. Not sure what the `-bsf:a aac_adtstoasc` is for since it just ended up with warnings nor what would happen if the related type of audio was left unprocessed. Just a note... the second run is so it can grab subs to embed on subtitled episodes.
nijave commented 2020-09-09 19:53:34 +00:00 (Migrated from github.com)

Opened https://github.com/seiya-npm/hls-download/issues/9 since it looks like there's a problem with that module's ability to find the next batch of parts to download

Opened https://github.com/seiya-npm/hls-download/issues/9 since it looks like there's a problem with that module's ability to find the next batch of parts to download
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Creepso/multi-downloader-nx#19
No description provided.