Get YouTube Video (improved)

Konqueror

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
Score 62.0%
Description:

Usage:
Right-click onto a link to a YouTube video or at the background of the YouTube site showing the video and choose action -> Download YouTube Video -> ...


About:
I made some modifications to the original YouTube Service Menu. It didn't work for me, so I looked at the source. I added a different method to guess the video_id and I added additional parameters to the query string to download the video.

With this Konqueror/KDE service menu it is possible to download a YouTube video
by right clicking a link to the video and choosing "Download YouTube Video" from the
actions menu.

For more details see:
http://bitbucket.org/panzi/youtube-service-menu/wiki/Home

See also the original version(s) of this script:
http://www.kde-apps.org/content/show.php?content=37509
http://www.kde-apps.org/content/show.php?content=41432

Note:
I don't use this script myself anymore because I now use this userscript (which I also made):
http://userscripts.org/scripts/show/98782

This means this script might not be maintained in the future.
Last changelog:

7 years ago

version 1.12a:
FIX: encoding problems

version 1.12:
NEW: chose format from menu with --format=ask.
NEW: --list option for Python script.
FIX: typos that made the script crash

version 1.11b:
FIX: Crash introduced in last version.

version 1.11a:
Updated greek translation. Thanks to Dimitrios Glentadakis.

version 1.11:
FIX: Extraction of video information. Now a different data extraction strategy
reading the flashvars of embed is used. Hopefully this is more stable.

version 1.10a:
ADD: Greek translation, thanks to Dimitrios Glentadakis (dglent)

version 1.10:
FIX: Extraction of video information. Now a different data extraction strategy
reading the flashvars of embed is used. Hopefully this is more stable.
DEP: New dependency to lxml: http://lxml.de/
NEW: Added video format 38: High Definition 3072p (mp4)

For more see:
http://bitbucket.org/panzi/youtube-service-menu/src/tip/Changelog

C

panzi

12 years ago

(or is it VLC version 0.86?)

Report

C

panzi

12 years ago

I did upload a new version and edit the Text! Where are all those edits? I better save the article text in a .txt on my HD the next time.

Report

Alien56

12 years ago

Has anyone installed this successfully? I've tried and when it begins to install it just stays at 0% and does nothing. Are there any prerequites to having this program?

Report

hoyt

12 years ago

The instructions for installing are written assuming that the downloaded file is a .tgz archive. It is actually a .bz2 archive, so the arguments to tar are wrong: the command should be $ tar xvjf.

I had no problem installing the servicemnu with that. The author should update this page.

Report

Alien56

12 years ago

I was able to extract the arcive but I was having a different problem. When I run ./setup.py it installs to 100% and says OK but when I enter my browser (firefox) and go to youtube and right click on a video I don't have any options to download it. I tried runing ./gui-setup.py and I get an error that says

kded: error mounting /org/freedektop/Hal/devices/volume_labe_su1020_001
Error no database available.

What does the "$" mean in the command you offered me? Also was your command to extract the archive to another directory? Theanks for you help so far. :)

Report

GameMage

12 years ago

This is for Konqueror, not Firefox or any other browser. If you want to download Videos off YouTube with Firefox try Video Ook or another Firefox extension/add-on.

Report

prodoehl

12 years ago

Hi,
would love to use your tool.
Installing ./setup.py works
but then I get a window with
intstalled files 0%
CTRL-C gives this output:



./gui-setup.py
kbuildsycoca running...
ICE default IO error handler doing an exit(), pid = 16106, errno = 0
kbuildsycoca running...
DCOP Cleaning up dead connections.
object not accessible
Traceback (most recent call last):
File "./setup.py", line 325, in ?
main()
File "./setup.py", line 322, in main
ui.install(toinstall)
File "./setup.py", line 69, in install
self.progress_init(count)
File "./setup.py", line 193, in progress_init
self._bar.showCancelButton(True)
File "./setup.py", line 53, in __call
raise Exception("DCOP call failed: %s.%s(%s)" % (self._dcopref,name, ', '.join(repr(arg) for arg in args)))
Exception: DCOP call failed: DCOPRef(kdialog-16183,ProgressDialog).showCancelButton(True)



What am I doing wrong?

Report

davinissim

12 years ago

I've tried to customize it for a different site (flix.co.il) and failed. Unfortunately, I can't write. can you help me with it?

