JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11.01.2022, 13:02
invisibleman78 invisibleman78 is offline
JD VIP
 
Join Date: May 2009
Posts: 322
Question Packagizer: Is it possible to parse site source code for <title> or other content?

If you want to download a movie that is just called "123456789.mp4" and the URL is just www. example.com/videos/download/123456789.mp4 is it possible to inspect the site source code for an anchor like <title> or any other unique identifier?

I would like to create a Packagizer rule. So far I have only found samples to modifiy an already existing filename in the download URL.
But can I also extend that to the site source code?
Reply With Quote
  #2  
Old 11.01.2022, 13:38
invisibleman78 invisibleman78 is offline
JD VIP
 
Join Date: May 2009
Posts: 322
Default

In the meantime, I realized, that the MyJDownloader "Add Links" already seems to parse the needed title and show it in the popup window:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

How can I get access to this text after the “ sign (aka "Left Double quotation mark", **External links are only visible to Support Staff**Unicode 201C) sign?
Reply With Quote
  #3  
Old 11.01.2022, 16:40
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Hi,
without a real example it will be hard to help you but I'll try anyways:
  • No you cannot access html of the source URL of a direct-URL afterwards.
  • Yes, if a source-URL/referer is given, you can use this or parts of it and set that as filename: Packagizer -> If sourceurl(s) -> Contains -> ...
  • If title was set as packagename e.g. by our myjd addon, you can also use the packagename as filename --> Example rule

-psp-
__________________
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?

Last edited by pspzockerscene; 11.01.2022 at 16:45. Reason: Added hyperlink to example rule in knowledgebase
Reply With Quote
  #4  
Old 11.01.2022, 17:04
invisibleman78 invisibleman78 is offline
JD VIP
 
Join Date: May 2009
Posts: 322
Default

Thanks for your answer pspzockerscene.

Unfortunately, there is no more information in the source-URL as mentioned.
The packagename from local JD (as well as MyJD on the NAS) is "Various Files" / "Verschiedene Dateien" for this URL. That does not help.

I hoped, that I could access the title that MyJD on the NAS picks up and show it as visible for you in the printscreen "The Program 2..."
Reply With Quote
  #5  
Old 11.01.2022, 17:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,140
Default

Again: Without real example URLs I will probably not be able to help (you may as well send them to me via private message).

In any other case, all possibilities I see without an example are listed in my last reply.

-psp-
__________________
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?
Reply With Quote
  #6  
Old 12.01.2022, 17:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Quote:
Originally Posted by invisibleman78 View Post
How can I get access to this text after the “ sign (aka "Left Double quotation mark", **External links are only visible to Support Staff**Unicode 201C) sign?
@invisibleman78: not possible because this information is not sent to JDownloader
But you can try to use Eventscripter script and make use of the sourceURL of the added link(s) . Eg Trigger "Packagizer Hook" and then open the website and try to parse website title and then make use of it.
Ask here for help/hints, see https://board.jdownloader.org/showthread.php?t=70525

The script should cache the found title/result to avoid rechecking for each processed link again and again.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 13.01.2022, 11:21
invisibleman78 invisibleman78 is offline
JD VIP
 
Join Date: May 2009
Posts: 322
Default

Thanks for your addition @Jiaz.

I will try it this way.

You can close this question.
Reply With Quote
  #8  
Old 13.01.2022, 11:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

@invisibleman78: Nothing to thank me for. I just showed the direction but you have to walk the way yourself and/or with help of the great ppl in eventscripter thread
__________________
JD-Dev & Server-Admin
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 11:23.
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.