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.
Please add Charter_Direct to your supported MSO list. #11465
Comments
|
Is there any information you can use in lieu of a provider account? The problem is I'm trying to get this working for a relative that has cable, but I'm at a different location and they don't want to provide their login info. Is there anything that I could run that would give you the information you need, and if so, is there a way to send it to you without posting it publicly? |
|
@tv21 I am not sure if Charter works the same way, but when I was working with the devs to get Comcast support to work, I was able to create a secondary Comcast username (under my main account) that had no rights other than TV access. I gave that username and its password to the devs for testing. When it was all done, I suspended the secondary username. If Charter offers multiple usernames per account, the same approach may work for you. Failing that, if you know any python, you can run a simple test to see if just adding the Charter name to the list of MSO's will work for you. The MSO list is in a file called youtube_dl/extractor/adobepass.py. |
|
I started working on the adobepass.py file to updated MSOs and I included Charter, but I have no way of testing it. (I realized that I was trying to commit a file that wasn't fully tested yet.) For whatever it's worth to the devs: |
|
raleeper, I am running it on Linux, having obtained it using the install instructions on this page: https://rg3.github.io/youtube-dl/download.html I cannot seem to find a youtube_dl/extractor/adobepass.py file - is that something that's compiled into the executable file? gkoelln, do you perhaps have a Linux download of your modified version available? It would be running under Debian, if that matters. Might be able to give it a test run and see if it works, as long as I only have to copy the executable to the /usr/local/bin/ directory. |
|
@tv21 Yes, adobepass.py is one of the source files that is built into the executable you downloaded. It's only helpful if you want to do a little tinkering on your own. It would be more trouble than it's worth if you aren't already set up to do python coding. |
|
EDIT: I finally got this to work, just not with the provider I'd originally tried, however it seems to work with other sources just fine. See my followup post further down. I tried an experiment today. Bear in mind I have not a clue what I am doing since I am not a programmer, but I did download the source code zip file to a Linux system and expanded it into a directory. I then found the youtube_dl/extractor/adobepass.py file, and going off of gkoelln's post I added these lines in the MSO_INFO section:
I am not sure if that was correct, but it was my best guess. Anyway, after many tries at things that didn't work I realized I could run it directly by running the
So I tried a couple of test runs, and for a while it actually looked like it might work, but in one case it errored out with a couple of "HTTP error 403 Forbidden" errors, and in another with an error from the source that said "Unable to retrieve required files for playback. Please try again in a few minutes." Since this is a an open forum I don't want to be too specific about exactly what I was trying to retrieve for the test, but it got further along in the process than it has before. There are so many variables in this, including the main one, that I DON'T KNOW WHAT I'M DOING, but it didn't immediately shut me down for invalid login information. Does what I have done so far seem valid, or is there no hope of it working right by just running the main.py file? The system has Python 2.7.9 installed, if that makes any difference. Here is the output of a run with all the information regarding the attempted download and other potentially sensitive information redacted, I include it only to show how far it got before failing:
|
|
@tv21 The MSO login information isn't implemented for all extractors that might benefit from it. I am having the same problem with individual TVEverywhere locked videos from some sources. When the MSO login is actually working, you should see messages in the log similar to:
It's that "Retrieving Media Token" part that gets you past the 403's. So, from the log fragment you provided, you may not be able to get the video you want even if Charter is added because the extractor for the particular source you want isn't making use of the MSO information. |
|
Well I had some more time to experiment today and tried it again, and it now DOES work if in youtube_dl/extractor/adobepass.py these lines are added:
You then use the options --ap-mso Charter_Direct --ap-username username@charter.net --ap-password password It simply hadn't worked with the first services I tried it with so I had assumed it did not work. Don't know if anything else changed in the software that might have affected the results. So if the above lines could be added in the distribution version of youtube-dl it would be much appreciated! |
|
For anyone else waiting for Charter support, here is how to make it work until it's added to the official release:
OMIT THE FOLLOWING (UP TO "END OF OMITTED SECTION") IF DOING THIS AFTER ON OR AFTER MARCH 1, 2017. THE FOLLOWING CHANGE IS ALREADY IN MASTER.ZIP AND JUST NEEDS TESTING BY OTHER USERS:
Now inside the adobepass.py file look for the line:
use Ctrl-X in nano to exit the file (be sure to save it when prompted), or the equivalent commands in your favorite text editor. END OF OMITTED SECTION To check that it is working do:
It should print the youtube-dl help file. You can create a symlink to run the script without typing the path:
Then to run it:
The options should include If you ever do an upgrade (by re-downloading the master.zip file and expanding it) don't forget to re-add the lines in adobepass.py (NOT NECESSARY AFTER MARCH 1, 2017). Thanks to previous commenters for providing the necessary info. |
I'd like to commit it, but this sentence hesitates me. Could you describe more about what's broken with the approach listed above? |
|
Originally tried it with a program from a particular specific site and got the errors in my Jan 14 post. At the time there was nothing else I wanted to d/l that required a cable company login so I assumed it didn't work. But now I have tried it with a couple other sources that require a cable company login and they do work. So, I assume it was just a problem with that one source. (EDITED to remove name of site, which now works). |
|
Thanks for the answer. Do you want to open a pull request? |
|
Sorry, but I don't know what you mean by "pull request." |
|
Well, it can be too long to explain what a pull request is. By the way, I just commited your change. If the fix is confirmed by another person, this issue can be closed. |
|
Thank you. I hope another Charter user will confirm that this works. |
|
The patch by @tv21 is included in 2017.03.02. Please check it out, thanks. |
|
EDIT: After a new install of Ubuntu 16.04, updating youtube-dl to version 2017.03.06 (the regular compiled version), and installing ffmpeg (rather than avconf as had been installed on the previous system) everything I've tried seems to work now, including the one source that didn't work previously. Since no other Charter users seem to want to report and since it's now working for me I will close this issue so the developers can focus on other issues. Thank you again for the adding this support. |
|
I can confirm that Charter is working in version 2017.05.09. Thank you! |
|
This does not seem to work for me with a Spectrum account (specified with the |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.12.15. 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
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
This is not a site support request, per se, since the site (which I don't particularly want to reveal) is already supported. The problem is that the --ap-mso option does not recognize Charter_Direct as a valid option, even though it is among the providers shown at https://sp.auth.adobe.com/adobe-services/config/ABC which I assume is Adobe's list of supported MSO's. Can you please add Charter_Direct as a valid MSO?