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

[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group' #20

Closed
jtara1 opened this issue Jun 19, 2017 · 3 comments
Labels

Comments

@jtara1
Copy link

jtara1 commented Jun 19, 2017

Is the kissmanga downloader working? Did I miss something?

PS C:\Users\James\Downloads> gallery-dl http://kissmanga.com/Manga/Monster
[kissmanga][info] Solving Cloudflare challenge
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'group'

KeyboardInterrupt
PS C:\Users\James\Downloads>

Also, if it is the cloudfare bypasser that's failing, why not use cfscrape module? It was easy for me to use and integrate into one of my projects.

@mikf mikf added the bug label Jun 19, 2017
@mikf
Copy link
Owner

mikf commented Jun 19, 2017

The kissmanga extractor is supposed to be working and it works just fine for some manga series (http://kissmanga.com/Manga/Urban-Tales).
What is failing here is the regular expression used to get volume, chapter and title information.

@mikf mikf closed this as completed in 2633337 Jun 19, 2017
@mikf
Copy link
Owner

mikf commented Jun 19, 2017

Fixed extraction for your example and all the bigger manga series, which had a different volume/chapter formatting than regular ones.
Please let me know if you find any other examples that don't work.

@LoganJM
Copy link

LoganJM commented Dec 12, 2018

Hi @mikf I am coming accross this same error, specifically with Houseki no Kuni from Kissmanga. (https://kissmanga.com/Manga/Houseki-no-Kuni)
Here is the output to my console with the verbose option enabled:

C:\Users\Logan>gallery-dl https://kissmanga.com/Manga/Houseki-no-Kuni --verbose
[gallery-dl][debug] Version 1.6.2-dev
[gallery-dl][debug] Python 3.6.3 - Windows-10-10.0.17134-SP0
[gallery-dl][debug] requests 2.20.0 - urllib3 1.24.1
[gallery-dl][debug] Starting DownloadJob for 'https://kissmanga.com/Manga/Houseki-no-Kuni'
[kissmanga][debug] Using KissmangaMangaExtractor for 'https://kissmanga.com/Manga/Houseki-no-Kuni'
[urllib3.connectionpool][debug] Starting new HTTP connection (1): kissmanga.com:80
[urllib3.connectionpool][debug] http://kissmanga.com:80 "GET /Manga/Houseki-no-Kuni HTTP/1.1" 301 None
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kissmanga.com:443
[urllib3.connectionpool][debug] https://kissmanga.com:443 "GET /Manga/Houseki-no-Kuni HTTP/1.1" 200 None
[kissmanga][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'groups'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[kissmanga][debug]
Traceback (most recent call last):
  File "c:\users\logan\appdata\local\programs\python\python36\lib\site-packages\gallery_dl\job.py", line 51, in run
    for msg in self.extractor:
  File "c:\users\logan\appdata\local\programs\python\python36\lib\site-packages\gallery_dl\extractor\common.py", line 254, in items
    chapters = self.chapters(page)
  File "c:\users\logan\appdata\local\programs\python\python36\lib\site-packages\gallery_dl\extractor\kissmanga.py", line 95, in chapters
    self.parse_chapter_string(data)
  File "c:\users\logan\appdata\local\programs\python\python36\lib\site-packages\gallery_dl\extractor\kissmanga.py", line 58, in parse_chapter_string
    volume, chapter, minor, title = match.groups()
AttributeError: 'NoneType' object has no attribute 'groups'

I am experiencing the same error on the current non-dev version as well

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

3 participants