
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
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.
8 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
8 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
panzi
13 years ago
Report
nisavid
13 years ago
Report
panzi
13 years ago
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
13 years ago
Report
panzi
13 years ago
Report
uaelee
13 years ago
Where should I write/install this script in order to get “download video” in my right click options?
Report
panzi
13 years ago
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
13 years ago
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
panzi
13 years ago
Report
JmOnKeY
13 years ago
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
13 years ago
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
13 years ago
'NoneType' object has no attribute 'group'
any help would be greatly appreciated.
Report
panzi
13 years ago
Is the line number where this happens mentioned?
Report
panzi
13 years ago
sudo checkinstall ./install.sh
Report
Gogast
13 years ago
Report
m1k0
13 years ago
I want encode to mobile phone format - > .3gpp
Report
GameMage
13 years ago
Report
panzi
13 years ago
Report
GameMage
13 years ago
Report
stefan99
13 years ago
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
panzi
13 years 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
13 years ago
Report
premierSullivan
13 years ago
Report
Pagan
14 years ago
Nice, but still needs work.
Joe
Report
panzi
14 years ago
Report