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

11 years ago

Urgh. It does. Why the hell does it contain that? Hmpf. Have to check that out.

Report

nisavid

11 years ago

Will see KDE4 support in the near future? Please? Especially since flash still doesn't work in Konqueror 4.0.2.

Report

C

panzi

11 years ago

When I will have KDE4 I will port it to KDE4. But is porting really necessary? I mean, is there really something different about how konqueror handles .desktop files in KDE4? I thought thats an freedesktop.org standard (well, with KDE extensions). I will install KDE4.1 when it's released. I don't install 4.0.x.

Flash is not working for you? It works for me (Firefox and Konqueror). I use Fedora 8, 32bit installation, with the adobe-linux-i386 repository, see:
http://fedorasolved.org/browser-solutions/flash/?searchterm=flash

Report

KevinKofler

11 years ago

The KDE 4 servicemenu format is slightly different and they're in a different directory.

Report

C

panzi

11 years ago

I see. I will adapt it when I will use KDE 4.

Report

uaelee

11 years ago

Why u guys are talking a language I don’t understand?!
Where should I write/install this script in order to get “download video” in my right click options?

Report

C

panzi

11 years ago

See the install script:
install get_yt_video.py /usr/bin/
install get_yt_video.desktop /usr/share/apps/konqueror/servicemenus/
mkdir -p /usr/share/get_yt_video/
find l10n -mindepth 1 -maxdepth 1 -type d -exec cp -r {} /usr/share/get_yt_video/ \;

If your KDE is not installed under the /usr prefix you have to adapt those paths.

Report

Picander

11 years ago

I had to update the .py to get this working again.

just add:

if m is None:
m = re.search("watch_fullscreen\\?fs=1&(?P<vid_query>.*?)&title=(?P<name>.*)';\n", data)


right after:

m = re.search("watch_fullscreen\\?(?P<vid_query>.*?)&fs=1&title=(?P<name>.*)';\n", data)

Report

C

panzi

11 years ago

I just removed the &fs=1 and it seems to work perfectly. But thanks. :)

Report

JmOnKeY

11 years ago

All worked really well for me THANKYOU,
one thing I had to do for KDE3 on Opensuse 10.3:
Using the Shell install method I had to change /usr/share/apps/konquerer to /opt/kde3/share/apps/konquerer obviously because kde3 is in /opt not /usr/share etc. I hear that kde 4 has gone back to the standard /usr/share etc in Opensuse 10.3.

worked so well, cheers

Report

appleman

11 years ago

Hi,

Instead of hard-wired "/usr" you can use >kde-config --prefix< surrounded with backticks which should return the right prefix path.

Replace the specific line 4 with these one:

install get_yt_video.desktop `kde-config --prefix`/share/apps/konqueror/servicemenus/

Report

kmare

11 years ago

i get this error when trying to download a video from youtube (yes, i'm logged in).
'NoneType' object has no attribute 'group'

any help would be greatly appreciated.

Report

C

panzi

11 years ago

Sons like one of my regular expressions are no longer working. :/
Is the line number where this happens mentioned?

Report

C

panzi

12 years ago

I created deb package (youtube-servicemenu_1.3e-1_i386.deb) with Kubuntu 7.10 with the command:
sudo checkinstall ./install.sh

Report

Gogast

12 years ago

I can't find this menu anywhere...

Report

m1k0

12 years ago

How to change parameters for encoding?
I want encode to mobile phone format - > .3gpp

Report

GameMage

12 years ago

This package's architecture really should be set as all. I have to force install it on my system (amd64).

Report

C

panzi

12 years ago

Sorry. Forgot to set the architecture. Fixed now.

Report

GameMage

12 years ago

Thanks!

Report

stefan99

12 years ago

Command line install worked.

But getting
http://www.youtube.com/watch?v=4XpnKHJAok8&v3
http://www.youtube.com/watch?v=4XpnKHJAok8
failed.
Popup "No video information found on the video's Page" but reporting link does not work.

Kind regards

Report

C

panzi

12 years ago

It works for me. Actually I downloaded the same video days/weeks ago. ;)

Maybe you have to be logged in to view this video? Can't think why. But try to login into youtube in konqueror. My script uses konquerors cookies (kcookiechar). ;)

Report

jel

12 years ago

Download links are broken

Report

premierSullivan

12 years ago

There seems to be no method to download .deb files in kubuntu using konqueror. Has anyone else had this issue?

Report

Pagan

12 years ago

I got this to install and work, but I notice a couple of things. First, Kaffeine doesn't play back .flv files very well (very jumpy), but Mplayer plays nicely. Second, mencoder only converted part of the .flv to .mpg and ffmpeg will only output a zero-length file and a long list of errors.

Nice, but still needs work.

Joe

Report

C

panzi

12 years ago

Well, the thing is I don't use the conversion capabilities. They where built into the original script so I didn't remove them. I never tested them, because I don't need them. Mplayer plays most .flv videos, but for some reason not all. ffplay plays all, but it's a very limited player (only a ffmpeg-player-test actually). Since 0.85 VLC plays .flv, too. But same as mplayer not all.

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 pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.12a
updated May 04 2012
added Jun 24 2006
downloads 24h
0
pageviews 24h 6
System Tags addon