JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 13.11.2023, 03:00
pepe333 pepe333 is offline
Baby Loader
 
Join Date: Oct 2023
Posts: 7
Default Add pornhub tags filter

Hello!

Could you please add a filter for movie tags on pornhub?
For example a model has hundreds of videos but I want only download those with tag "sextoy" and exclude tag/category "BJ". So the crawler will filter them.

I could even do it I myself and send you a pull request but I didn't find your project on github or elsewhere.
Reply With Quote
  #2  
Old 13.11.2023, 11:40
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Hi,
the JDownloader project is not on github.

Also JDownloader is not made to crawl whole categories.
If you want to use it in that way, here is what you can do:
1. Add a Packagizer rule so that added items will contain the tags and/or categories inside their filenames.
Properties needed here: categories_comma_separated, tags_comma_separated
2. Now you can filter items via search-bar in your linkgrabber and/or also via Linkgrabber Filters.
__________________
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
  #3  
Old 13.11.2023, 21:19
pepe333 pepe333 is offline
Baby Loader
 
Join Date: Oct 2023
Posts: 7
Default

Quote:
Originally Posted by pspzockerscene View Post
Hi,
the JDownloader project is not on github.

Also JDownloader is not made to crawl whole categories.
If you want to use it in that way, here is what you can do:
1. Add a **External links are only visible to Support Staff**... so that added items will contain the tags and/or categories inside their filenames.
Properties needed here: categories_comma_separated, tags_comma_separated
2. Now you can filter items via search-bar in your linkgrabber and/or also via Linkgrabber Filters.
Thank you for your reply!
But sorry I didn't understand your advice.

I didn't mean to crawl the whole category. I just wanted to filter the links by a tag. And I can't see that the site plugin provides the tags for the links. The tags for each video must be extracted from a page source.
Reply With Quote
  #4  
Old 14.11.2023, 10:20
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Okay again:
By default the pornhub filenames which JDownloader sets do not contain the tags of the videos but JDownloader knows them.
Optionally you can modify names of added items using Packagizer rules.
I've listed the required Plugin specific properties in my last reply.


So what you need to do is:
1. Make JDownloader put the tags into the filenames.
2. Then you can filter by filenames (thus by tags) inside JDownloaders lLinkgrabber.
__________________
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
  #5  
Old 14.11.2023, 21:01
pepe333 pepe333 is offline
Baby Loader
 
Join Date: Oct 2023
Posts: 7
Default

Quote:
Originally Posted by pspzockerscene View Post
Okay again:
By default the pornhub filenames which JDownloader sets do not contain the tags of the videos but JDownloader knows them.
Optionally you can modify names of added items using **External links are only visible to Support Staff**....
I've listed the required Plugin specific properties in my last reply.


So what you need to do is:
1. Make JDownloader put the tags into the filenames.
2. Then you can filter by filenames (thus by tags) inside JDownloaders lLinkgrabber.
"but JDownloader knows them"
Ah, now that makes sense.
Regarding my question: I'm not sure I want all those dozens of tags to bloat the file names; they will be too long.

Is it possible to utilize Event Scripter for this task? Some script for on_before_adding_url_to_link_grabber_list event:
Code:
def filter_tags(my_tag, tags_list):
   return my_tag in tags_list #False: reject URL, don't add to LinkGrabber list
Reply With Quote
  #6  
Old 15.11.2023, 10:03
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Please ask in the EventScripter thread.

EventScripter forum thread:
https://board.jdownloader.org/showthread.php?t=70525
EventScripter help article:
https://support.jdownloader.org/Know...event-scripter
__________________
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 01:27.
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.