Skip to content
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

Philo MSO #17821

Closed
wants to merge 1 commit into from
Closed

Philo MSO #17821

wants to merge 1 commit into from

Conversation

Aniruddh-J
Copy link
Contributor

@Aniruddh-J Aniruddh-J commented Oct 7, 2018

Added new Philo MSO.

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

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:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New MSO
  • New feature

Description of your pull request and other information

Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.

Added new MSO, Philo.

youtube-dl <url> --ap-mso=Philo --ap-username=<username> --ap-password=None

Philo has unique authentication method. Instead of regular username and password. Philo sends an OTP to your email/phone. You use that as the password.

Addresses #17395

Added new Philo MSO.
@Aniruddh-J
Copy link
Contributor Author

I'd love to share my account but that won't help because Philo sends OTP. Is there any other way you can suggest?

@ppritcha
Copy link

ppritcha commented Oct 7, 2018

Philo has a free trial that the maintainers could probably use for testing. The site says "Start your free trial with just your mobile number."

@DavidZ912
Copy link

What exactly should we put as our username? I have tried my email and my phone number but i never get a code also i can't input anything when i get to the point it ask for the account password even if i had received the code.

@Aniruddh-J
Copy link
Contributor Author

What exactly should we put as our username? I have tried my email and my phone number but i never get a code also i can't input anything when i get to the point it ask for the account password even if i had received the code.

Use 'None' as account password.

@DavidZ912
Copy link

What exactly should we put as our username? I have tried my email and my phone number but i never get a code also i can't input anything when i get to the point it ask for the account password even if i had received the code.

Use 'None' as account password.

I tried that but when i put the account password in the command i just get ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.

Here is one I'm trying for example.

python -m youtube_dl https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights --ap-mso=Philo --ap-username=myemail@gmail.com --ap-password=None

1 similar comment
@DavidZ912
Copy link

What exactly should we put as our username? I have tried my email and my phone number but i never get a code also i can't input anything when i get to the point it ask for the account password even if i had received the code.

Use 'None' as account password.

I tried that but when i put the account password in the command i just get ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.

Here is one I'm trying for example.

python -m youtube_dl https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights --ap-mso=Philo --ap-username=myemail@gmail.com --ap-password=None

@DavidZ912
Copy link

I tried that but when i put the account password in the command i just get ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.

Here is one I'm trying for example.

python -m youtube_dl https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights --ap-mso=Philo --ap-username=myemail@gmail.com --ap-password=None

1 similar comment
@DavidZ912
Copy link

I tried that but when i put the account password in the command i just get ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.

Here is one I'm trying for example.

python -m youtube_dl https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights --ap-mso=Philo --ap-username=myemail@gmail.com --ap-password=None

@Aniruddh-J
Copy link
Contributor Author

Can you add verbose mode by using -v option and paste the output here? You can remove your email from output and add a fake email.

@DavidZ912
Copy link

`youtube-dl-philo>python -m youtube_dl https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights -v --ap-mso=Philo --ap-username=fake@gmail.com --ap-password=None
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights', '-v', '--ap-mso=Philo', '--ap-username=PRIVATE', '--ap-password=PRIVATE']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.6.7 (CPython) - Windows-10-10.0.18262-SP0
[debug] exe versions: ffmpeg N-91666-g70d2bab80b, ffprobe N-91666-g70d2bab80b
[debug] Proxy map: {}
[Discovery] mystery-of-the-northern-lights: Downloading webpage
[Discovery] mystery-of-the-northern-lights: Downloading JSON metadata
ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.
Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 87, in _real_extract
'Authorization': 'Bearer ' + access_token,
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 864, in _download_json
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 842, in _download_json_handle
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 632, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 617, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 87, in _real_extract
'Authorization': 'Bearer ' + access_token,
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 864, in _download_json
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 842, in _download_json_handle
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 632, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 617, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 507, in extract
ie_result = self._real_extract(url)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 98, in _real_extract
' is not currently supported. You may want to use --cookies.', expected=True)
youtube_dl.utils.ExtractorError: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.`

Here ya go sorry for the multiple comments last time not sure how that happened.

@Aniruddh-J
Copy link
Contributor Author

