JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 17.08.2020, 00:18
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default 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 03:35.
Reply With Quote
  #2  
Old 17.08.2020, 14:18
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Hi,
yes sure - just use a packagizer rule for this.

-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?
Reply With Quote
  #3  
Old 17.08.2020, 15:14
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

Quote:
Originally Posted by pspzockerscene View Post
Hi,
yes sure - just use a **External links are only visible to Support Staff**... for this.

-psp-
I checked out the packagizer link but it only shows a tutorial for how to add something. I can't figure out where I can add a rule to not get the resolution number after the filename.

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.
Reply With Quote
  #4  
Old 17.08.2020, 15:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

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
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 17.08.2020, 15:54
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

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?
Reply With Quote
  #6  
Old 17.08.2020, 16:03
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Quote:
Originally Posted by accelheim View Post
Do I do the same with these resolutions?
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
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
  #7  
Old 17.08.2020, 16:31
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

Quote:
Originally Posted by pspzockerscene View Post
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-
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 16:38.
Reply With Quote
  #8  
Old 17.08.2020, 16:38
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

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
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
  #9  
Old 17.08.2020, 16:47
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

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?
Reply With Quote
  #10  
Old 17.08.2020, 16:52
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Quote:
Originally Posted by accelheim View Post
Alright I will try this. Does this also work with removing the uploader name from all downloads?
Sure - you just need to update that regular expression.

Quote:
Originally Posted by accelheim View Post
What does the "filename" selection in the "...then set" section mean?
Well the above rule basically takes everything before "_xxxp.mp4" and then adds this + "." + fileType (= ".mp4") and sets it as the new filename.

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
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
  #11  
Old 17.08.2020, 16:56
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

Quote:
Originally Posted by pspzockerscene View Post
Sure - you just need to update that regular expression.


Well the above rule basically takes everything before "_xxxp.mp4" and then adds this + "." + fileType (= ".mp4") and sets it as the new filename.

You can find more examples by searching for "Packagizer" in our forum.

-psp-
Thanks it worked. But I really have no idea how to set up the rule to remove the uploader name since I have no knowledge of programming language.
Reply With Quote
  #12  
Old 17.08.2020, 17:08
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Quote:
Originally Posted by accelheim View Post
[...]since I have no knowledge of programming language.
"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
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
  #13  
Old 17.08.2020, 17:35
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

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?
Reply With Quote
  #14  
Old 17.08.2020, 17:44
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Quote:
Originally Posted by accelheim View Post
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?
It grabs everything before "_bla_XXp.mp4" and adds the original filetype back.

Quote:
Originally Posted by accelheim View Post
And what is the reason that names with underscore still show?
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
-psp-
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
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
  #15  
Old 17.08.2020, 17:58
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

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?
Reply With Quote
  #16  
Old 17.08.2020, 18:02
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Quote:
Originally Posted by accelheim View Post
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.
It won't work like this.
Regular expressions are something you need to learn if you understand how they work - e.g.:
regexone.com
Quote:
Originally Posted by accelheim View Post
Does that mean if a user name contains an underscore, that it's impossible to keep away the username in the file name?
If it contains an underscore, only everything after the last underscore inside the username will be removed.

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
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
  #17  
Old 17.08.2020, 18:10
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

Quote:
Originally Posted by pspzockerscene View Post
It won't work like this.
Regular expressions are something you need to learn if you understand how they work - e.g.:
regexone.com

If it contains an underscore, only everything after the last underscore inside the username will be removed.

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-
Alright I will try it out.

Thanks for the learning platform, I've checked it out but I'm not smart enough to understand these things.
Reply With Quote
  #18  
Old 17.08.2020, 18:22
accelheim accelheim is offline
JD Addict
 
Join Date: Jan 2020
Posts: 158
Default

It seems also videos where the uploader has numbers in the name do show after download. What expression can fix this?

Thanks.
Reply With Quote
  #19  
Old 18.08.2020, 13:57
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

These should already work fine.

Please provide example URLs.

-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?
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 13:43.
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.