JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 24.02.2024, 01:39
Anomalous Anomalous is offline
Baby Loader
 
Join Date: Jan 2024
Posts: 5
Default civitai.com download high quality PNGs

When adding links, it seems that JD can see the PNGs, but when I start the downloads they revert to low quality jpgs instead. I would like to grab the PNGs.

**External links are only visible to Support Staff****External links are only visible to Support Staff**

Original is a 1.27mb png, but a 147kb jpg is downloaded instead
Reply With Quote
  #2  
Old 26.02.2024, 16:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Fixed.

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!


Important notice:
Our ticket system & knowledgebase are currently under maintenance.
If this is still the case while you are reading my posts and you can't access help articles linked by our staff, use the Internet archive/wayback machine to be able to view those articles:
archive.org/web/
Enter the URL -> Click on "Browse history" -> Select one of the latest dates available
If the date you selected does not lead you to the support article try the next oldest one.
__________________
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
  #3  
Old 14.03.2024, 04:47
Anomalous Anomalous is offline
Baby Loader
 
Join Date: Jan 2024
Posts: 5
Default

Thanks! It works for public/swf images, but doesn't for images with an 18+ rating
example: **External links are only visible to Support Staff****External links are only visible to Support Staff**

It still grabs the low quality jpgs for some reason
Reply With Quote
  #4  
Old 14.03.2024, 14:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

I'm unable to find any "original" image for this one.
Disclaimer: I'm not logged in - the JDownloader plugin also is not logged-in, maybe that would make a difference in this case?
EDIT

Got it working.

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; 14.03.2024 at 16:49. Reason: EDIT
Reply With Quote
  #5  
Old 14.03.2024, 18:04
Anomalous Anomalous is offline
Baby Loader
 
Join Date: Jan 2024
Posts: 5
Default

Oh, cool. Yeah, I'm able to paste the actual image URL into another browser that's not logged in and I'm still able to download PNGs, so I figured maybe it's possible without an account. Thanks for looking into this!

Edit: Is there some packagizer setting I can use so I can have JD rename the files after the image url/post ID?

Last edited by Anomalous; 14.03.2024 at 18:09.
Reply With Quote
  #6  
Old 14.03.2024, 18:33
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Quote:
Originally Posted by Anomalous View Post
Edit: Is there some packagizer setting I can use so I can have JD rename the files after the image url/post ID?
Sure, see Packagizer docs:
https://support.jdownloader.org/de/k...paketverwalter
__________________
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
  #7  
Old 15.03.2024, 15:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@Anomalous: In case you need help/got questions with packagizer, please just ask
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 15.03.2024, 18:06
Anomalous Anomalous is offline
Baby Loader
 
Join Date: Jan 2024
Posts: 5
Default

Thank you! I was looking for a way to name the downloaded files after the post ID from the url with something like <jd:prop:x>, but I suppose those vary by plugins and if they even exist to begin with. I'm guessing it's also possible with regex but I have no idea how to be honest.
Reply With Quote
  #9  
Old 15.03.2024, 18:14
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

No problem - there is an easy website to learn and test regex: regex101.com.

You can simply extract the ID from the source URL and add it to your desired filename.
__________________
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 15.03.2024, 18:51
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Looks like while I was writing my last post, civitai.com has updated their website which has rendered our plugin broken for now.
__________________
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
  #11  
Old 15.03.2024, 20:24
Anomalous Anomalous is offline
Baby Loader
 
Join Date: Jan 2024
Posts: 5
Default

Got it. Yeah, Looks like some posts work and some don't. And thanks, I'll look into the regex stuff eventually.
Reply With Quote
  #12  
Old 15.03.2024, 21:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@Anomalous: we'll check on plugin by monday
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 15.03.2024, 23:51
nobody-U-know nobody-U-know is offline
Baby Loader
 
Join Date: Mar 2024
Posts: 7
Default

You fixed it already?

After almost six hours, it's working again.
Reply With Quote
  #14  
Old 18.03.2024, 13:48
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@nobody-U-know: no changes from our side. most likely they reverted their changes
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 15.07.2024, 21:00
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

The program downloads the reduced versions of the images again
Reply With Quote
  #16  
Old 15.07.2024, 22:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@VanTuz: Can you provide examples? Still looking good here and working to download the original.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 15.07.2024, 22:38
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

**External links are only visible to Support Staff****External links are only visible to Support Staff** - if you insert this link into the program, a 145 kb file with a resolution of 832x1216 will be downloaded.
**External links are only visible to Support Staff****External links are only visible to Support Staff** - direct link to the file, 240 Kb, 1200x1754
Reply With Quote
  #18  
Old 15.07.2024, 22:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@VanTuz: the 145kb one is the original, you can check the download button in browser. the url contains original=true, while the other one is a resize+compression one
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 15.07.2024, 23:08
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

OK then. The only thing is a pity that the program cannot extract links to images by itself, as it does with kemono, but at least some kind of opportunity to download images pleases.
Reply With Quote
  #20  
