mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.7k stars 953 forks source link

[Seiga] TypeError - unsupported operand type(s) for +: 'NoneType' and 'str'. #4242

Closed AyHa1810 closed 1 year ago

AyHa1810 commented 1 year ago

It worked just fine till a day ago or two. Not sure what happened (maybe a site change?)

Here's debug log [NSFW link warning]:

~ $ gallery-dl 'https://seiga.nicovideo.jp/seiga/im10877923' --verbose
[gallery-dl][debug] Version 1.25.6
[gallery-dl][debug] Python 3.11.4 - Linux-4.14.180-perf+-aarch64-with-libc
[gallery-dl][debug] requests 2.31.0 - urllib3 1.26.16
[gallery-dl][debug] Configuration Files ['${HOME}/.config/gallery-dl/config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://seiga.nicovideo.jp/seiga/im10877923'
[seiga][debug] Loading cookies from '~/.config/gallery-dl/cookies/sp.seiga.nicovideo.jp_cookies.txt'
[seiga][debug] Using SeigaImageExtractor for 'https://seiga.nicovideo.jp/seiga/im10877923'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): seiga.nicovideo.jp:443
[urllib3.connectionpool][debug] https://seiga.nicovideo.jp:443 "GET /seiga/im10877923 HTTP/1.1" 200 4110
[seiga][error] An unexpected error occurred: TypeError - unsupported operand type(s) for +: 'NoneType' and 'str'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[seiga][debug]
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/gallery_dl/job.py", line 96, in run
    for msg in extractor:
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/gallery_dl/extractor/seiga.py", line 30, in items
    images = iter(self.get_images())
                  ^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/gallery_dl/extractor/seiga.py", line 202, in get_images
    data["date"] + ":00+0900", "%Y年%m月%d日 %H:%M:%S%z")
    ~~~~~~~~~~~~~^~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
mikf commented 1 year ago

This post was apparently a bit too NSFW and by default prompts for confirmation to see.

ここから先は、アダルト要素を含むコンテンツがあります
よろしいでしょうか?

はい      いいえ

今後このメッセージを表示しない 

This can be disabled by having the skip_fetish_warning cookie set, which now happens automatically (https://github.com/mikf/gallery-dl/commit/d5b6802774604a571a678c1930ce71e11e9dcb5c)