#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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 Last edited by pspzockerscene; 14.03.2024 at 16:49. Reason: EDIT |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
Quote:
https://support.jdownloader.org/de/k...paketverwalter
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#7
|
||||
|
||||
@Anomalous: In case you need help/got questions with packagizer, please just ask
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
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.
|
#9
|
||||
|
||||
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 |
#10
|
||||
|
||||
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 |
#11
|
|||
|
|||
Got it. Yeah, Looks like some posts work and some don't. And thanks, I'll look into the regex stuff eventually.
|
#12
|
||||
|
||||
@Anomalous: we'll check on plugin by monday
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
You fixed it already?
After almost six hours, it's working again. |
#14
|
||||
|
||||
@nobody-U-know: no changes from our side. most likely they reverted their changes
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
The program downloads the reduced versions of the images again
|
#16
|
||||
|
||||
@VanTuz: Can you provide examples? Still looking good here and working to download the original.
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
**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 |
#18
|
||||
|
||||
@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 |
#19
|
|||
|
|||
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.
|
#20
|
||||
|
||||
@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 |
#21
|
|||
|
|||
I probably put it wrong. I meant that you can't put a link to the author's gallery and get all the images.
|
#22
|
||||
|
||||
Check again with next update
__________________
JD-Dev & Server-Admin |
#23
|
|||
|
|||
After the update, the program found 309 out of 1,700 images.
|
#24
|
||||
|
||||
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 |
#25
|
|||
|
|||
**External links are only visible to Support Staff****External links are only visible to Support Staff** - I inserted this link into the program
|
#26
|
||||
|
||||
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 Code:
civitai.com/api/v1/images?username=<username>&limit=100 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 |
#27
|
||||
|
||||
@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 |
#28
|
|||
|
|||
I checked in incognito mode- and it's true, only sfw images are displayed
|
#29
|
||||
|
||||
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 |
#30
|
||||
|
||||
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:
Defining "nsfw" and setting it to "X" will return all items: Code:
civitai.com/api/v1/images?username=<username>&limit=100&nsfw=X 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 Last edited by pspzockerscene; 18.07.2024 at 10:31. |
#31
|
|||
|
|||
I am not an expert in programming. What exactly do I need to write to them?
|
#32
|
||||
|
||||
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 |
#33
|
|||
|
|||
Thanks. Best support ever.
|
#34
|
||||
|
||||
Thanks for that compliment.
Said JD update is live.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#35
|
|||
|
|||
**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?
|
#36
|
||||
|
||||
@VanTuz: most likely they have changed api and no longer return restricted items. we will check that
__________________
JD-Dev & Server-Admin |
#37
|
||||
|
||||
@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 Last edited by pspzockerscene; 12.08.2024 at 12:50. Reason: Fixed typo |
#38
|
||||
|
||||
@VanTuz: fixed with next update. there are some deleted/removed images that broke pagination.
__________________
JD-Dev & Server-Admin |
#39
|
|||
|
|||
Thanks a lot
|
Thread Tools | |
Display Modes | |
|
|