Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add support for Adobe Pass Auth TV Provider YouTubeTV #14984
Comments
|
Want to chime in here. I'm not sure exactly how to do this, but I may be able to help a bit. The login page for youtube tv is the same as the login for the standard youtube login. Hopefully, a good deal of that code could be reused. |
|
Looking forward to this feature |
|
Is a YoutubeTV account still needed? I've got an active account... |
|
I am really looking forward to this, as well. |
|
I'm still hoping that this will be worked on. Keeping an account saved in case somebody wants to pick it up. |
|
Being able to download from tv.youtube.com and adding YouTube TV as a MSO is two separate issues I blindly fiddled with adobepass.py and got nowhere. Maybe someone with skills will give it a shot When you login manually in a browser it goes to this order
This might be useless |
I've got one as well. |
|
Is there any potential update on this? Would love to use youtube-dl instead of browser plugins but unfortunately many sites won't simply accept a cookie and require MSO so I can't download from there. Haven't seen any update on this in months |
|
Like others I've been unable to use YouTube TV as a TV Provider, but I've found a really simple solution that lets me use my login cookies, and hopefully it will point the youtube-dl devs (I'm not much of a Python person myself...) in the direction of a "cookie ap-mso provider" approach that will work for (hopefully) all unsupported providers:
This is where "your mileage may vary." I can detail the change I made for Disney (go) sites, and I presume it's very similar for other extractors. Later on I'll discuss what I think is the "real" solution -- this is just a hack that'll get you going until it's properly fixed.
if video_data.get('accesslevel') == '1':
requestor_id = site_info.get('requestor_id', 'DisneyChannels')
resource = site_info.get('resource_id') or self._get_mvpd_resource(
requestor_id, title, video_id, None)
auth = self._extract_mvpd_auth(
url, video_id, requestor_id, resource)
data.update({
'token': auth,
'token_type': 'ap',
'adobe_requestor_id': requestor_id,
})
else:
self._initialize_geo_bypass({'countries': ['US']})What this block is doing, as best as I can tell, is seeing if a video is considered "protected" (
I can confirm that this works with YouTube TV as my provider and the Disney video sites (Disney, Disney Junior, etc.). This is obviously a hack, but it points us in the direction of... A Proper SolutionWhat I "think" the proper solution for providers like YouTube TV that aren't supported (and apparently won't be any time soon) is to make a generic "cookie" MSO provider, e.g.: youtube-dl --ap-mso cookie --cookies <path_to_cookies.txt> <url, etc.>`This flag would be used to indicate that Alternately, perhaps Thoughts? I can certainly try to make a PR for this, though Python isn't really my choice of language. |
|
@handcraftedbits I was very eager to see if your solution worked. I followed the steps exactly, triple checked, even. But when I try it, this happens. Can you see if you can download this URL from your machine after performing those steps? Perhaps there was another change in youtube-dl that broke your workaround? https://tv.youtube.com/watch/yOGRebatQvg
|
|
You will need to go to the individual provider website. It only works for me on disney and not abc but it’s something!
…Sent from my iPhone
On Feb 6, 2020, at 7:11 PM, Harrison Thomas ***@***.***> wrote:
@handcraftedbits I was very eager to see if your solution worked. I followed the steps exactly, triple checked, even. But when I try it, this happens. Can you see if you can download this URL from your machine after performing those steps? Perhaps there was another change in youtube-dl that broke your workaround?
https://tv.youtube.com/watch/yOGRebatQvg
./youtube-dl --cookies ./yttv.txt https://tv.youtube.com/watch/yOGRebatQvg [generic] yOGRebatQvg: Requesting header WARNING: Falling back on generic information extractor. [generic] yOGRebatQvg: Downloading webpage [generic] yOGRebatQvg: Extracting information ERROR: Unsupported URL: https://tv.youtube.com/watch/yOGRebatQvg
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
@dellis87 How do you determine the provider for a show? Like I'm trying to download the bachelor, for example. Is there a way to tell on YoutubeTV's website to see who the 'individual provider' is? |
|
It would be whatever channel that show is on. Like the bachelor is ABC I think.
…Sent from my iPhone
On Feb 6, 2020, at 8:18 PM, Harrison Thomas ***@***.***> wrote:
@dellis87 How do you determine the provider for a show? Like I'm trying to download the bachelor, for example. Is there a way to tell on YoutubeTV's website to see who the 'individual provider' is?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
@harryt04 , in my example I was referring to using YouTube TV credentials to download a Disney video stream. It's very likely that youtube-dl doesn't support video streams originating from YouTube TV itself, and that's why you're getting an error. The example I listed is only valid for the @dellis87 , just curious, but what extractor does youtube-dl say it's using when you download from an ABC site? Is it not |
|
It is go.py. It gives error about not being able to find the files required for download or something like that. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.12.14. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Would like to request support for YouTubeTV as an Adobe Pass MSO option. Running --ap-mso does not recognize YouTubeTV as an option that can be used. Going by the providers list https://sp.auth.adobe.com/adobe-services/config/ABC it should be able to use the service. If an account is needed, I do have an invite so access can be had.