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

youtube-dl #3818

Closed
Geoniboy opened this issue Sep 23, 2014 · 6 comments
Closed

youtube-dl #3818

Geoniboy opened this issue Sep 23, 2014 · 6 comments

Comments

@Geoniboy
Copy link

@Geoniboy Geoniboy commented Sep 23, 2014

Hello,

I am running Linux Mint Cinnamon on my laptop and I downloaded youtube-dl using sudo apt-get install youtube-dl. All fine but when I try to download a video from youtube, I get this error message...

WARNING: Warning: Falling back to static signature algorithm
WARNING: Automatic signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 957, in _decrypt_signature
video_id, player_url, len(s)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 331, in _extract_signature_function
player_type = id_m.group('ext')
AttributeError: 'NoneType' object has no attribute 'group'

WARNING: Warning: Falling back to static signature algorithm
ERROR: unable to download video data: HTTP Error 403: Forbidden

What gives?
How can I fix this?
I've tried sudo apt-get upgrade and youtube-dl is still not working...

Cheers!

john

@phihag
Copy link
Contributor

@phihag phihag commented Sep 23, 2014

YouTube changed their player format on July 25th, 2014, so you'll need at least youtube-dl 2014.07.25 to download all YouTube videos.

Note that Linux Mint packages do not seem to get updated anymore. Since we are not affiliated with Linux Mint, there is little we can do. Feel free to report bugs to the Linux Mint packaging guys - all they have to do is update the package to a somewhat recent version.

Alternatively, uninstall the youtube-dl package and follow our manual installation instructions. In a pinch, this should do if you used apt-get before to install youtube-dl:

sudo apt-get remove -y youtube-dl
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r
@phihag phihag closed this Sep 23, 2014
@Geoniboy
Copy link
Author

@Geoniboy Geoniboy commented Sep 23, 2014

Awesome! Awesome! Awesome!!

Many many thanks!!

Just for my own knowledge/learning can you please step me through that set
of commands?

  1. apt-get remove... that one is self evident.
  2. wget is a command that does a web search? What is the -0?
    /usr/local/bin/youtube-dl is a destination on my computer where youtube-dl
    is now saved.
  3. chmod a+x /usr/local/bin/youtube-dl is a command to change the owner to
    everyone?
  4. hash -r.... I have no idea what that is for....

Thanks in advance!

john

On 23 September 2014 21:56, Philipp Hagemeister notifications@github.com
wrote:

YouTube changed their player format on July 25th, 2014, so you'll need at
least youtube-dl 2014.07.25 to download all YouTube videos.

Note that Linux Mint packages do not seem to get updated anymore. Since we
are not affiliated with Linux Mint, there is little we can do. Feel free to
report bugs to the Linux Mint packaging guys - all they have to do is
update the package to a somewhat recent version.

Alternatively, uninstall the youtube-dl package and follow our manual
installation instructions http://rg3.github.io/youtube-dl/download.html.
In a pinch, this should do if you used apt-get before to install youtube-dl:

sudo apt-get remove -y youtube-dl
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r


Reply to this email directly or view it on GitHub
#3818 (comment).

@naglis
Copy link
Collaborator

@naglis naglis commented Sep 23, 2014

  1. wget is not for web search, but rather for retrieving content from the internet. The -O (notice it's the letter oh, not the number zero) set's the filename of the retrieved file.
  2. chmod a+x makes the youtube-dl binary executable by all (owner, group and others).
  3. hash -r updates the table of executable utilities that bash remembers. It's needed because the path of youtube-dl might have changed. This also might be solved by starting a new bash process.
@Geoniboy
Copy link
Author

@Geoniboy Geoniboy commented Sep 24, 2014

Many many thanks for that info!!

Could you please explain more about "start a new bash process"?

Many thanks!

john

On 23 September 2014 23:13, Naglis Jonaitis notifications@github.com
wrote:

  1. wget is not for web search, but rather for retrieving content from
    the internet. The -O (notice it's the letter oh, not the number zero)
    set's the filename of the retrieved file.
  2. chmod a+x makes the youtube-dl binary executable by all (owner,
    group and others).
  3. hash -r updates the table of executable utilities that bash
    remembers. It's needed because the path of youtube-dl might have changed.
    This also might be solved by starting a new bash process.


Reply to this email directly or view it on GitHub
#3818 (comment).

@phihag
Copy link
Contributor

@phihag phihag commented Sep 24, 2014

You start a new bash process every time you start your shell emulator. Alternatively, you can run exec $SHELL in your current shell. That means that hash -r is only needed so that youtube-dl works instantly in your current shell. Closing and reopening the shell emulator works too, even if you don't run hash -r.

@Geoniboy
Copy link
Author

@Geoniboy Geoniboy commented Sep 24, 2014

Many thanks indeed!

On 24 September 2014 18:11, Philipp Hagemeister notifications@github.com
wrote:

You start a new bash process every time you start your shell emulator.
Alternatively, you can run exec $SHELL in your current shell. That means
that hash -r is only needed so that youtube-dl works instantly in your
current shell. Closing and reopening the shell emulator works too, even if
you don't run hash -r.


Reply to this email directly or view it on GitHub
#3818 (comment).

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
3 participants
You can’t perform that action at this time.