#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
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 |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
Thanks for your time anyways, much appreciated!
|
#7
|
|||
|
|||
I tried messing around with the "Smart naming rules" function in video download helper, but no luck. Thanks for the help either way!
|
#8
|
||||
|
||||
@billbarry121: can you share your tried rules?
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
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!
|
#10
|
||||
|
||||
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 |
#11
|
|||
|
|||
I see, thanks for checking! I'll have to figure out a different way
|
#12
|
||||
|
||||
Quote:
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 |
#13
|
|||
|
|||
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) {};
|
#14
|
|||
|
|||
Quote:
|
#15
|
|||
|
|||
Quote:
|
#16
|
||||
|
||||
@mgpai: Thanks for the help and nice solution
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
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!
|
#18
|
|||
|
|||
Packagizer rule:
Code:
if > sourceurls(s) > contains > #title=* then set > filename > <jd:source:1>.<jd:orgfiletype> |
#19
|
|||
|
|||
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"
|
#20
|
|||
|
|||
I cannot access the forum attachments. You can find me in JD Chat.
Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader |
#21
|
|||
|
|||
All praise be to mgpai, thank you so much for your help, thanks for making the community great!
|
#22
|
||||
|
||||
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 |
#23
|
|||
|
|||
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!
|
#24
|
|||
|
|||
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. |
#25
|
||||
|
||||
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 Last edited by pspzockerscene; 17.04.2023 at 15:04. Reason: Better wording |
#26
|
|||
|
|||
Quote:
Maybe possible via plugin to auto fetch/parse those details |
#27
|
||||
|
||||
Quote:
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 |
#28
|
|||
|
|||
VDH Details Page
Quote:
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:
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 ! |
#29
|
|||
|
|||
Yeap
|
#30
|
||||
|
||||
Quote:
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:
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 |
#31
|
|||
|
|||
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. |
#32
|
|||
|
|||
** Forgot to mention you on my response..
|
#33
|
||||
|
||||
@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 |
#34
|
||||
|
||||
Added plugin for pornhits.com.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|