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

KevinKofler

9 years ago

It looks like YouTube changed something, now the script always triggers HTTP 404 File Not Found errors no matter what format is picked. FYI, the authors of youtube-dl figured out the changes, so you can look at what they changed (but unfortunately their changeset contains some refactoring, so it isn't immediately obvious what the relevant change is).

Report

C

panzi

8 years ago

Ah. I didn't use my script in a long time. I updated it so it should work again. However, I now require python-lxml as a dependency.

PS: Is there a way to be notified per email about comments?

Report

KevinKofler

9 years ago

Can you please add support for downloading the WebM files where they exist?

Report

C

panzi

9 years ago

The menus defined by .desktop files are static, so I can't add menu item that is only shown in the case a webm file exists. I added "support" (its now a known format) for downloading webm files to the python script in the hg repo, but you could always use the script to download webm files when you knew the right fmt code and pass it to the script. Maybe I'll add a blind option for webm for the next release, but I think the menu gets too crowded. Konqueror isn't Firefox, and you notice it when it comes to "extensions".

Report

portnoyboy

9 years ago

Hi, i downloaded the source, extracted, ran "sudo ./install-kde4.sh", and i got these errors:

Quote:install: cannot stat `get_yt_video-kde4.py': No such file or directory

install: cannot stat `get_yt_video-kde4.desktop': No such file or directory

Here is the file list in youtube-servicemenu-1.8 directory:
Changelog
get_yt_video.desktop
get_yt_video-old.desktop
get_yt_video.py
install-kde3.sh
install-kde4.sh
l10n
LICENSE
mkrpm.py
mktar.sh
README

Should i edit install-kde4.sh to use get_yt_video.desktop and get_yt_video.py instead?

I'm using PCLinuxOS 2010 (KDE4)

Thanks!

Report

C

panzi

9 years ago

Oh, yeah. I didn't really maintain these scripts. Here is an updated version of the install script:
http://bitbucket.org/panzi/youtube-service-menu/raw/f5e7d572ddf3/install-kde4.sh

Or informally, for KDE4 the following line in get_yt_viceo.desktop:
ServiceTypes=text/html

has to be replaced with these two lines:
Type=Service
ServiceTypes=KonqPopupMenu/Plugin,text/html

The get_yt_video.py script now works with KDE3 and KDE4 without changes.

I *do* maintain the mkrpm.py script, though.

Report

Robbi1987

9 years ago

Is it compatible with kde 4.4?
Can you biuld a .deb package?

Report

C

panzi

9 years ago

Quote:Is it compatible with kde 4.4?
Yes, I use it with KDE 4.4.

[quote]Can you biuld a .deb package?/quote]
No, I don't use a Debian based distribution. I use Fedora.

Report

Standish

9 years ago

Hi everyone,

I'm French, so I can confirm that your translation for our language of this service menu is correct.
Besides this, I want to say that under openSuSE 11.1 and KDE 4.3, it's necessary to replace FILE_CLIENT='kfmclient' by FILE_CLIENT='kfmclient', in order to avoid a "Copy command unknown" error.
Thanks for this pretty useful application, please excuse my bad english and have a good day.

Report

kmsz

10 years ago

