JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09.07.2021, 20:43
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default pornhits.com How to rename filename as Website Title

Hello,

I have spent a good amount of time trying to read old posts but have gotten stuck. Lets say I want to download the video from **External links are only visible to Support Staff****External links are only visible to Support Staff**

I use Video DownloadHelper to extract the link of the video and JDownloader recognizes it. But I would like the file to have the same title as that url. In this example, I would like the title to be :"🔥The Sensual Suck Down - Chloe Scott - This Girl Sucks - Pornhits.com" instead of "81143_hq.mp4" which is what its showing up as on Jdownloader.

I tried to use packagizer to write this rule but i am very bad at it, any direction would be great. I included my attempt: Thanks
Attached Thumbnails
packagizer1.jpg  
Reply With Quote
  #2  
Old 11.07.2021, 11:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I'm sorry but that won't be possible with VDH Extension, because this extension neither doesn't forward the title, nor any reference to the current URL/website, so JDownloader only receives the final URL to the video

LinkCrawler rules also don't work because website uses Javascript to hide the final URLs
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 11.07.2021, 22:27
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by Jiaz View Post
I'm sorry but that won't be possible with VDH Extension, because this extension neither doesn't forward the title, nor any reference to the current URL/website, so JDownloader only receives the final URL to the video

LinkCrawler rules also don't work because website uses Javascript to hide the final URLs
Thanks for the response, do you know of a way to configure video downloadhelper or any other extension that can be used together with JDownloader that can convey the website title to the file name?
Reply With Quote
  #4  
Old 12.07.2021, 10:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I'm sorry but I don't know any. Maybe other community members do know such an extension or maybe a way to combine multiple one.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 12.07.2021, 17:12
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

If there was a way to correctly provide the referer when adding direct-URLs via VideoDownloadHelper, you could simply set the video title which is inside the initial URL as filename e.g.:
Code:
pornhits.com/video/123456/here-is-a-title/
__________________
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 13.07.2021, 09:35
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by Jiaz View Post
I'm sorry but I don't know any. Maybe other community members do know such an extension or maybe a way to combine multiple one.
Thanks for your time anyways, much appreciated!
Reply With Quote
  #7  
Old 13.07.2021, 09:36
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by pspzockerscene View Post
If there was a way to correctly provide the referer when adding direct-URLs via VideoDownloadHelper, you could simply set the video title which is inside the initial URL as filename e.g.:
Code:
pornhits.com/video/123456/here-is-a-title/
I tried messing around with the "Smart naming rules" function in video download helper, but no luck. Thanks for the help either way!
Reply With Quote
  #8  
Old 13.07.2021, 10:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@billbarry121: can you share your tried rules?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 13.07.2021, 11:51
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by Jiaz View Post
@billbarry121: can you share your tried rules?
I attached images of all the available automated attempts that I tried. I'm not too savy so I might be missing something obvious but no matter which method i try, JDownloader still shows "81143_hq.mp4" as the file name. Thank your for your effort!
Attached Thumbnails
sn1.jpg   sn2.jpg   sn3.jpg   sn4.jpg  
Reply With Quote
  #10  
Old 13.07.2021, 12:08
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Just checked, the "Smart naming rules" only work when downloading directly in browser. The extension doesn't export/forward the name to external tools
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 13.07.2021, 12:15
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by Jiaz View Post
Just checked, the "Smart naming rules" only work when downloading directly in browser. The extension doesn't export/forward the name to external tools
I see, thanks for checking! I'll have to figure out a different way
Reply With Quote
  #12  
Old 13.07.2021, 12:45
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Quote:
Originally Posted by Jiaz View Post
Just checked, the "Smart naming rules" only work when downloading directly in browser. The extension doesn't export/forward the name to external tools
Yap that's what I ment.

I guess as a workaround, you could also use some kind of outside macro* which adds the relevant part of the main URL (the filename part) with an anchor to the directURL --> Then use a packagizer rule to set that as a filename.

* I'm sorry but I can't give any directions here - you will have to do some googeling and look for such solutions.

-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
  #13  
Old 13.07.2021, 17:21
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Code:
/*
    Build download url from VDH 'details' page
    Trigger : New crawler job
*/

try {
    url = job.text.match(/video\nurl\s\n(.+?)\n/)[1];
    title = job.text.match(/title\s\n(.+?)\n/)[1];
    job.text = url + "#title=" + title;
} catch (e) {};
  • Open 'details' page in extension and copy the content to clipboard.
  • Create packagizer rule to extract the 'title' from the download url and set it as filename.
Reply With Quote
  #14  
Old 13.07.2021, 23:28
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    Build download url from VDH 'details' page
    Trigger : New crawler job
*/

