JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.04.2024, 20:10
uek uek is offline
Modem User
 
Join Date: Apr 2024
Posts: 3
Default Pixiv and Packagizer different fields for filename

Hello,

I'm exploring the use of JD in webpages like Pixiv for download pics with a specific filename rules using Packagizer. My struggling comes because I really don't know all "plugin specific properties" or "dynamic variables" I can use in this domain, so I'm guessing by trial and error for what I can found in the forum.

Let's put an example for explaining what I'm aiming for this artist:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

And for this picture in particular:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

With the default value <jd:orgfilename>, it will give:
116827509_p0 HARUCOMICCITY32, Zatch_Kiyo, Zatch Bell! _ 【3_17春コミ新刊】大した呪文じゃなくていい - TKG.jpg

Which can be translated as a structure like this:
<PictureID>_p<Counter> <Tag>, <Tag>, <Tag> _ <PictureTitle> - <Uploader>.<FileType>

I wanted to look more like this:
<Uploader> - <PictureTitle> <Counter> (<UploaderID>-<PictureID>).<FileType>

For what I've seen I can have a more or less decent approach with this pattern:
<jd:prop:uploader> - <jd:prop:orderid> (<jd:prop:contentid>).<jd:orgfiletype>

That will give:
TKG - 0 (116827509).jpg

The only two things I'm missing will be <PictureTitle> and <UploaderID>. Thus, I'm asking for help in that regard, is there some way of having those two fields?, So the final file should look as this:
TKG - 3_17春コミ新刊】大した呪文じゃなくていい 0 (1364988-116827509).jpg

The <UploaderID> is visible in the first link and the <PictureTitle> can be seen in the default option, but I don't know how to isolate it.

I hope my explanation was good enough and not too cumbersome. If more examples are needed I'll work my ass for them. Great program JD by the way.
Reply With Quote
  #2  
Old 17.04.2024, 13:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,260
Default

Quote:
Originally Posted by uek View Post
My struggling comes because I really don't know all "plugin specific properties" or "dynamic variables" I can use in this domain
Please read our docs and similar posts in our forums e.g.:
https://support.jdownloader.org/de/k...the-packagizer

https://board.jdownloader.org/showthread.php?t=95626

Quote:
Originally Posted by uek View Post
The only two things I'm missing will be <PictureTitle>
This property is called "title" in this case so you can use it via jd:prop:title.

Quote:
Originally Posted by uek View Post
The <UploaderID> is visible in the first link and the <PictureTitle> can be seen in the default option, but I don't know how to isolate it.
The user-ID of the uploader is never set as a property but you can obtain it from the source URL similar as to explained here.
Screenshot of example rule:


Rule as text:
Sourceurl -> Contains -> pixiv\.net/en/users/([0-9]+) --> Enable regex checkbox on right side
...then set
Filename: <jd:source:1>_<jd:orgfilename>

--> This does not produce the filenames you want - it is just an example on how to get the userID.
__________________
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?

-----------------------------------

On Vacation / Im Urlaub
Start: 2024-02-08
End: TBA

Reply With Quote
  #3  
Old 17.04.2024, 15:16
uek uek is offline
Modem User
 
Join Date: Apr 2024
Posts: 3
Default

The UserID is working perfectly now, thank you very much. On the other hand, the use of <jd:prop:title> gives me the actual title + the tags
With the former example I get:
HARUCOMICCITY32, Zatch_Kiyo, Zatch Bell! _ 【3_17春コミ新刊】大した呪文じゃなくていい

Could that be revised?
Reply With Quote
  #4  
Old 17.04.2024, 17:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,260
Default

Update hast just been released:
- title is not touched anymore
- added new properties: title_alt and tags_comma_separated

Explanation on where the data is coming from:
pixiv.net/en/artworks/116827509
-->
pixiv.net/ajax/illust/116827509

title comes from body.illustTitle
title_alt comes from body.alt - that also contains the tags but in an order which is pre defined by pixiv.net
tags_comma_separated is generated via body.tags.tags
__________________
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?

-----------------------------------

On Vacation / Im Urlaub
Start: 2024-02-08
End: TBA


Last edited by pspzockerscene; 18.04.2024 at 14:45. Reason: Fixed typo
Reply With Quote
  #5  
Old 18.04.2024, 14:24
uek uek is offline
Modem User
 
Join Date: Apr 2024
Posts: 3
Default

Perfect now with the <jd:prop:title>. Thank you very much pspzockerscene.
Reply With Quote
  #6  
Old 18.04.2024, 14:46
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,260
Default

Thanks for your feedback.

If you want to join the discussion about better file naming features, feel free to post your input in this thread:
https://board.jdownloader.org/showthread.php?t=90744
__________________
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?

-----------------------------------

On Vacation / Im Urlaub
Start: 2024-02-08
End: TBA

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 23:59.
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.