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

Batoto don't work and large folder names not found #4

Closed
ZeroDrako opened this issue Sep 23, 2016 · 4 comments
Closed

Batoto don't work and large folder names not found #4

ZeroDrako opened this issue Sep 23, 2016 · 4 comments
Labels

Comments

@ZeroDrako
Copy link

ZeroDrako commented Sep 23, 2016

Batoto seem to not work fine, i get an error related to url (error 405).
Also if the manga name cotain some weird characters or is too large, the script fail to get the folder.

Alt text

Edit: same error on v0.5.2

@mikf
Copy link
Owner

mikf commented Sep 23, 2016

Your first issue occurs if you try to download a manga chapter that is only visible to logged-in users, for example https://bato.to/reader#6fec7433722aff52.
With the current version (0.5.2) gallery-dl is able to login to bato.to and download these chapters as well if you put your username/password into your config file or provide them via the -u/-p command line options.

Your second issue seems to come from pathname restrictions in windows: no special characters and max length of 260. gallery-dl should already be replacing all illegal characters with underscores. Please provide a link to the "offending" chapter so that I can see the problem for myself.

@mikf mikf added the bug label Sep 23, 2016
@mikf
Copy link
Owner

mikf commented Sep 23, 2016

step-by-step instructions to get gallery-dl to log in to bato.to If you don't already have a configuration file and are using windows:

  • go to C:\Users\<your windows username>\
  • create a new file called .gallery-dl.conf
  • open this file with a text editor (notepad.exe) and input the following
{
    "extractor":
    {
        "batoto":
        {
            "username": "<your username>",
            "password": "<your password>"
        }
    }
}

@ZeroDrako
Copy link
Author

Thanks, it seem i put the config file in wron directory.

The link to manga in 2 case is:
http://kissmanga.com/Manga/Uchi-no-Musume-no-Tame-Naraba-Ore-wa-Moshikashitara-Mao-mo-Taoseru-Kamo-Shirenai-/Ch-001--Youth--Meeting-With-the-Young-Girl?id=309932

Also it seem that i get another problem, maybe related to 2 case. In some mangas the script fails to get the directory, see pic
alt tag
The script is searching for directory \gallery-dl\batoto\My Love Tiger\c044 - \ but windows remove all spaces at the the end of folder names, the real directory is \gallery-dl\batoto\My Love Tiger\c044 -\.

@mikf
Copy link
Owner

mikf commented Sep 24, 2016

There seem to be quite a lot of issues with windows (and otherwise), so thank you for reporting this.
As a temporary solution you could set the directory_fmt and filename_fmt values for batoto and kissmanga to something else, for example

"directory_fmt": ["{category}", "{manga}", "c{chapter:>03}"],
"filename_fmt": "c{chapter:>03}_{page:>03}.png"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants