JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > English Support > General Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old 10.02.2016, 15:22
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default 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?
Reply With Quote
  #2  
Old 10.02.2016, 15:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

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
Reply With Quote
  #3  
Old 10.02.2016, 15:31
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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?
Reply With Quote
  #4  
Old 10.02.2016, 15:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

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
Reply With Quote
  #5  
Old 10.02.2016, 16:20
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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.
Reply With Quote
  #6  
Old 11.02.2016, 08:38
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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.
Reply With Quote
  #7  
Old 11.02.2016, 10:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

It is always best to provide real live examples so we can check the rules ourselves
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 11.02.2016, 10:46
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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.
Reply With Quote
  #9  
Old 11.02.2016, 16:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

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
Reply With Quote
  #10  
Old 12.02.2016, 08:52
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default 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:
Reply With Quote
  #11  
Old 12.02.2016, 09:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Please provide some example Links and I will if / how this can be achieved
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 12.02.2016, 10:09
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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.
Attached Images
File Type: png rule_outcome_01.png (82.3 KB, 69 views)
File Type: png way1.png (86.5 KB, 69 views)
File Type: png way2.png (66.7 KB, 67 views)
File Type: png rule.png (50.3 KB, 73 views)
Reply With Quote
  #13  
Old 12.02.2016, 10:26
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

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. :]
Reply With Quote
  #14  
Old 12.02.2016, 10:47
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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.
Reply With Quote
  #15  
Old 12.02.2016, 12:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

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
Reply With Quote
  #16  
Old 12.02.2016, 12:13
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

Do you make it? It would be perfect!
Reply With Quote
  #17  
Old 12.02.2016, 12:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

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
Reply With Quote
  #18  
Old 12.02.2016, 14:09
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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:
Reply With Quote
  #19  
Old 12.02.2016, 15:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

I think youtube and vimeo should be no problem. Will take a look at it as well
__________________
JD-Dev & Server-Admin
Reply With Quote
  #20  
Old 16.02.2016, 17:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Please test again after next core update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #21  
Old 17.02.2016, 14:45
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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.
Reply With Quote
  #22  
Old 17.02.2016, 14:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

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
Reply With Quote
  #23  
Old 17.02.2016, 15:37
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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?
Reply With Quote
  #24  
Old 22.02.2016, 10:57
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default ?

Dear Sirs,
Silence means "not possible" I guess.
Reply With Quote
  #25  
Old 22.02.2016, 11:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

No time yet
__________________
JD-Dev & Server-Admin
Reply With Quote
  #26  
Old 22.02.2016, 14:24
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Please test again with next core update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #27  
Old 23.02.2016, 16:12
Kino Kino is offline
Fibre Channel User
 
Join Date: Nov 2010
Posts: 121
Default

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:
Reply With Quote
Reply


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 08:31.
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.