Thread: [Solved] hitbdsm.com
View Single Post
  #4  
Old 09.06.2021, 16:29
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,088
Default

Here are two rules that will do the job:
Code:
[
  {
    "maxDecryptDepth": 1,
    "name": "hitbdsm.com rule",
    "pattern": "https?://(?:www\\.)?hitbdsm\\.com/(?!wp)[\\w-]+/",
    "rule": "DEEPDECRYPT",
    "deepPattern": "(/wp-content/plugins/clean-tube-player/public/[^\"]+)",
    "packageNamePattern": "<title>(.*?)( - HitBDSM)?</title>"
  },
  {
    "maxDecryptDepth": 1,
    "name": "hitbdsm.com rule2",
    "pattern": "https?://(?:www\\.)?hitbdsm\\.com/wp-content/plugins/clean-tube-player.*",
    "rule": "DEEPDECRYPT",
    "deepPattern": "<\\s*source src\\s*=\\s*'(.*?)'\\s*label='\\d+p'"
  }
]
Rule as plaintext for easier copy & paste:
pastebin.com/PxZYPWum

Please note the following:
- There are always multiple ways to accomplish your goal with these rules/RegExes - there is no "right" or "wrong" as long as it works
- I've noticed you tried to always grab 480p - I've adjusted the rule to grab all qualities - you can of course revert these changes if you want to
- Test your regular expressions via the free webtool regex101.com
- You can easily format/check json via free webtool jsoneditoronline.org

Ahh and by the way:
At this moment the filenames are bad but the packagename is nice.
If you want to have nice filenames, use a Packagizer rule to set the packagename as filename.

-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?

Last edited by pspzockerscene; 09.06.2021 at 16:32.
Reply With Quote