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

Ugoira not downloading from Fanbox #799

Closed
ghost opened this issue Sep 24, 2020 · 19 comments
Closed

Ugoira not downloading from Fanbox #799

ghost opened this issue Sep 24, 2020 · 19 comments
Labels
More Info Req Need more information

Comments

@ghost
Copy link

ghost commented Sep 24, 2020

Prerequisites

  • [ X] Did you read FAQ section?
  • [ X] Did you test with the latest releases or commit ?

Description

My intent is to download Ugoira type posts from fanbox.cc. I am able to download images with no issue. However, Ugoira type posts are only being downloaded as a JPEG. No errors are posted in the command window.

Steps to Reproduce

  1. [First Step]
    Set Config Settings as follows:
    [FFmpeg]
    ffmpeg = ffmpeg
    ffmpegcodec = libvpx-vp9
    ffmpegext = webm
    ffmpegparam = -lossless 1 -vsync 2 -r 999 -pix_fmt yuv420p
    webpcodec = libwebp
    webpparam = -lossless 0 -q:v 90 -loop 0 -vsync 2 -r 999

[Ugoira]
writeugoirainfo = True
createugoira = True
deletezipfile = False
creategif = True
createapng = False
deleteugoira = False
createwebm = True
createwebp = False

  1. [Second Step]

Select F1 to download from fanbox

  1. [Third Step]
    Images begin downloading

Expected behavior:

Ugoira type posts to be downloaded and converted.

Actual behavior:

No WebM, ZIP, or GIF files are created.

Versions

v20200915

You can get this information from executing PixivUtil2.py --help.
Latest version available in https://github.com/Nandaka/PixivUtil2/releases

@ghost
Copy link
Author

ghost commented Sep 24, 2020

Upon further inspection, the .png file downloaded can be converted using ffmpeg manually.

@bluerthanever
Copy link
Contributor

there are ugoira type posts now?

@bluerthanever
Copy link
Contributor

if possible could you please provide the json for the post?

@bluerthanever
Copy link
Contributor

@bluerthanever reference from non-fanbox
https://github.com/Nandaka/PixivUtil2/blob/master/PixivImageHandler.py#L293
https://github.com/Nandaka/PixivUtil2/blob/master/PixivImageHandler.py#L297

Thanks. That saves a lot of work.... for I have never used this feature before.

@bluerthanever
Copy link
Contributor

Hmm. since no json file is provided, I did some research.
There are only 5 types of posts so far: article, image, file, text, video.
Not so sure what kind of situation you ran into, but if the situation is that the creator posts ugoira-like posts with "file" post type, unless the files have distinctive filename formats like extensions or anything, I don't really think it should be written into the codes to check all similar files, so to slow down the process.
But please offer more information so we can have a clue.

@ghost
Copy link
Author

ghost commented Sep 28, 2020

"title":
"type":"image",
"body":
{"text":

Is this the correct one?

I didn't find the usual .zip file or json containing the images as is the case on Pixiv

@Nandaka
Copy link
Owner

Nandaka commented Sep 29, 2020

can you follow this step:

  1. delete the old pixivutil.log in the pixivutil folder.
  2. redownload the fanbox post with ugoira
  3. upload the pixivutil.log here.

the full response json should be here, maybe there is additional info for the ugoira animation file there.

@Nandaka Nandaka added the More Info Req Need more information label Oct 7, 2020
@Butterfly-Dragon
Copy link

i am getting a very similar error

Checking local filename... Getting remote filesize...
Remote filesize = 5.98 MiB (6275656 Bytes)
        File exist! (Identical Size) ==> D:\Downloads\Downloader\Manga\Files\キワメ(╯⊙ ⊱ ⊙╰ ) (3270754) - 84876333_ugoira1920x1080 - ニッ!.ugoira.
processing ugoira to animated gif...
Traceback (most recent call last):
  File "PixivDownloadHandler.pyc", line 97, in download_image
  File "PixivDownloadHandler.pyc", line 324, in handle_ugoira
  File "PixivHelper.pyc", line 821, in ugoira2gif
  File "PixivHelper.pyc", line 887, in ugoira2webm
  File "subprocess.pyc", line 854, in __init__
  File "subprocess.pyc", line 1307, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error at download_image(): (<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None), <traceback object at 0x044D21E8>) at https://i.pximg.net/img-zip-ugoira/img/2020/10/08/11/31/36/84876333_ugoira1920x1080.zip (9001)
Retrying [7]... 1 2

@bluerthanever
Copy link
Contributor

@Butterfly-Dragon your
Do you run into this error when processing fanbox posts? If so could you provide your log?

@Butterfly-Dragon
Copy link

That comes up from every ugoira, no matter the source.

pixivutil.log

i deleted the log and restarted the last operation i did.

@Nandaka
Copy link
Owner

Nandaka commented Oct 8, 2020

@Butterfly-Dragon you have ffmpeg.exe in the application folder? it failed when it try to call ffmpeg.exe

https://github.com/Nandaka/PixivUtil2/blob/v20201006/PixivHelper.py#L887

@bluerthanever this not related to fanbox.

@Butterfly-Dragon
Copy link

Uh... no but the config file points at it no problem. Always worked before this very last version.

[FFmpeg]
ffmpeg = D:\Downloads\Downloader\!Downloader\ffmpeg.exe
ffmpegcodec = libvpx-vp9
ffmpegext = webm
ffmpegparam = -lossless 1 -vsync 2 -r 999 -pix_fmt yuv420p
webpcodec = libwebp
webpparam = -lossless 0 -q:v 90 -loop 0 -vsync 2 -r 999

PixivUtil2's folder is D:\Downloads\Downloader\!Downloader\PixivUtil2

@Nandaka
Copy link
Owner

Nandaka commented Oct 8, 2020

hmm, you are converting to animated gif. maybe the path is too long.

ffmpeg = D:\Downloads\Downloader!Downloader\ffmpeg.exe

can you shorten it? maybe just put it in D:\ffmpeg.exe

@Nandaka
Copy link
Owner

Nandaka commented Oct 8, 2020

fyi, I'm using ffmpeg = ffmpeg as I place ffmpeg.exe in the same folder directly with the script and run it there from cmd and it works fine.

@Butterfly-Dragon
Copy link

just tried this morning.... did not work 😓

@Nandaka
Copy link
Owner

Nandaka commented Oct 9, 2020

try the beta version and upload the new logging. It should log the command passed to the console to run the ffmpeg.

[WinError 2] The system cannot find the file specified

The error message stated it cannot find the file (can be either ffmpeg or the temp file, also might be permission issue), also maybe you can try to enable these config just to check if the ffmpeg can be executed succesfully.

creategif = False
createapng = True
createwebm = True
createwebp = True

@Butterfly-Dragon
Copy link

Butterfly-Dragon commented Oct 9, 2020 via email

@Butterfly-Dragon
Copy link

Butterfly-Dragon commented Oct 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
More Info Req Need more information
Projects
None yet
Development

No branches or pull requests

3 participants