#1
|
|||
|
|||
Pornhub - Video file name Packagizer remove uploader name and quality indicator
Hello,
Is there a setting to change the way videos are named after download? Right now all file names end with the number of resolution of the video. Is there a way to not get this ending of resolution in the file name? Thanks. Last edited by accelheim; 17.08.2020 at 02:35. |
#2
|
||||
|
||||
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
Quote:
I went to the packagizer and New Rule -> File Name -> Doesn't Contain -> _1080p and then Download URL -> pornhub.com It didn't work so I must have done something wrong here. |
#4
|
||||
|
||||
Hi again,
at this moment I'm assuming that: 1. You're always only grabbing the BEST quality of youporn content. 2. You only download 1080p content ending with filename "_1080p.mp4". This rule will remove "_1080p" from youporn filenames: -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
Hey,
thank you, I will try this out now. Yes, I only download the highest quality but also 480p and 720p are downloaded when that is the highest resolution for the video. Do I do the same with these resolutions? |
#6
|
||||
|
||||
If you want, you can do this.
You could also make one general rule for all pornhub URLs that replaces the "_XXXp.mp4" with ".mp4" using so called "regular expressions". -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#7
|
|||
|
|||
Great, thanks. And how do I set up this rule? I also need a general rule to remove the name of the uploader from the filename.
Last edited by accelheim; 17.08.2020 at 15:38. |
#8
|
||||
|
||||
E.g. like this:
You can find more about "regular expressions" and its power on the Internet and e.g. test your regular expressions with this webtool: regex101.com -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#9
|
|||
|
|||
Alright I will try this. Does this also work with removing the uploader name from all downloads?
What does the "filename" selection in the "...then set" section mean? |
#10
|
||||
|
||||
Quote:
Quote:
You can find more examples by searching for "Packagizer" in our forum. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#11
|
|||
|
|||
Quote:
|
#12
|
||||
|
||||
"Regular expressions" is not a programming language ...
Please make yourself familiar with it if you need further packagizer rules. That said, here is one that will remove the uploaders' name too ... as long as that doesn't contain an underscore: -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#13
|
|||
|
|||
Thank you I will try this one. How is this expression different from the one removing the resolution? With that I mean what in this expression makes the difference?
And what is the reason that names with underscore still show? |
#14
|
||||
|
||||
Quote:
If an uploaders' name contained an underscore, this rule would still grab everything before the above pattern and build the name filename e.g.: Code:
blabla_uploaders_name_with_underscore_1080p.mp4 New name: Code:
blabla_uploaders_name_with.mp4 EDIT I know I'm repeating myself but you can simply e.g. test this using regex101.com.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#15
|
|||
|
|||
Alright. I tried some of the expressions you gave earlier in the regex101 but I do not understand what they mean and how to find new ones from scratch.
Does that mean if a user name contains an underscore, that it's impossible to keep away the username in the file name? |
#16
|
||||
|
||||
Quote:
Regular expressions are something you need to learn if you understand how they work - e.g.: regexone.com Quote:
Yes it might be possible to improve this but I'm unable to provide a solution for this edge-case now. You will have to either do trial and error or just use the rule - maybe pornhub usernames are not even allowed to contain underscores - I don't know -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#17
|
|||
|
|||
Quote:
Thanks for the learning platform, I've checked it out but I'm not smart enough to understand these things. |
#18
|
|||
|
|||
It seems also videos where the uploader has numbers in the name do show after download. What expression can fix this?
Thanks. |
#19
|
||||
|
||||
These should already work fine.
Please provide example URLs. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|