Do you see Philo when you use --ap-list-mso?

@DavidZ912
Copy link

Yes i see it.

@DavidZ912
Copy link

If i leave out --ap-password=None it seems to go farther but i get to a point i assume it wants the code they send and it wont let me enter anything i also never get a code.

`python -m youtube_dl https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights -v --ap-mso=Philo --ap-username=fake@gmail.com
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.sciencechannel.com/tv-shows/spaces-deepest-secrets/full-episodes/mystery-of-the-northern-lights', '-v', '--ap-mso=Philo', '--ap-username=PRIVATE']
Type TV provider account password and press [Return]:
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.6.7 (CPython) - Windows-10-10.0.18262-SP0
[debug] exe versions: ffmpeg N-91666-g70d2bab80b, ffprobe N-91666-g70d2bab80b
[debug] Proxy map: {}
[Discovery] mystery-of-the-northern-lights: Downloading webpage
[Discovery] mystery-of-the-northern-lights: Downloading JSON metadata
ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.
Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 87, in _real_extract
'Authorization': 'Bearer ' + access_token,
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 864, in _download_json
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 842, in _download_json_handle
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 632, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 617, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 87, in _real_extract
'Authorization': 'Bearer ' + access_token,
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 864, in _download_json
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 842, in _download_json_handle
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 632, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 617, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 507, in extract
ie_result = self._real_extract(url)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 98, in _real_extract
' is not currently supported. You may want to use --cookies.', expected=True)
youtube_dl.utils.ExtractorError: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.`

@Aniruddh-J
Copy link
Contributor Author

Aniruddh-J commented Oct 23, 2018

Okay can you try running directly from source this way:

youtube_dl/__main__.py <URL> --ap-mso=Philo --ap-username=<your_email> --ap-password=None

Or can you also try using some other website that uses Adobe Pass authentication? For example, Lifetime Network website requires TV provider authentication. Try running this URL just for test: https://www.mylifetime.com/shows/you/season-1/episode-7

@DavidZ912
Copy link

Looks like the same problem that way.

`[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.investigationdiscovery.com/tv-shows/in-plain-sight/full-episodes/teenage-rage', '-v', '--ap-mso=Philo', '--ap-username=PRIVATE', '--ap-password=PRIVATE']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.6.7 (CPython) - Windows-10-10.0.18262-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[Discovery] teenage-rage: Downloading webpage
[Discovery] teenage-rage: Downloading JSON metadata
ERROR: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.
Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 87, in _real_extract
'Authorization': 'Bearer ' + access_token,
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 864, in _download_json
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 842, in _download_json_handle
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 632, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 617, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 2211, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\thena\AppData\Local\Programs\Python\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 87, in _real_extract
'Authorization': 'Bearer ' + access_token,
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 864, in _download_json
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 842, in _download_json_handle
expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 632, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 617, in _request_webpage
raise ExtractorError(errmsg, sys.exc_info()[2], cause=err)
youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 507, in extract
ie_result = self._real_extract(url)
File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\discovery.py", line 98, in _real_extract
' is not currently supported. You may want to use --cookies.', expected=True)
youtube_dl.utils.ExtractorError: This video is only available via cable service provider subscription that is not currently supported. You may want to use --cookies.`

@Aniruddh-J
Copy link
Contributor Author

Did you try it with the lifetime link I posted earlier?

@DavidZ912
Copy link

Odd that lifetime link does indeed work the couple i tried on science channel and investigation discovery do not. Tho it does not let me enter the code i was sent to my email.

[debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['https://www.mylifetime.com/shows/you/season-1/episode-7', '-v', '--ap-mso=Philo', '--ap-username=PRIVATE', '--ap-password=PRIVATE'] [debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252 [debug] youtube-dl version 2018.10.05 [debug] Python version 3.6.7 (CPython) - Windows-10-10.0.18262-SP0 [debug] exe versions: none [debug] Proxy map: {} [aenetworks] you/season-1/episode-7: Downloading webpage [aenetworks] 1342118979648: Downloading JSON metadata [aenetworks] 1342118979648: Downloading Provider Redirect Page [aenetworks] 1342118979648: Requesting auth code Type auth code you have received [Return]: [aenetworks] 1342118979648: Submitting token [aenetworks] 1342118979648: Confirming Philo Login ERROR: Unable to extract post url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\YoutubeDL.py", line 792, in extract_info ie_result = ie.extract(url) File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 507, in extract ie_result = self._real_extract(url) File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\aenetworks.py", line 144, in _real_extract url, video_id, requestor_id, resource) File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\adobepass.py", line 1478, in _extract_mvpd_auth post_form(mvpd_confirm_page_res, 'Confirming Login') File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\adobepass.py", line 1365, in post_form post_url = self._html_search_regex(r'<form[^>]+action=(["\'])(?P<url>.+?)\1', form_page, 'post url', group='url') File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 986, in _html_search_regex res = self._search_regex(pattern, string, name, default, fatal, flags, group) File "C:\Users\thena\Downloads\youtube-dl-philo\youtube_dl\extractor\common.py", line 977, in _search_regex raise RegexNotFoundError('Unable to extract %s' % _name) youtube_dl.utils.RegexNotFoundError: Unable to extract post url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@DavidZ912
Copy link

Ok so it does actually accept what i input just doesn't show it to me as i am typing sorry about that. It seems to work ok on lifetime and aetv but not on the channels that seem to all use the discovery setup science channel/investigation discovery etc.

@jlick
Copy link

jlick commented Oct 24, 2018

but not on the channels that seem to all use the discovery setup science channel/investigation discovery etc.

Discovery sites already worked through cookies.txt. Don't need MSO for them.

@DavidZ912
Copy link

but not on the channels that seem to all use the discovery setup science channel/investigation discovery etc.

Discovery sites already worked through cookies.txt. Don't need MSO for them.

Yep thanks i just found that out doing some searching around.

@Aniruddh-J
Copy link
Contributor Author

It seems to work ok on lifetime and aetv but not on the channels that seem to all use the discovery setup science channel/investigation discovery etc.

So that means DiscoveryIE needs to be modified. I'll see if I can submit a pull request for that, as well.

@Aniruddh-J
Copy link
Contributor Author

@dstftw Do you need anything from me for this pull request?

@dstftw
Copy link
Collaborator

dstftw commented Jan 3, 2019

Complete reproducible environment for testing these changes.

@mshiels
Copy link

mshiels commented Feb 3, 2019

ok, been trying to get this working with Philo and MSO - and even with just cookies, and so far can't get anything to let me grab

https://www.discovery.com/tv-shows/gold-rush/full-episodes/broken-bones?

I have gotten cookies working for other sites, but somehow even though I output the cookies from a browser that was viewing fine - they don't seem to work in youtube_dl at all.

@jlick
Copy link

jlick commented Feb 3, 2019

https://www.discovery.com/tv-shows/gold-rush/full-episodes/broken-bones

There's some other issue with Discovery sites that prevents Philo MSO (maybe MSO in general?) from working. I've used the Philo MSO patch with aetv just fine, but Discovery sites don't work with it.

This is the method that works for Discovery sites with Philo:

  1. On your browser, authenticate/log-in/activate to the point that you can load and watch the video you want.
  2. Save ALL cookies, not just site cookies to cookies.txt
  3. IMMEDIATELY run your youtube-dl command with the --cookies cookies.txt option.

Probably 2 or 3 is tripping you up. The Discovery code doesn't renew the temporary token automatically like your web browser does (another bug?) so you have about 15 minutes between saving cookies and running youtube-dl. It probably needs all cookies because there's some other site besides the one you are downloading from involved in authentication.

Using the above method works with the URL you provided.

@mshiels
Copy link

mshiels commented Feb 3, 2019

thanks the timeout was surprising, kinda hard to automate long term with that kinda limit. I'll see if I can figure out how to auto renew possibly. I have done some login code for cbc I think it was, not checked in yet, since I don't have time to do all the proofing needing, but it works for me.

@jlick
Copy link

jlick commented Feb 4, 2019

I'll see if I can figure out how to auto renew possibly.

That'd be great if you can figure it out. Last time I looked I figured out it was based on the eosAd and eosAf cookies but hadn't figured out how they get set/renewed.

@varunsridharan
Copy link

@Aniruddh-J

When i am trying to run i get the below error

D:\hotstarlivestreamer\philo-do>python -m youtube_dl https://www.philo.com/player/player/recording/UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ --ap-mso=Philo --ap-username=****** --ap-password=None -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.philo.com/player/player/recording/UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ', '--ap-mso=Philo', '--ap-username=PRIVATE', '--ap-password=PRIVATE', '-v']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.10.05
[debug] Git HEAD: 8d32816bf
[debug] Python version 3.6.4 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg git-2019-10-11-71d9ae1, ffprobe git-2019-10-11-71d9ae1
[debug] Proxy map: {}
[generic] UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ: Requesting header
WARNING: Falling back on generic information extractor.
[generic] UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ: Downloading webpage
[generic] UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ: Extracting information
ERROR: Unsupported URL: https://www.philo.com/player/player/recording/UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ
Traceback (most recent call last):
  File "D:\hotstarlivestreamer\philo-do\youtube_dl\YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "D:\hotstarlivestreamer\philo-do\youtube_dl\extractor\common.py", line 507, in extract
    ie_result = self._real_extract(url)
  File "D:\hotstarlivestreamer\philo-do\youtube_dl\extractor\generic.py", line 3298, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.philo.com/player/player/recording/UmVjb3JkaW5nOjYwODU0ODg5OTg5MTEwOTgwMQ

@jlick
Copy link

jlick commented Nov 24, 2019

@varunsridharan This is not for authenticating or capturing streams from Philo itself. Instead, it is a method to authenticate on third-party sites that allow accessing their content with your Philo credentials. For example, aetv.com allows you to login to their site using you Philo credentials and play videos on aetv.com. With this patch you could also use youtibe-dl to download aetv.com videos using your Philo account to authenticate.

@varunsridharan
Copy link

varunsridharan commented Nov 24, 2019 via email

@varunsridharan
Copy link

@jlick i am still getting the same error with the AETV link


D:\hotstarlivestreamer\philo-do>python -m youtube_dl https://play.aetv.com/shows/live-pd/season-4/episode-13/trailer-park-treasures?playlist_slug=live-pd-season-4-highlights  --ap-mso=Philo --ap-username=*******@gmail.com --ap-password=None -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://play.aetv.com/shows/live-pd/season-4/episode-13/trailer-park-treasures?playlist_slug=live-pd-season-4-highlights', '--ap-mso=Philo', '--ap-username=PRIVATE', '--ap-password=PRIVATE', '-v']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.10.05
[debug] Git HEAD: 8d32816bf
[debug] Python version 3.6.4 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg git-2019-10-11-71d9ae1, ffprobe git-2019-10-11-71d9ae1
[debug] Proxy map: {}
[generic] trailer-park-treasures?playlist_slug=live-pd-season-4-highlights: Requesting header
WARNING: Falling back on generic information extractor.
[generic] trailer-park-treasures?playlist_slug=live-pd-season-4-highlights: Downloading webpage
[generic] trailer-park-treasures?playlist_slug=live-pd-season-4-highlights: Extracting information
ERROR: Unsupported URL: https://play.aetv.com/shows/live-pd/season-4/episode-13/trailer-park-treasures?playlist_slug=live-pd-season-4-highlights
Traceback (most recent call last):
  File "D:\hotstarlivestreamer\philo-do\youtube_dl\YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "D:\hotstarlivestreamer\philo-do\youtube_dl\extractor\common.py", line 507, in extract
    ie_result = self._real_extract(url)
  File "D:\hotstarlivestreamer\philo-do\youtube_dl\extractor\generic.py", line 3298, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://play.aetv.com/shows/live-pd/season-4/episode-13/trailer-park-treasures?playlist_slug=live-pd-season-4-highlights

@Aniruddh-J
Copy link
Contributor Author

Try to remove play. subdomain from URL.

@jlick
Copy link

jlick commented Dec 13, 2019

A&E seems to have just moved to a new video streaming system. You used to be able to remove "play." from the URL to get the old player but that no longer works. See #23363 to follow this issue.

@raface
Copy link

raface commented Jun 4, 2020

@jlick @Aniruddh-J did you have any luck with the renew of the cookies?
I have youtube-dl on my headless server and I have to keep refreshing my browser copying the new cookies, ssh and copy the new cookies to the server.
I even try a curl command to keep refreshing the cookie but I can't figure it out what to change on eosAf.

I am trying to download food network and cooking channel.

@Aniruddh-J
Copy link
Contributor Author

Aniruddh-J commented Jul 20, 2020

@raface Sorry for the late response. Unfortunately, can't handle cookie renewal. This has to be done manually, you can probably use PhantomJS to automate this.

@dstftw It is not possible for me to provide a complete reproducible environment for this because even if I provide you with my account you will not be able to test it. One of the collaborators will need to register a trial account and test it as this MSO sends an OTP to your email/phone.

@dstftw dstftw force-pushed the master branch 2 times, most recently from 7b956a1 to 5e26784 Compare September 13, 2020 13:51
@pukkandan
Copy link
Contributor

Does this patch still work?

@Aniruddh-J
Copy link
Contributor Author

Does this patch still work?

It should. Let me know if it doesn't.

@jlick
Copy link

jlick commented Jan 11, 2021

The patch for Philo still works great. The fork is very old and doesn't work for many sites due to outdated extractors that have been separately fixed, though, so you have to clone a current release and then manually pull in or apply the patch. If you do that it works fine. This is what I do on Linux to make a custom build with the current release with this patch added:

git clone https://github.com/rg3/youtube-dl/
cd youtube-dl
git pull --no-edit origin pull/17821/head
make

Hopefully this makes it in to a release someday as it is very useful.

@pukkandan pukkandan mentioned this pull request Jan 11, 2021
pukkandan added a commit to yt-dlp/yt-dlp that referenced this pull request Jan 11, 2021
Authored-by: Aniruddh Joshi <aniruddh@ebincoweb.com>
@Sipherdrakon
Copy link

I can't get philo to send me the auth code to use this. Bummer, I was really hopeful. :(

@jlick
Copy link

jlick commented Jan 19, 2021

If it was working before AND you use cookies, sometimes it will request a new token but Philo doesn't send you any text message. If you've waited a while and still no text, just press enter and usually it'll work just fine.

If it is your first time, make sure you are using the correct arguments, e.g.:

--cookies cookies.txt --ap-mso=Philo --ap-username=AAAPPPNNNN --ap-password=None

Specific tips:
It helps if you start with a cookies.txt file from a browser Philo is already logged into and has already authenticated with the site you are downloading from (i.e. get what you want to download playing in your web browser, then export cookies).
Username should be your 10 digit Philo account phone number starting with the area code, DO NOT start with '1'.
Check again that everything is spelled correctly and the download URL can be pasted into a new browser window and play.

@Sipherdrakon
Copy link

Nice, did as suggested and used cookies and although it still didn't send an auth code, hitting enter did allow it to start downloading. Thank you so much. :-)

@RedPenguin2
Copy link

For some reason for A&E, nothing would work at all at first even A&E cookies.

The only thing that ended up working as to use the -ap-mso, ap-username, ap-password=None all together with the cookies.txt that I grabbed from Philo's website with the Chrome "Get Cookies.txt" addon.

I just hit enter on put in token as nothing could get Philo to email me a token.

@Aniruddh-J
Copy link
Contributor Author

Philio must have changed the way they authenticate users. I developed this MSO 3 years ago, there is a high chance that it will break now.

Since the developers of youtube-dl are refusing to add this to the repo, it will be a total waste to work on this any further, unfortunately.

@jlick
Copy link

jlick commented Sep 27, 2021

Since the developers of youtube-dl are refusing to add this to the repo, it will be a total waste to work on this any further, unfortunately.

It is in integrated in some of the popular youtube-dl forks and still working great for me, so definitely not a waste in my opinion!

@Aniruddh-J
Copy link
Contributor Author

Oh, Okay, I was unaware of this.

You mentioned that it is still working, so no work is required at the moment, right?

@dirkf dirkf closed this Aug 1, 2023
@dirkf dirkf added the defunct PR source branch is not accessible label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defunct PR source branch is not accessible tv-provider-account-needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.