#1
|
|||
|
|||
Webpage title as package name or download folder.
Dear friends,
Sorry I'm a newbie in creating rules. I have some questions about packagizer rules: 1) If I wish to use source page title as package name, how should I do that? And for taking this question to a little bit further 2) If I wish to separate a page title and use one part as download folder, other part as package name. By an example: Suppose that page title is this page_text1 & page_text2 I wish to separate this title bu using "&" as separation point and use page_text2 as download folder and page_text1 as package name and subfolder name in download folder. How should I do that? |
#2
|
||||
|
||||
That is not possible without external browser extensions. JDownloader has no way to access that kind of information. It only can access clipboard which either holds url or url+html selection and maybe browser tab url. No page title available at that time.
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
I thought when JD is crawling a link, it also reads that information and keep it. As I understand this is not the way, correct?
|
#4
|
||||
|
||||
Do you have a special site/link in mind?
JDownloader is just parsing html code. It has no knowledge about DOM/html structure/page titles....
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
For example:
This link contains 16 valid download links which can be grabbed by link crawler. **External links are only visible to Support Staff****External links are only visible to Support Staff** JD creates Various Files package for 14 single pictures. That's good. and 2 packages for these two links. **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** I wish to make download folder for these files "Artist name", which is Noveland Sayson. and package name "girl" for the link ../AZ3vW and package name "wounded fairy" for the link ../zPPkm These informations exist in webpage titles. I tring to make the things above by using packagizer ruling, but yet, no success. You already make some plugin change for Artstation and I'm waiting for new core update, but since this is something that I frequently need, I wish to learn this method. |
#6
|
|||
|
|||
With new core update, my needs are solved. First of all, I would like to say thanks one more time.
Since I need frequently this naming manipulation, I still wish to learn. Therefore, I would like to change my question in this way: Suppose that packagename by link crawler is something like this text1&text2 I wish to separate this string into two pieces by using "&" as separation point and I wish to use text2 as download folder text1 as new package name. How kind of rule should I create in packagizer? Last edited by Kino; 11.02.2016 at 08:42. |
#7
|
||||
|
||||
It is always best to provide real live examples so we can check the rules ourselves
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
OK
For some Artists in Artstation I wish to download one share instead of all. In order to classify these type of download I need to do what I requested here: For example: This is the link containing two files. **External links are only visible to Support Staff****External links are only visible to Support Staff** JD creates this packagename which is very good in general use. kaki man-Villain saitama where "kaki man" is the artist, and "Villain saitama" is the art description. I wish to use Villain saitama as new package name and "kaki man" (artist name) as new download folder for this package. At the end I expected to have a folder called "kaki man" in my general download folder, and a subfolder named "Villain saitama" including two files coming from the source. Last edited by Kino; 11.02.2016 at 10:56. |
#9
|
||||
|
||||
Packagizer:
Packagename -> contains (.*)-(.*) enable Regex checkbox SourceURL(S) -> contains artstation.com then set DownloadFoldr -> <jd:orgpackagename:1> Packetname -> <jd:orgpackagename:2>
__________________
JD-Dev & Server-Admin |
#10
|
|||
|
|||
Cool!
This is crazy! Thanks.:w00t:
Just one more question, then I'm in heaven. Just after applying this rule, with a new separate rule, is it possible to collect single file packages coming from this rule into one new package with a name "misc"?:rolleyes: |
#11
|
||||
|
||||
Please provide some example Links and I will if / how this can be achieved
__________________
JD-Dev & Server-Admin |
#12
|
|||
|
|||
For Example, this is the link:
**External links are only visible to Support Staff****External links are only visible to Support Staff** This is the rule I created by your guidance. (see rule.png) I just add packagename as download subfolder, nothing more. rule gives this: (see rule_outcome_01.png) For multifile packages this is perfect. However there are too many single file packages, which is not necessary to keep in special folder. Actually this makes browsing worse. Therefore I manually collect them into one single package, and save them into root of artist folder. This is what I wish to have at the end:(see way1.png) or this, since the result is the same:(see way2.png) I hope I explained clearly. |
#13
|
||||
|
||||
we actually offer two functions in advanced settings
you can use various for single child packages 'LinkgrabberSettings.variouspackageenabled' 'LinkgrabberSettings.variouspackagelimit' OR hide single child packages 'GraphicalUserInterfaceSettings.hidesinglechildpackages' maybe this would be a better solution for you than mess with package customiser rules?
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#14
|
|||
|
|||
Dear @raztoki
Actually the rule you gave makes my life easier with this type of downloads. But if there is a way which can make what I defined possible, I will manage my downloads even better. Various file grouping also good but specifically for website artstation example, rule makes everything easier. If what I define is achievable, I appreciate. If not, what I get by the rule is good, I will continue to use it as it is. |
#15
|
||||
|
||||
If you like we can update plugin to put Single Images into Package with name of Artist
and only put multiple images into Package with name of Artist-Gallery ? Would that solve your problem?
__________________
JD-Dev & Server-Admin |
#16
|
|||
|
|||
Do you make it? It would be perfect!
|
#17
|
||||
|
||||
Yes, will change it later or on Monday. Depends when I find time. Will inform you here
Would be nice if you can provide some more example links for testing
__________________
JD-Dev & Server-Admin |
#18
|
|||
|
|||
You're great!
Then, here is another link. **External links are only visible to Support Staff****External links are only visible to Support Staff** artist name: Reha Sakar There are 4 multifile packages: Reha Sakar-Ciri Reha Sakar-Encounter Reha Sakar-Knight Reha Sakar-Pirates and plus, 50 single piece art shares. My common download folder is D:\JDownloads This is what I need: D:\JDownloads\Reha Sakar (All single files are here) D:\JDownloads\Reha Sakar\Ciri (2 files are here, related to this art piece) D:\JDownloads\Reha Sakar\Encounter (2 files are here, related to this art piece) D:\JDownloads\Reha Sakar\Knight (2 files are here, related to this art piece) D:\JDownloads\Reha Sakar\Pirates (2 files are here, related to this art piece) For current plugin, file naming works perfect. No need to touch it.:thumbup: The only thing is locating files in to proper folders, nothing more. ... Don't kill me but I need to add one thing more: This link includes a vimeo video. Is it possible to add it into proper package? **External links are only visible to Support Staff****External links are only visible to Support Staff** vimeo and youtube links are used by artstation. Here is an example of artwork including youtube video. **External links are only visible to Support Staff****External links are only visible to Support Staff** and for this link another issue: the artwork name has one more "-" sign. Can it make problem in automatic naming of package? OMG. I wrote too much! Sorry.:oops: |
#19
|
||||
|
||||
I think youtube and vimeo should be no problem. Will take a look at it as well
__________________
JD-Dev & Server-Admin |
#20
|
||||
|
||||
Please test again after next core update
__________________
JD-Dev & Server-Admin |
#21
|
|||
|
|||
Dear @Jiaz,
I will indicate a small issue in my words, but it is not so important. When I click a link of artist portfolio, JD collects single files in a single package with the name of artist. This is perfect. Files of multifile shares are also in this package. I was expecting JD would create separate packages whose download folder is the root folder of artist. However, sometimes, collecting all of the files into one single folder is better. Therefore I will not request a fix. Grabbing of video links works fine. Thanks four your kind effort to achieve what I requested. You're great.:thumbup: Best wishes. |
#22
|
||||
|
||||
Thanks for the feedback. I can try to change the package creation if you wish. Please provide example links for that case
__________________
JD-Dev & Server-Admin |
#23
|
|||
|
|||
Hi Jiaz,
Actually, for single art piece links (including "artwork" in the link), JD works perfect. I wish to request some addition to plugin but I'm getting afraid of loosing this nice working way. I really wish no change in this part. For example this: **External links are only visible to Support Staff****External links are only visible to Support Staff** JD makes really good job on this kind of links and I would say "Please preserve it". This is more important then my following request. _______________________________________________________________________ The problem is in the links of artist portfolios. These links have the string "artist" in it. Example: **External links are only visible to Support Staff****External links are only visible to Support Staff** "D:\JDownloads" is my default download folder. For this particular example, when I copy this link into clipboard, I'm expecting to have this: packagename:____________Download folder Reha Sakar______________D:\JDownloads\Reha Sakar ("root folder of artist", all single files here) Reha Sakar-Ciri_________D:\JDownloads\Reha Sakar\Reha Sakar-Ciri (multifile art-piece) Reha Sakar-Encounter____D:\JDownloads\Reha Sakar\Reha Sakar-Encounter (multifile art-piece) Reha Sakar-Knight_______D:\JDownloads\Reha Sakar\Reha Sakar-Knight (multifile art-piece) Reha Sakar-Pirates______D:\JDownloads\Reha Sakar\Reha Sakar-Pirates (multifile art-piece) Is it possible? |
#24
|
|||
|
|||
?
Dear Sirs,
Silence means "not possible" I guess. |
#25
|
||||
|
||||
No time yet
__________________
JD-Dev & Server-Admin |
#26
|
||||
|
||||
Please test again with next core update
__________________
JD-Dev & Server-Admin |
#27
|
|||
|
|||
Hi Jiaz,
New version works fine. It is not creating subfolders for multi-file artworks, but since individual packages are getting created for these artworks, it is OK. I wish to manage subfolder creation by packaging rules. This way is better I believe. I have an issue in packaging rules, but I will ask it in related thread that I opened before. Thanks a lot for your kind help.:thumbup: |
Thread Tools | |
Display Modes | |
|
|