JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 15.08.2024, 21:15
gibraltar gibraltar is offline
DSL User
 
Join Date: Aug 2016
Posts: 39
Default Civitai.com - Add account support

Hello,

some assets require the user to be logged in to download. Following the link JDownloader tries to download this is not possible without being authenticated.


Link to an example:

Asset page: **External links are only visible to Support Staff****External links are only visible to Support Staff**

Download link in JDownloader: **External links are only visible to Support Staff****External links are only visible to Support Staff**


Would it be possible to create authentication with account support or an API key integration since Civitai.com offers that?
Reply With Quote
  #2  
Old 15.08.2024, 22:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,991
Default

__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 16.08.2024, 10:21
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,911
Default

Implemented.
You will need to delete- and re-add links looking like "api/download/models/" after the update to be able to download them via account!

Civitai.com doesn't provide any method to check if the entered API Key is valid so for now, JDownloader will just accept all keys that match pattern [a-f0-9]{32}.

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 16.08.2024 at 10:22. Reason: Improved formatting
Reply With Quote
  #4  
Old 16.08.2024, 12:33
gibraltar gibraltar is offline
DSL User
 
Join Date: Aug 2016
Posts: 39
Default

Thanks for the quick implementation! Works correct on those edge cases, tested and verified it with the current list and my own API key.
Reply With Quote
  #5  
Old 16.08.2024, 13:56
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,911
Default

Thanks for your feedback!
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #6  
Old 18.08.2024, 00:13
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

I entered the API-key, but of all the jobs from here - **External links are only visible to Support Staff****External links are only visible to Support Staff** it finds only 150
Reply With Quote
  #7  
Old 18.08.2024, 00:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,991
Default

@VanTuz: Please provide a debug log, see https://support.jdownloader.org/de/k...d-session-logs
Enable Debug Mode, restart JDownloader and reproduce the issue, create log and post logID here
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 18.08.2024, 00:33
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

18.08.24 01.33.27 <--> 18.08.24 01.34.08 jdlog://9294411370661/
Reply With Quote
  #9  
Old 19.08.2024, 10:49
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,911
Default

According to your log, you just ran into maintenance mode of civitai.com:
Code:
            <h1>We're adjusting a few things, be back in a few minutes...</h1>
        </div>
        <div class="image">
            <img id="image" src="/assets/imrs.webp" alt="This is fine">
For me it's working fine here and I got all 2277 items.

...though the http status code 503 is sometimes also used for rate limiting or to say "you are doing too many requests in a short time" so if that would be the case, we'd need to adjust the plugin.

Can you reproduce this problem?
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #10  
Old 19.08.2024, 16:31
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

It looks like I really came across some restrictions on the part of the site, because later I was able to download all the images.
Reply With Quote
  #11  
Old 19.08.2024, 16:42
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,911
Default

Added delay of 1000ms after each pagination page.

In the near future (!not yet! in the next update), I will add plugin settings which will let you control some pagination parameters.

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #12  
Old 09.09.2024, 21:40
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

I'm having the same problem again - the program doesn't find all the author's art - **External links are only visible to Support Staff****External links are only visible to Support Staff**

Last edited by VanTuz; 09.09.2024 at 21:44.
Reply With Quote
  #13  
Old 10.09.2024, 11:03
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,911
Default

Works fine here.
Next time pleasejust provide a log straight away.

Please post your log-ID here
If your report is about a specific website which JD supports via plugin, please also provide example URLs which can be used to reproduce the issue you are having.
If your report is related to a login specific problem with a plugin supported website, enable debug mode before creating logs, see previously linked instructions.

Bitte poste deine Log-ID hier.
Falls dein Problem ein Problem mit einer Webseite ist, die per Plugin unterstützt wird, stelle bitte zusätzlich Testlinks zur Verfügung, mit denen sich dein Problem nachstellen lässt.
Geht es um einen nicht funktionierenden Account-Login, aktiviere vor dem Erstellen deines Logs den debug Modus (siehe zuvor verlinkte Anleitung).

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #14  
Old 10.09.2024, 19:25
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

Oh, yes, logs, I completely forgot about them.
10.09.24 20.21.24 <--> 10.09.24 20.25.59 jdlog://3645411370661/
The site indicates that the author has 2431 art, and the program finds only 2256.
Reply With Quote
  #15  
Old 11.09.2024, 11:25
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,911
Default

According to your logs, this is what happened:
Code:
Crawled page 46 | Found items so far: 2256 | New items on this page: 6 | Max items per page: 50 | Pagination sleep millis: 1000
--ID:99TS:1725988983202-10.09.2024, 20:23:03 -  [jd.plugins.decrypter.CivitaiComCrawler(decryptIt)] -> Stopping because: Failed to find nextPage
--> That means that the API simply didn't return more elements.
As said, serverside problems may happen.
Feel free to check this yourself.

You can also look into your own logs and just search for the text "Crawled page " to see each page JDownloader has processed along with the API results.
You can see that all pages contained 50 items except for the lat one so if you ask me, this legit looks like those are all elements.
Maybe some elements were deleted in the meantime and the counter of total items hasn't been updated serverside yet.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:11.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.