#1
|
|||
|
|||
![]()
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. ![]() |
#2
|
||||
|
||||
![]() Quote:
https://support.jdownloader.org/de/k...the-packagizer https://board.jdownloader.org/showthread.php?t=95626 This property is called "title" in this case so you can use it via jd:prop:title. Quote:
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 |
#3
|
|||
|
|||
![]()
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? |
#4
|
||||
|
||||
![]()
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 Last edited by pspzockerscene; 18.04.2024 at 14:45. Reason: Fixed typo |
#5
|
|||
|
|||
![]()
Perfect now with the <jd:prop:title>. Thank you very much pspzockerscene.
|
#6
|
||||
|
||||
![]()
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 |
![]() |
Thread Tools | |
Display Modes | |
|
|