-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pornhubpremium #21416
Pornhubpremium #21416
Conversation
Add yourextractor.py
Cleanup
Pornhub tests corrections: # non-ASCII title 'uploader': 'Unknown', --> 'uploader': 'unknown', # subtitles 'url': 'https://www.pornhub.com/view_video.php?viewkey=ph5af5fef7c2aa7', --> This video has been disabled --> 'url': 'https://fr.pornhub.com/view_video.php?viewkey=ph5a73f8c84d1a9', Add PornHubPremium login
PornHub test were broken, so I fixed them and added PornHub Premium login, should be OK now |
Do I need anything to do now? |
Resolve changes requested by dstftw
…ube-dl into pornhubpremium
all done :-)
*Everything should be as simple as possible, but not simpler.*
*_______________*
FAURE SYSTEMS
5 square Linné
38320 Eybens
Le ven. 21 juin 2019 à 19:49, Sergey M. <notifications@github.com> a écrit :
… ***@***.**** commented on this pull request.
------------------------------
In .gitignore
<#21416 (comment)>:
> @@ -51,3 +51,8 @@ venv/
# VS Code related files
.vscode
+AtomicParsley.exe
+ffmpeg.exe
+ffprobe.exe
+test_fork.py
+venv.bat
Revert all unrelated changes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21416?email_source=notifications&email_token=AIGJHRYAFGPVI3X3OEZ46VTP3UID3A5CNFSM4HYRI6B2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4J37OY#pullrequestreview-252952507>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIGJHR4Z4MFZLTA23LWGWMDP3UID3ANCNFSM4HYRI6BQ>
.
|
Revert .gitignore commit
Maybe I am no good at github! But I am a work in progress
I'm a github rookie but I guess it's okay now. |
I guess the only test failing is Pornhub Premium because of credentials. |
Wrong. See travis log. |
I fall back to previous password, sounds good now. |
Is test going to run automatically again, or I need to do something? |
Test OK on my PC, please tell me what should I do?
Maybe just process Travis again (I changed back the password).
*Everything should be as simple as possible, but not simpler.*
*_______________*
FAURE SYSTEMS
5 square Linné
38320 Eybens
Le dim. 23 juin 2019 à 13:15, Sergey M. <notifications@github.com> a écrit :
… Wrong. See travis log.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21416?email_source=notifications&email_token=AIGJHR526KTWSITXR5DS63DP35LNZA5CNFSM4HYRI6B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYK4AXI#issuecomment-504741981>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIGJHR7BT247YXBOJZN3W3TP35LNZANCNFSM4HYRI6BQ>
.
|
Added credentials
I don't know what to do with that: |
Sounds OK now, you merge the request ? |
Remove credentials from tests
Sounds OK now without creds, you merge the request ? Or am I requested to dpo something ? |
Hi Sergey,
I don't see the code in master branch, so not in 2019.07.12 release,
what should I do ?
*Everything should be as simple as possible, but not simpler.*
*_______________*
FAURE SYSTEMS
5 square Linné
38320 Eybens
Le lun. 24 juin 2019 à 08:13, Faure <dev@faure.systems> a écrit :
… Test OK on my PC, please tell me what should I do?
Maybe just process Travis again (I changed back the password).
*Everything should be as simple as possible, but not simpler.*
*_______________*
FAURE SYSTEMS
5 square Linné
38320 Eybens
Le dim. 23 juin 2019 à 13:15, Sergey M. ***@***.***> a
écrit :
> Wrong. See travis log.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#21416?email_source=notifications&email_token=AIGJHR526KTWSITXR5DS63DP35LNZA5CNFSM4HYRI6B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYK4AXI#issuecomment-504741981>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AIGJHR7BT247YXBOJZN3W3TP35LNZANCNFSM4HYRI6BQ>
> .
>
|
@@ -48,10 +49,12 @@ def dl(*args, **kwargs): | |||
|
|||
class PornHubIE(PornHubBaseIE): | |||
IE_DESC = 'PornHub and Thumbzilla' | |||
_NETRC_MACHINE = 'pornhubpremium' | |||
_LOGIN_URL = 'https://www.pornhubpremium.com/premium/login' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must be a separate extractor.
}) | ||
|
||
# Successful login | ||
if response.get("success") == '1': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single quotes.
@@ -48,10 +49,12 @@ def dl(*args, **kwargs): | |||
|
|||
class PornHubIE(PornHubBaseIE): | |||
IE_DESC = 'PornHub and Thumbzilla' | |||
_NETRC_MACHINE = 'pornhubpremium' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, should be pornhub. Auth should work for non premium site as well.
'info_dict': { | ||
'id': 'ph5af5fef7c2aa7', | ||
'id': 'ph5a73f8c84d1a9', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove all unrelated changes.
_VALID_URL = r'''(?x) | ||
https?:// | ||
(?: | ||
(?:[^/]+\.)?(?P<host>pornhub\.(?:com|net))/(?:(?:view_video\.php|video/show)\?viewkey=|embed/)| | ||
(?:[^/]+\.)?(?P<host>(?:pornhub|pornhubpremium)\.(?:com|net))/(?:(?:view_video\.php|video/show)\?viewkey=|embed/)| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be simplified as:
P<host>pornhub(?:premium)?\.
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])Before submitting a pull request make sure you have:
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
What is the purpose of your pull request?
Description of your pull request and other information
Add pornhubpremium.com to PornHub extractor.