Old 15.07.2024, 23:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@VanTuz: what do you mean by *cannot extract links to images*? I does support /images/ links and others but currently does not have account support and thus can only parse/find links that are public available without account
__________________
JD-Dev & Server-Admin
Reply With Quote
  #21  
Old 15.07.2024, 23:37
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

I probably put it wrong. I meant that you can't put a link to the author's gallery and get all the images.
Reply With Quote
  #22  
Old 16.07.2024, 00:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

Quote:
Originally Posted by VanTuz View Post
I probably put it wrong. I meant that you can't put a link to the author's gallery and get all the images.
Check again with next update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #23  
Old 16.07.2024, 02:18
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

After the update, the program found 309 out of 1,700 images.
Reply With Quote
  #24  
Old 16.07.2024, 10:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

Quote:
Originally Posted by VanTuz View Post
After the update, the program found 309 out of 1,700 images.
Please provide example links so I can check this. My tests were okay but maybe those are age restricted images and/or models.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #25  
Old 16.07.2024, 12:09
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

**External links are only visible to Support Staff****External links are only visible to Support Staff** - I inserted this link into the program
Reply With Quote
  #26  
Old 16.07.2024, 12:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

We are using the following API request which does not seem to return more items:
Code:
github.com/civitai/civitai/wiki/REST-API-Reference#get-apiv1images
-> Example request:
Code:
civitai.com/api/v1/images?username=<username>&limit=100
That is processed until the field "nextPage" does not exist anymore or is null.
Please check that we are using the correct API request and if so, report this possible API bug to the civitai.com support.
__________________
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
  #27  
Old 17.07.2024, 19:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@VanTuz: Can you please check the link in browser, in incognito tab. My guess is that this account has many mature/age restricted images, and those are not part of api response when not using account. JDownloader does not yet support account and thus can only access/handle given images when they are restricted but api will not return any restricted items at all. For sure I don't get/see 1700 images in browser when scrolling down, so most likely this is the root cause.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #28  
Old 18.07.2024, 01:52
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

I checked in incognito mode- and it's true, only sfw images are displayed
Reply With Quote
  #29  
Old 18.07.2024, 09:42
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Please send your civitai.com to us via support@jdownloader.org then we can check to add login-support for this website.
__________________
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
  #30  
Old 18.07.2024, 10:08
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Addendum:
Fixed!
I found a bug in their API. Access to your civitai.com account is not needed anymore.
Quoting their API docs about optional URL-parameter "nsfw":
Quote:
nsfw (OPTIONAL) boolean | enum (None, Soft, Mature, X) Filter to images that contain mature content flags or not (undefined returns all)
Indeed, undefined does not return all!
Defining "nsfw" and setting it to "X" will return all items:
Code:
civitai.com/api/v1/images?username=<username>&limit=100&nsfw=X
@VanTuz
I highly recommend reporting this bug to the support staff of civitai.com since either their docs are wrong or their API contains said bug and other developers will definitely run into the same problem.

Bitte auf das nächste CORE-Update warten!

Please wait for the next CORE-Update!

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; 18.07.2024 at 10:31.
Reply With Quote
  #31  
Old 18.07.2024, 12:37
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

I am not an expert in programming. What exactly do I need to write to them?
Reply With Quote
  #32  
Old 18.07.2024, 13:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

No worries I just did that.
Public report:
Code:
github.com/civitai/civitai/issues/1277
__________________
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
  #33  
Old 18.07.2024, 23:03
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

Thanks. Best support ever.
Reply With Quote
  #34  
Old 19.07.2024, 16:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Thanks for that compliment.

Said JD update is live.
__________________
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
  #35  
Old 11.08.2024, 23:10
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

**External links are only visible to Support Staff****External links are only visible to Support Staff** - The author's page indicates that he has more than 9,000 works, but the program finds only about 5,500. Do I need to do some manipulations to get all the images or is this how it should be?
Reply With Quote
  #36  
Old 12.08.2024, 09:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@VanTuz: most likely they have changed api and no longer return restricted items. we will check that
__________________
JD-Dev & Server-Admin
Reply With Quote
  #37  
Old 12.08.2024, 12:39
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

@VanTuz
In the future, please always(!) provide logs in such cases because debugging such things can be very time consuming!

About the problem:
The API is sometimes returning non-full pages (e.g. 5 items instead of 10) which made the plugin think that it has reached the last page.
This is another potential API bug [or some items have been deleted from those pages in the meantime] but I won't report this one.
I've updated the plugin to just continue crawling until a page contains zero new items.

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; 12.08.2024 at 12:50. Reason: Fixed typo
Reply With Quote
  #38  
Old 12.08.2024, 12:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,243
Default

@VanTuz: fixed with next update. there are some deleted/removed images that broke pagination.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #39  
Old 12.08.2024, 15:52
VanTuz VanTuz is offline
Fibre Channel User
 
Join Date: Oct 2018
Posts: 125
Default

Thanks a lot
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 16: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.