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

False username missing error when downloading from Lynda.com #14889

Closed
codewizard13 opened this issue Dec 1, 2017 · 2 comments
Closed

False username missing error when downloading from Lynda.com #14889

codewizard13 opened this issue Dec 1, 2017 · 2 comments
Labels

Comments

@codewizard13
Copy link

@codewizard13 codewizard13 commented Dec 1, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.11.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.11.26

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

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 -v flag 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 ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-o', '--username', 'PRIVATE', '--password', 'PRIVATE', '%(uploader)s/%(playlist)s/(Lynda) %(playlist)s - %(playlist_index)s - %(title)s.%(ext)s', 'https://www.lynda.com/MySQL-tutorials/PHP-MySQL-Essential-Training/119003-2.html', '-v']
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

SYSTEM

  • Windows 10 64-bit
  • CMD (cmd.exe)
  • youtube-dl 2017.11.26

ISSUE

Yesterday I downloaded youtube-dl and spent some time learning the command line switches and output templates. I was very happy that downloading YouTube playlists was a cinch, so I decided to see if it would work for downloading Lynda.com courses, which are essentially video playlists.

I have a personal (not corporate or 'organizational') Lynda account and was very happy to see that I was able to successfully download Lynda.com videos ... That is until I realized that it only downloaded 18 of 132 videos :(

But, there was still a bright side. The youtube-dl command line (Windows 10 CMD) output gave me this "Warning" message:

WARNING: 114 videos are only available for members (or paid members) and will not be downloaded. Use --username and --password options to provide lynda.com account credentials."

I researched the documentation here to find out examples of how to implement --username and --password. On this aspect the readme was very sparse. This is the extent of the what the help document had to say about providing credentials:

Authentication Options:
-u, --username USERNAME Login with this account ID
-p, --password PASSWORD Account password. If this option is left
out, youtube-dl will ask interactively.
-2, --twofactor TWOFACTOR Two-factor authentication code
-n, --netrc Use .netrc authentication data
--video-password PASSWORD Video password (vimeo, smotri, youku)

As a test, this is an example playlist I used:

I then tried to use this command, incorporating the --username and --password switches (the actual username and password have been changed for posting):

youtube-dl -o --username something@gmail.com --password private.something "%(uploader)s/%(playlist)s/(Lynda) %(playlist)s - %(playlist_index)s - %(title)s.%(ext)s" https://www.lynda.com/MySQL-tutorials/PHP-MySQL-Essential-Training/119003-2.html

But, it was to no avail. Though I no longer get "members only" warning, now I get an error that says:

Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: account username missing

Huh? WTF? What do you mean missing?? Obviously, I have indeed included the account username (my email) in the options before the URL, as indicated in the usage. So, what is going on here?? Why am I getting this seemingly false and invalid error message?

LINKS THAT I'VE RESEARCHED BUT THAT HAVE NOT SOLVED THE ISSUE

After carefully reading all the helpful check-offs and boilerplate messages before composing my post, I followed the advice given and searched through the links provided for help, to little avail. Following are the links I found useful. Unfortunately, the two that appeared most promising were closed prematurely or never followed-up on by the poster. Some were about "organization logins" (which I can only assume means like your company subscribes to Lynda and you use the company login?), which doesn't apply to my situation, but I read them anyway to see if I could glean anything useful. All found was references to a solution that was supposed to work with "cookies", but didn't. I also referred to the Vimeo links that looked like they might offer some insight:

GitHub Posts

Non-GitHub Posts

NOTE: Many of these links recommend using youtube-dl

MY QUESTIONS

  1. WHY AM I GETTING AN ERROR SAYING USERNAME IS MISSING WHEN IT ISN'T?

  2. How can I download the complete video set for a Lynda.com course using youtube-dl?

Any help is appreciated.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 1, 2017

you're command line is incorrect, the -o should be followed by an output template:
youtube-dl --username "something@gmail.com" --password "private.something" -o "%(uploader)s/%(playlist)s/(Lynda) %(playlist)s - %(playlist_index)s - %(title)s.%(ext)s" https://www.lynda.com/MySQL-tutorials/PHP-MySQL-Essential-Training/119003-2.html

@remitamine remitamine closed this Dec 1, 2017
@remitamine remitamine added the invalid label Dec 1, 2017
@codewizard13
Copy link
Author

@codewizard13 codewizard13 commented Dec 14, 2017

Thanks @remitamine! I am replying confirming that your reworking of the command I was using was indeed successful. Thanks so much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.