#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
Quote:
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. |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
Quote:
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 |
#6
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|