Report

C

panzi

12 years ago

Well the best thing is to sniff with wireshark/ethereal to see what the flash player is downloading. Usually it's a HTTP GET request with some kind of (video-)id in the query-string. If the mime-type of the reply is video/x-flv you know for sure it's the right request. ;)

Report

SlimG

12 years ago

I've translated you app into Norwegian Bokmål and Norwegian Nynorsk:

http://ubuntu.slimg.org/nb_NO.pot
http://ubuntu.slimg.org/nn_NO.pot

Report

C

panzi

12 years ago

Sorry that I didn't see your posting earlier. This forum here is confusing (I often don't see all comments o_O, not even my own). Your links are broken, I guess It's my fault because I didn't notice it earlier. You can use this page to send me an email: http://kde-apps.org/usermanager/message.php?username=panzi

To all: Use the mentioned page to send me a email when you have done a translation or have found a serious bug. (Not a bug in the (gui-)setup.py, I know this thing is a not working shame.)

Report

C

panzi

12 years ago

I just noticed that my spam filter has marked some mail sent over this system as junk. I guess it's hard to get in contact with me.

Report

C

panzi

12 years ago

PS: You can also use jabber to IM me: [email protected]

Report

thstaerk

12 years ago

... but without ffmpeg I only get this flv format

Report

Moni

12 years ago

it works perfect for me

Report

shanepardue

12 years ago

Oh..only konqueror? Is there a way to get it to work in firefox?

Report

C

panzi

12 years ago

You have to rewrite this script in JavaScript. I don't know mozillas/firefoxs plugin API and it's so f*king easy to write such a plugin for konqueror, so I use konqueror only for browsing youtube. ;)

Report

gruszek

12 years ago

There alredy exists "VideoDownloader" for Firefox

Report

skibum

12 years ago

I installed your script and nothing happens when I right click and choose any of the options in the service menu. There are no error messges, what's wrong.

Report

C

panzi

12 years ago

PS: There was a error message. But it was not caught by my script, so it was printed to the shell (you have to run konqueror from a terminal to see such error messages). ;)

Report

C

panzi

12 years ago

Ok, I fixed it.

Report

shanepardue

12 years ago

how'd you fix it? I can't get it to work either.

Report

C

panzi

12 years ago

Do you use version 1.2c?
If yes, please start konqueror from a terminal, try to download a youtube video, and post the output on the shell (if there is any). If there isn't any output, tell me exactly what you are doing (which video you want to download and how).

Report

C

panzi

12 years ago

Well, thats interesting. Do you have python and kdialog installed? Type "kdialog --version" and "python -V" on your shell and tell me the output. Anyway, TODAY I don't have time to do more debugging. ;)

Report

degantyll

13 years ago

This was just what I was looking for, I must congratulate you and thank you for your efforts on this ;)

Report

7 years ago

version 1.12a:
FIX: encoding problems

version 1.12:
NEW: chose format from menu with --format=ask.
NEW: --list option for Python script.
FIX: typos that made the script crash

version 1.11b:
FIX: Crash introduced in last version.

version 1.11a:
Updated greek translation. Thanks to Dimitrios Glentadakis.

version 1.11:
FIX: Extraction of video information. Now a different data extraction strategy
reading the flashvars of embed is used. Hopefully this is more stable.

version 1.10a:
ADD: Greek translation, thanks to Dimitrios Glentadakis (dglent)

version 1.10:
FIX: Extraction of video information. Now a different data extraction strategy
reading the flashvars of embed is used. Hopefully this is more stable.
DEP: New dependency to lxml: http://lxml.de/
NEW: Added video format 38: High Definition 3072p (mp4)

For more see:
http://bitbucket.org/panzi/youtube-service-menu/src/tip/Changelog

12345678910
24
product-maker KDesk Aug 23 2012 9 excellent
product-maker kazuspara Apr 03 2012 3 bad
product-maker unikum111 Sep 21 2011 9 excellent
product-maker rangerGR Apr 28 2011 9 excellent
product-maker vitoubien Mar 06 2011 3 bad
product-maker supportfsf Jan 02 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
SapperStew
Feb 09 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
1.12a
updated May 04 2012
added Jun 24 2006
downloads 24h
0
page views 24h 8
System Tags addon