Aka: tinyPornManager
This is a Pornhub.com scraper addon which can be loaded in tinyMediaManager(v4.x).
- Scrape basic info, such as Title, Thumbnail, Directors, Actors, Genres, Tags, Year, Rating, Duration, etc.
- Important variables can be customized to avoid frequent source code maintenance.
- Support i18n, you can choose the language you want to scrape from (Depends on the languages provided by Pornhub).
- Reimplement old tinyPornManager features
- Add support for i18n
- Better error handling
- Scrape better quality image
- Use the CV library to crop poster & generate other images such as banner, logo, etc.
- Scrape trailer
- Performance optimization
- Test cases
- Download & install tinyMediaManager
- Install Pornhub scraper
- Launch tinyMediaManager
- Click
Settings -> Movies -> Scraper
, enable Pornhub scraper - Download your favorite videos and name the files using the correct format (
eg:
644d924a9ccc8 | #Double Tactical NUKE on Shoot House.. (Modern Warfare 2 Shoot House Gameplay).mp4
) - Add the directory where the video is saved as a movie data source
- Click
Update source(s)
- Choose video(s) you want to scraping
- Click
Search & scrape
There are two options, you can either download the jar from the latest release or build it from source.
- download
scraper-addon-pornhub-xxx.jar
from Release Page - move
scraper-addon-pornhub-xxx.jar
to the subfolderaddons
of the tinyMediaManager installation
git clone https://github.com/scoooooott/tinyPornManager.git
cd tinyPornManager/
mvn clean package
- move
target/scraper-addon-pornhub-xxx.jar
to the subfolderaddons
of the tinyMediaManager installation
For Pornhub.com, there are currently two UNIQUE IDENTIFIERS for videos
- viewKey: Use everywhere in HTML/API, was CHOSEN TO BE the unique identifier for Pornhub Scraper
video-id(data-video-id): Use sometimes, currently ONLY DOING STORAGE
We need a rule to extract unique identifier from filename here is the regular expression in old version tpm:
^[P|p]h(\\S+)(?:\\s\\S.+)?
This expression can match the following cases:
├── ph1234abcd.mp4
├── ph1234abcd-Super Hot Lily Potter.mp4
└── ph1234abcd Super Hot Lily Potter.mp4
But, let's check out this url:
https://www.pornhub.com/view_video.php?viewkey=644d924a9ccc8
It seems that the generation rules of viewKey have changed. We need to always update the regular expression to match the new viewKey.
Fortunately, you can modify the regular expression
in Settings -> Movies -> Scraper -> Choose 'Pornhub' -> Scraper Options
.
This project is licensed under the MIT License - see the LICENSE file for details