try {
    url = job.text.match(/video\nurl\s\n(.+?)\n/)[1];
    title = job.text.match(/title\s\n(.+?)\n/)[1];
    job.text = url + "#title=" + title;
} catch (e) {};
  • Open 'details' page in extension and copy the content to clipboard.
  • Create packagizer rule to extract the 'title' from the download url and set it as filename.
Thanks for the help friend, but I looked everywhere for the "details" page in the extension, and can't seem to locate it.
Reply With Quote
  #15  
Old 14.07.2021, 00:14
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by billbarry121 View Post
... I looked everywhere for the "details" page in the extension, and can't seem to locate it.
Click on 'details' button. It will open a page which contains url, title and and other information about the video. Copy it to clipboard. The script (which has to be added to the eventscripter extension in JD) will build url from that data.

Reply With Quote
  #16  
Old 14.07.2021, 11:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@mgpai: Thanks for the help and nice solution
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 15.07.2021, 04:09
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by mgpai View Post
Click on 'details' button. It will open a page which contains url, title and and other information about the video. Copy it to clipboard. The script (which has to be added to the eventscripter extension in JD) will build url from that data.

I really appreciate the help but I think I'm just not savy enough to implement it. I put the script you wrote in eventscripter and copied the details to clipboard but don't know how to write the packagizer rule. I might be to hopeless for this, thank you for your effort anyways!
Attached Thumbnails
se1.jpg  
Reply With Quote
  #18  
Old 15.07.2021, 05:33
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by billbarry121 View Post
... don't know how to write the packagizer rule
Packagizer rule:
Code:
if > sourceurls(s) > contains > #title=*
then set > filename > <jd:source:1>.<jd:orgfiletype>
Reply With Quote
  #19  
Old 15.07.2021, 10:09
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by mgpai View Post
Packagizer rule:
Code:
if > sourceurls(s) > contains > #title=*
then set > filename > <jd:source:1>.<jd:orgfiletype>
So sorry for my ignorance, but I am missing something obvious I think. I attached my packagizer and event scripter entries. After doing that, I go to details of a video and then ctrl+A -> ctrl+C to highlight and copy all text on the details page, and then JDownloader recognizes it and adds a file to the linkgrabber. But this still has the filename of "81143_hq.mp4"
Attached Thumbnails
p1.jpg   se1.jpg   filename.jpg  
Reply With Quote
  #20  
Old 15.07.2021, 10:31
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by billbarry121 View Post
I attached my packagizer and event scripter entries.
I cannot access the forum attachments. You can find me in JD Chat.
Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader
Reply With Quote
  #21  
Old 15.07.2021, 11:01
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by mgpai View Post
I cannot access the forum attachments. You can find me in JD Chat.
Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader
All praise be to mgpai, thank you so much for your help, thanks for making the community great!
Reply With Quote
  #22  
Old 15.07.2021, 12:39
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Thanks for your feedback!

By the way we got pretty much the same example as desribed my mgpai in our knowledgebase where all the screenshots are visible.

@mgpai
Once again thanks

-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
  #23  
Old 15.07.2021, 13:07
billbarry121 billbarry121 is offline
Vacuum Cleaner
 
Join Date: May 2021
Posts: 15
Default

Quote:
Originally Posted by pspzockerscene View Post
Thanks for your feedback!

By the way we got pretty much the same example as desribed my mgpai in **External links are only visible to Support Staff**... where all the screenshots are visible.

@mgpai
Once again thanks

-psp-
Oh didn't notice this when searching through the forums for my answer, thats my fault. Thank you for the link, and @mgpai for his kindness!
Reply With Quote
  #24  
Old 15.04.2023, 16:39
teamoochean teamoochean is offline
Baby Loader
 
Join Date: Apr 2023
Posts: 5
Default

mgpai ... THANK YOU!!!

I have been trying to find a solution to this for a while now.. and your method did work just fine with me.

On the side note I was surprised to see that there is no plugin for VDH Details page since it was a suggested method by the developers / admins.
Reply With Quote
  #25  
Old 17.04.2023, 15:04
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Quote:
Originally Posted by teamoochean View Post
On the side note I was surprised to see that there is no plugin for VDH Details page since it was a suggested method by the developers / admins.
I'm sorry I don't understand. Can you please describe how you mean this?
__________________
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; 17.04.2023 at 15:04. Reason: Better wording
Reply With Quote
  #26  
Old 17.04.2023, 17:03
notice notice is offline
JD Supporter
 
Join Date: Mar 2023
Posts: 505
Default

Quote:
Originally Posted by pspzockerscene View Post
I'm sorry I don't understand. Can you please describe how you mean this?
I guess it is about the vhd details page, https://board.jdownloader.org/showpo...6&postcount=13
Maybe possible via plugin to auto fetch/parse those details
Reply With Quote
  #27  
