DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default Please suggest me a Firefox addon for downloading Youtube videos.

I installed youtube-dl but it refuses to work coz its out of date.

Please suggest me a Firefox addon for downloading Youtube videos.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #2   (View Single Post)  
Old 10th October 2018
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
Package Pilot
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 216
Default

Quote:
Originally Posted by bsd007 View Post
I installed youtube-dl but it refuses to work coz its out of date.

Please suggest me a Firefox addon for downloading Youtube videos.
I watch Youtube videos on Firefox on OpenBSD 6.3 and it works just fine for me.
__________________
hitest
Reply With Quote
  #3   (View Single Post)  
Old 10th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by hitest View Post
I watch Youtube videos on Firefox on OpenBSD 6.3 and it works just fine for me.
I too can play Youtube videos but this time I want to download them.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #4   (View Single Post)  
Old 10th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,354
Default

Youtube changes its API frequently. Because of the company's cadence of change, youtube-dl and similar applications are best used from a -current platform.
Reply With Quote
  #5   (View Single Post)  
Old 10th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by jggimi View Post
Youtube changes its API frequently. Because of the company's cadence of change, youtube-dl and similar applications are best used from a -current platform.
I don't want to move away from -release just for youtube-dl.
In the meantime I will keep looking for a Firefox addon.

Do you know know of any that actually works ?
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #6   (View Single Post)  
Old 10th October 2018
Paianni Paianni is offline
Port Guard
 
Join Date: Nov 2017
Posts: 12
Default

youtube-dl is best installed using the pip system:

Code:
pip install youtube_dl
pip is available in OpenBSD packages and youtube-dl is kept up-to-date on this system.
Reply With Quote
  #7   (View Single Post)  
Old 10th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by Paianni View Post
youtube-dl is best installed using the pip system:

Code:
pip install youtube_dl
pip is available in OpenBSD packages and youtube-dl is kept up-to-date on this system.
Don't take this in a wrong way but I never install anything outside of the default repos.

I am paranoid about security.

Thanks for the suggestion.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #8   (View Single Post)  
Old 10th October 2018
ibara's Avatar
ibara ibara is offline
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 631
Default

There's also multimedia/py-pafy.
Reply With Quote
  #9   (View Single Post)  
Old 10th October 2018
Paianni Paianni is offline
Port Guard
 
Join Date: Nov 2017
Posts: 12
Default

Quote:
Originally Posted by bsd007 View Post
Don't take this in a wrong way but I never install anything outside of the default repos.

I am paranoid about security.

Thanks for the suggestion.
You do realise that a browser addon/extension is also a piece of software installed outside the official repos?
Reply With Quote
Old 10th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by Paianni View Post
You do realise that a browser addon/extension is also a piece of software installed outside the official repos?
I get that but its not getting root privileges. When I install something as root the entire system is at risk.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Old 10th October 2018
Paianni Paianni is offline
Port Guard
 
Join Date: Nov 2017
Posts: 12
Default

Quote:
Originally Posted by bsd007 View Post
I get that but its not getting root privileges. When I install something as root the entire system is at risk.
Only the install program (in this case pip) requires root privileges for its operations, not the port being installed, and it's trusted enough to be in ports. youtube-dl does not run with root privileges unless you ask it to. OBSD's own mitigations will take care of the rest.

Last edited by Paianni; 10th October 2018 at 03:16 PM.
Reply With Quote
Old 10th October 2018
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 307
Default

Quote:
Originally Posted by bsd007 View Post
I installed youtube-dl but it refuses to work coz its out of date.
I stronly suggest you stick to youtube-dl. It's the best ever and nothing comes even close. It works for hundreds of other websites by the way not only YouTube.
But you need to keep it up to date since Google intentionally keeps changing the way YouTube works.
Get the latest script from the MASTER site and save it to your ~/bin directory. Every week or so run youtube-dl.py -U to keep it up to date.
__________________
May the source be with you!
Reply With Quote
Old 10th October 2018
fvgit's Avatar
fvgit fvgit is offline
Real Name: Tempvs fvgit
Package Pilot
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 149
Default

You can install the -current youtube-dl on a stable 6.3 system. I did so yesterday when youtube-dl stopped working for me.

Please note: installing -current packages on a release system is generally not a good idea.
You're mixing different code bases which can cause all sorts of problems and conflicts. That being said, for sth. like youtube-dl it seems to work, and we're only a few weeks away from 6.4 so if you want to bridge that time frame do a

Code:
pkg_add -v -D snap youtube-dl
If you're going to do a fresh install of 6.4 in a few weeks anyway it won't matter. If you're going to upgrade from 6.3 to 6.4 instead it's probably best to uninstall the new youtube-dl and any new dependencies before the upgrade process to avoid any possible problems.
Reply With Quote
Old 10th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by fvgit View Post
If you're going to do a fresh install of 6.4 in a few weeks anyway it won't matter.
Yes, I am going to upgrade to 6.4 as soon as its available so I guess I will wait.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Old 11th October 2018
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 307
Default

Quote:
Originally Posted by bsd007 View Post
Yes, I am going to upgrade to 6.4 as soon as its available so I guess I will wait.
You must've overlooked my post.
There's no need to wait. Plus, 2 or 3 months after you upgrade, you'll be facing the exact same situation with YouTube as you are now anyway.
__________________
May the source be with you!
Reply With Quote
Old 11th October 2018
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 175
Default

Youtube has constantly changed things since it was taken over by Google, it's been a problem at times on my other forums where we use it to upload our efforts playing musical instruments for others to see (or laugh at).
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
Old 11th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by Beastie View Post
You must've overlooked my post.
There's no need to wait. Plus, 2 or 3 months after you upgrade, you'll be facing the exact same situation with YouTube as you are now anyway.
I have downloaded youtube-dl to /home/username/bin then did

Code:
chmod a+rx youtube-dl
but now when I try to download a video its not working

Code:
$ youtube-dl https://www.youtube.com/watch?v=qb3qUW4EyHc                                                                                                                                 
home$
^^No output.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Old 11th October 2018
Paianni Paianni is offline
Port Guard
 
Join Date: Nov 2017
Posts: 12
Default

Perhaps it's because the script is in ~/bin and not in ~/.
Reply With Quote
Old 11th October 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by Paianni View Post
Perhaps it's because the script is in ~/bin and not in ~/.
When I type

yout then TAB its auto completing.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Old 11th October 2018
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 825
Default

You'll also need to quote the special characters in the URL to protect them from the shell, so try something like this (once path issues are resolved):

% youtube-dl 'https://www.youtube.com/watch?v=qb3qUW4EyHc'

(Note the single quotes in red.)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No sound problem on Youtube with OpenBSD 6.2/6.3 and Firefox (temporary solution) new2BSDlol OpenBSD Packages and Ports 3 12th July 2018 10:11 PM
Firefox in OpenBSD 6.0 supports YouTube videos bsd-keith OpenBSD Packages and Ports 1 3rd September 2016 03:01 PM
how to watch youtube videos on OpenBSD? lucas34 OpenBSD Packages and Ports 28 11th March 2014 06:34 PM
Router blocking downloading/ limit downloading kelly General software and network 2 24th August 2011 08:13 PM
firefox, linux-flash, nspluginwrapper, and youtube? neurosis FreeBSD Ports and Packages 16 15th August 2008 06:46 AM


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick