#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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? |
#3
|
||||
|
||||
Hi,
without a real example it will be hard to help you but I'll try anyways:
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 11.01.2022 at 15:45. Reason: Added hyperlink to example rule in knowledgebase |
#4
|
|||
|
|||
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..." |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
Quote:
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 |
#7
|
|||
|
|||
Thanks for your addition @Jiaz.
I will try it this way. You can close this question. |
#8
|
||||
|
||||
@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 |
Thread Tools | |
Display Modes | |
|
|