Old 17.04.2023, 17:12
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Quote:
Originally Posted by notice View Post
I guess it is about the vhd details page, https://board.jdownloader.org/showpo...6&postcount=13
Maybe possible via plugin to auto fetch/parse those details
Won't be easy.

Easiest would be if Vdh would have an option to also copy the html context so JD would have the referer and for such porn sites the source URL will usually always contain a title, also in this case:
pornhits.com/video/123456/video-title-is-here/
__________________
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
  #28  
Old 18.04.2023, 20:31
teamoochean teamoochean is offline
Baby Loader
 
Join Date: Apr 2023
Posts: 5
Default VDH Details Page

Quote:
Originally Posted by pspzockerscene View Post
I'm sorry I don't understand. Can you please describe how you mean this?
I mean what we do is simply tell the default web browser to inspect the page via VDH and then select the link details option.

A new Tab opens with all the details for the desired video including the proper video titles.

Notice was right on spot with what I tried to mean.

Quote:
Originally Posted by notice View Post
I guess it is about the vhd details page, **External links are only visible to Support Staff**...
Maybe possible via plugin to auto fetch/parse those details
Also I am not a programmer can't even tell what sort of programming language is being implemented here or on VDH. yet the piece of script was so handy for me.

Since VDH creates a nice table to follow, I was surprised..

No matter what you guys created a great downloader. So please do not take my message in a bad criticism.

Thanks for your attention and have a great day !
Reply With Quote
  #29  
Old 18.04.2023, 20:32
teamoochean teamoochean is offline
Baby Loader
 
Join Date: Apr 2023
Posts: 5
Default

Yeap
Reply With Quote
  #30  
Old 19.04.2023, 02:30
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Quote:
Originally Posted by teamoochean View Post
I mean what we do is simply tell the default web browser to inspect the page via VDH and then select the link details option.
I'm sorry but I either still don't get it or you really want to automate the process of opening a real browser window, trying to use Vdh to find that URL and adding it to JD, all for automated downloading from pornhits.com.
In case you mean that:
1. I'm sorry but we won't provide any help with this since it's out of the boundaries of JDownloader.
Feel free to develop custom solutions to do that and post them here since they might be useful for other users too.

2. This would be something that you'd probably want to be a little bit more generic so it will work for other websites too. That makes it more of a challenge:
It's not so simple because every website works in a different way.
Some will load the stream URLs automatically right after opening the page.
Others will require you to solve a captcha or other challenges before you can play the video.
Some will require you to do X clicks to even start the stream.
Some will hide the streaming URLs so Vdh won't detect them.

I'm not saying that it is impossible but I think it will be easier to write a custom browser extension or even just a Tampermonkey script specifically for pornhits.com which will find those streaming URLs, append the title to the URL and send that link to JD via click and load.
This will probably even work faster than Vdh.

Quote:
Originally Posted by teamoochean View Post
No matter what you guys created a great downloader. So please do not take my message in a bad criticism.
No worries.
All I wanted to say is: Yes it is possible but not so easy to do and nothing that we will provide a solution for since we're talking about 3rd party software outside JDownloader which is specifically needed to automate downloads for one single website.
__________________
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
  #31  
Old 20.04.2023, 13:48
teamoochean teamoochean is offline
Baby Loader
 
Join Date: Apr 2023
Posts: 5
Default Mixed up topics..

Thanks for your response. I Was not talking about any domain or porn at all.. I added my comment here since it does work the same all around the websites since the VDH populates a new tab with all the necessary information as discussed earlier.

This is my example
**External links are only visible to Support Staff****External links are only visible to Support Staff**

And this is the tab populated by VDH -> Details

chrome-extension://lmjnegcaeklhafolokijcfjliaokphfk/content/details.html?panel=details#hls%3A1d7b0444


There is a prefix for the VDH details page. Again.. I am no programmer but just like VDH reads data from original webpage and parse necessary data, may be Jdownloader could parse the tab gets populated by VDH.

Again I am thinking and talking with zero knowledge about the mechanism behind browsers or webpages.

I hope that I managed to explain my idea this time clearly.
Reply With Quote
  #32  
Old 20.04.2023, 13:50
teamoochean teamoochean is offline
Baby Loader
 
Join Date: Apr 2023
Posts: 5
Default

** Forgot to mention you on my response..
Reply With Quote
  #33  
Old 20.04.2023, 15:15
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

@teamoochean
No worries and yes I've understood it now.

Feel free to post such a solution here if you can create- or find it somewhere.
__________________
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
  #34  
Old 21.04.2023, 18:02
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Added plugin for pornhits.com.
__________________
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
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 00:09.
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.