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

Seiga is only returning HTML files #3401

Closed
a84r7a3rga76fg opened this issue Dec 13, 2022 · 9 comments
Closed

Seiga is only returning HTML files #3401

a84r7a3rga76fg opened this issue Dec 13, 2022 · 9 comments

Comments

@a84r7a3rga76fg
Copy link

a84r7a3rga76fg commented Dec 13, 2022

gallery-dl --clear-cache seiga returned [cache][info] Deleted 0 entries from 'C:\Users\User1\AppData\Roaming\gallery-dl\cache.sqlite3'

Conf

        "seiga":
        {
		"archive":"~/gallery-dl/archives/seiga-archive.sqlite3",
		"base-directory": "C:/rips gallery-dl/2ongoing/Seiga",
        "directory": ["{user[id]} seiga"],
        "filename": "{image_id}.{extension}",
		"cookies": "~/gallery-dl/cookies/cookies.txt",
		"username": "REDACTED",
		"password": "REDACTED"
		},
@afterdelight
Copy link

post verbose log

@kattjevfel
Copy link
Contributor

Works fine here, I must agree with afterdelight, please provide a verbose log and an example URL.

katt@main ~ » gallery-dl --ignore-config --verbose https://seiga.nicovideo.jp/seiga/im6124732 -o extractor.seiga.cookies="~/Desktop/cookies-nicovideo-jp.txt"
[gallery-dl][debug] Version 1.24.2-dev
[gallery-dl][debug] Python 3.10.8 - Linux-6.1.0-zen1-1-zen-x86_64-with-glibc2.36
[gallery-dl][debug] requests 2.28.1 - urllib3 1.26.12
[gallery-dl][debug] Configuration Files []
[gallery-dl][debug] Starting DownloadJob for 'https://seiga.nicovideo.jp/seiga/im6124732'
[seiga][debug] Using SeigaImageExtractor for 'https://seiga.nicovideo.jp/seiga/im6124732'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): seiga.nicovideo.jp:443
[urllib3.connectionpool][debug] https://seiga.nicovideo.jp:443 "GET /seiga/im6124732 HTTP/1.1" 200 14454
[urllib3.connectionpool][debug] https://seiga.nicovideo.jp:443 "HEAD /image/source/6124732 HTTP/1.1" 302 0
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): lohas.nicoseiga.jp:443
[urllib3.connectionpool][debug] https://lohas.nicoseiga.jp:443 "GET /priv/52a82bbbee7477b66d1324050395b58777481a0b/1670924505/6124732 HTTP/1.1" 200 423213
./gallery-dl/seiga/seiga_6124732.png

@mikf
Copy link
Owner

mikf commented Dec 13, 2022

Get new cookies for ~/gallery-dl/cookies/cookies.txt.

gallery-dl --clear-cache seiga

  "username": "REDACTED",
  "password": "REDACTED"

seiga no longer supports login with username & password (fc277fa), so none of this has any effect.

@a84r7a3rga76fg
Copy link
Author

a84r7a3rga76fg commented Dec 13, 2022

@mikf gallery-dl --clear-cache seiga doesn't work on my end. I removed the username and password and the error is still the same.

[urllib3.connectionpool][debug] Starting new HTTPS connection (1): account.nicovideo.jp:443
[urllib3.connectionpool][debug] https://account.nicovideo.jp:443 "GET /login?site=seiga&next_url=%2Fimage%2Fsource%2FREDACTED HTTP/1.1" 200 13843
* REDACTED seiga\REDACTED.html

@mikf
Copy link
Owner

mikf commented Dec 15, 2022

So you've managed to ignore or misread all previous posts, and you are using an outdated gallery-dl version from before March 2022. Nice.

  1. update gallery-dl
  2. remove username and password from your config
  3. update cookies in ~/gallery-dl/cookies/cookies.txt (if necessary)

(Any reference to https://account.nicovideo.jp/ was removed in commit fc277fa, in case anyone is wondering how I know his gdl is outdated)

@a84r7a3rga76fg
Copy link
Author

It's not an outdated version, the latest version was uploaded a month ago and I downloaded it weeks ago. https://github.com/mikf/gallery-dl/releases/tag/v1.24.1

[gallery-dl][debug] Version 1.24.1 - Executable
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.19045
[gallery-dl][debug] requests 2.28.1 - urllib3 1.26.12
[gallery-dl][debug] Configuration Files ['C:\\Users\\User1\\gallery-dl\\gallery-dl.conf']
usage: gallery-dl.exe [OPTION]... URL...
gallery-dl.exe: error: The following arguments are required: URL
Use 'gallery-dl --help' to get a list of all options.

@mikf
Copy link
Owner

mikf commented Dec 17, 2022

I apologize for making a wrong assumption based on your incomplete log.
The solution to your problem still hasn't changed, though:

Get new cookies for ~/gallery-dl/cookies/cookies.txt.

update cookies in ~/gallery-dl/cookies/cookies.txt


With commit 7851a2c, gallery-dl will now detect such cases and properly raise an error instead of downloading HTML files.

@a84r7a3rga76fg
Copy link
Author

I've changed it to "cookies": "~/gallery-dl/cookies/cookies_seiga.txt" and it says [seiga][error] 'user_session' cookie required, how do I get the cookie for Seiga?

@mikf
Copy link
Owner

mikf commented Dec 17, 2022

By logging into nicovideo.jp, the parent site of seiga.nicovideo.jp.
Go to https://account.nicovideo.jp/login?site=seiga, login, and export cookies for .nicovideo.jp.

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

No branches or pull requests

4 participants