AlphaSlayer1964 / kemono-dl

A simple kemono.party downloader using python.
509 stars 82 forks source link

Files not retrieved when it's attached in Content but not Files section #118

Closed 0o0miku0o0 closed 2 years ago

0o0miku0o0 commented 2 years ago

Version

2022.04.27

Your Command

python kemono-dl.py --cookies "cookie.txt" --links https://kemono.party/fanbox/user/93583/post/1252706 --verbose

Description of bug

Files not retrieved when it's attached in Content but not Files section

How To Reproduce

Just run the command and no file is downloaded, folder is also not created.

Check post with this issue: https://kemono.party/fanbox/user/93583/post/1252706 The post contain several images but are not downloaded. Press F12 to check HTML, images are in 'div class="post__content"' with 'img'

2

Then compare with another post that works fine: https://kemono.party/fanbox/user/93583/post/3915707 Press F12 to check HTML, images are in 'div class="postfiles"' with 'div class="postthumbnail"'

1

In addition, the images in first post 1252706 has extra long file name, for example: ff6d54522d0eb01c8d918442b11a0b6e8b7af2118e9f1036ad28f068a9b70084.png

Error messages and tracebacks

screenshot

Additional comments

I assume that the HTML structure difference has caused this issue but not for sure.

AlphaSlayer1964 commented 2 years ago

Those images are inline images in the post content. You must use the --inline flag to download those images.

0o0miku0o0 commented 2 years ago

Thanks a lot for the hint.