In install-kde3.sh, I changed the path from /usr/* to /usr/local/* because it is the local admin who installs additional software and not the operating system vendor. It _makes_ a difference, especially when checking the system for integrity.

Everything should work fine without difference because /usr/local/* is usually included in the path of a standard installation.

I like your service menu tool very much, you can even download by clicking on links, not just from the page.

Mark

Report

C

panzi

10 years ago

I added get_yt_video-kde4.desktop which is made by Kevin Kofler (a Fedora packager). On Fedora you have to copy it to:
/usr/share/kde4/services/ServiceMenus
or on some other distributions to:
/usr/share/services/ServiceMenus

I didn't test this, because I still use KDE 3.5 and will only switch to KDE4 when KDE 4.2 is released.

Report

nowardev

10 years ago

kubuntu 8.04

works fine

thank you

Report

gogui

10 years ago

Hey everybody,

first I'm sorry for my langage but I'm french, then I'm using mandriva 2007, with KDE3.5 and konqueror 3.5.9.

I tried to install "service menu" with automatic installation... it return the following error (translated from french...) :
install : can't find get_yt_video.py : No files or folder type
(get_yt_video.py appaers in the *tar.bz2 folder)

Then I tried the manual installation and it return the following error at the last line :
missing parametre for "-exec"

I've the link in the constextual menu to download a youtube video but whan i clic on *.flv it returns the follownog error : can't find get_yt_video.py

This tools is very important to download a video for my job... PLease Help me !!!

Report

yuvallanger

10 years ago

Do you plan on adding playlist download like of the following url?
http://www.youtube.com/view_play_list?p=189C0DCE90CB6D81

Thank you,
Yuval Langer.

Report

skaar

11 years ago

as per reg.
i use it, downloading stuff for my ma, i'd use flv's, but i can't figure out how to make windows play them without using a tool that she'd have trouble with, and mpegs play fine in WiMP.

Report

C

panzi

11 years ago

And MP4? Can WMP play MP4? It is standard (I think). The MP4 version is better quality anyway. Quicktime plays it and I think there is Qhicktime for Windows. However, I would use VLC. It plays next to everything and is not hard to use either. Under Windows and Linux/Unix VLCs GUI looks ugly, though. (Under OS X it has another much better GUI.)

Report

H00K

11 years ago

Is it possible to use KGet for downloading and then open it in Codeine?

Downloading with KGet gives you the advantage to filter the download automatically to a folder (e.g. all videos into the video folder).

Report

C

panzi

11 years ago

Perhaps, but I don't see a way to send cookies to kget. Maybe it does use kcookiejar anyway and so videos for which you would need to be logged in would work.
But I don't feel like switching to kget, because I don't use it. :P
You can write a patch, though. I would include it as an option.

Report

H00K

11 years ago

Fair enough. I just thought since the initial version uses KGet that it wouldn't be hard to do:
http://www.kde-apps.org/content/show.php?content=37509

What about Codeine od SMPlayer support as a player?

P.S. Dragon player (the KDE4 version of Codeine) is/will be the default player in KDE4.

Report

C

panzi

11 years ago

Well, I'm thinking about letting the user choose the video player. Is there any way to access the "open with..." dialog in a kdialog manner? Other than that I simply could use "kfmclient exec $video" which would open KDEs default program for that filetype (which can be configured in the control center).

Report

H00K

11 years ago

The idea with the user's default video player is pretty good IMHO.

Report

max02111

11 years ago

YouTubeRobot.com today announces YouTube Robot 2.0, a tool that enables you to download video from YouTube.com onto your PC, convert it to various formats to watch it when you are on the road on mobile devices like mobile phone, iPod, iPhone, Pocket PC, PSP, or Zune.

YouTube Robot allows you to search for videos using keywords or browse video by category, author, channel, language, tags, etc. When you find something noteworthy, you can preview the video right in YouTube Robot and then download it onto the hard disk drive. The speed, at which you will be downloading, is very high: up to 5 times faster than other software when you download a single file and up to 4 times faster when you download multiple files at a time.

Manual download is not the only option with YouTube Robot. You may as well schedule the download and conversion tasks to be executed automatically, even when you are not around. Downloading is followed by conversion to the format of your choice and uploading videos to a mobile device (if needed). For example, you can plug in iPod, select the video, go to bed, and when you wake up next morning, your iPod will be ready to play new YouTube videos.

Product page: http://www.youtuberobot.com
Direct download link: http://www.youtuberobot.com/download/utuberobot.exe
Company web-site: http://www.youtuberobot.com
E-mail: support@youtuberobot.com

Report

C

panzi

11 years ago

Well, but your software costs money and is Windows only. And it's a different use case then this script. This script you use in combination with the YouTube website and not as a standalone app.

People who are using my script are most likely NOT using Windows, so your spam here is ineffective.

Report

KevinKofler

11 years ago

The Fedora package is broken, it contains a /bin/mkdir binary which conflicts with the system one.

Report

C

panzi

11 years ago

I fixed the problems (I hope).

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 Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
1.12a
updated May 04 2012
added Jun 24 2006
downloads 24h
1
page views 24h 9
System Tags addon