
YouTube Service
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
Attention: The script is not working anymore, because the service of the site youtubia.com is not functioning as well.
Youtube/Google is constantly trying to make the download of videos more difficult, so a tool like this script has to play catch up, and that's not pretty. Don't download unless you want to solve the problem.
With this service you can search for YouTube clips and add them to your playlist.
It seems you need at least amarok 2.0.2 for this script to do its job.
If someone has a patch to make it work with pre 2.0.2 versions, that would be great, too.
11 years ago
- included some changes made by panzi
- and with these changes it runs on 2.1(svn), too!
11 years ago
- included some changes made by panzi
- and with these changes it runs on 2.1(svn), too!
jackuess
11 years ago
Here's the diff (main.js.diff):
185c185
< var url = new QUrl("http://www.youtubia.com/flv_returner.php?video_id="+youtube_id);
---
> var url = new QUrl("http://www.3outube.com/mp4/?v="+youtube_id);
Report
Takahani
11 years ago
Anyway, your script is great !
With the upcoming video-clip applet in amarok 2.2 (http://takahani.wordpress.com/2009/06/04/video-clip-applet/) it would even better, b/c the video can be played inside the context view !
So i hope you'll find a way to fixed the link ...
If you don't know how to get manually the link, it's done there :
http://websvn.kde.org/trunk/extragear/multimedia/amarok/src/context/engines/videoclip/VideoclipEngine.cpp?revision=982591&view=markup
-Simon (Takahani)
Report
laltinell
11 years ago
I'm new at arch so it just might be me doing something stupid! I do think it's a problem with the codec. Do I need some special-codec? It works fine in Firefox and Konqueror, but I guess that just shows that mplayer is able to play the file.. Any help would be appreciated!
I'm using Amarok 2.0.2 on ArchLinux.
Report
laltinell
11 years ago
QString::arg: Argument missing: Amarok - No track playing., 0:00
Report
Kirilo
11 years ago
Unfortunately, it doesn't work in WinXP for me: In the stable release of Amarok it crashes the application at startup (I have to delete it manually), in 2.1svn search etc. work, but when I play I get just noise instead of sound.
It looks like this is a problem of Directshow (for that one not forget one is in Win ;-)), similar to the known problem with mp3 playback.
Does anyone have a solution/patch for it?
Report
tobgle
11 years ago
Report
nhnFreespirit
11 years ago
Nice work! :-)
Report
tobgle
11 years ago
Report
panzi
11 years ago
Here you can download my version:
http://twoday.tuwien.ac.at/pub/files/youtube_service.amarokscript.tar
Report
tobgle
11 years ago
- When I started to write the script I wanted to do what you did, but I had to realize that you'd be always at the merci of youtube changing its code to prevent just that. This would mean, that an uphill battle would begin.
- With this solution you can't get a 'permalink' to the video, so that the link in your playlist works 'forever'. I realize that this problem isn't totally solved with youtubia either. But at least the problem is shifted to them. :-)
- To download directly from youtube you need at least one more download PER music clip to extract the correct id etc. pp. This is a LOT more overhead and reduces the script performance to a great deal.
- The solution over youtubia is simple and seems to work quite good. I love simplicity.
Report
Takahani
11 years ago
Report
tobgle
11 years ago
Report
tobgle
11 years ago
Report
mintlars
11 years ago
Report
mintlars
11 years ago
However, as searching does not seem to work, I can't test it any further now.
Report
tobgle
11 years ago
Thanks for the information about renaming the file, I just wondered how to do that.
Report
mintlars
11 years ago
Report
tobgle
11 years ago
Also, to search you need to click on the expand button of one of the four 'order by' categories. This behaviour is preset by amarok, so I can't change that.
Report
mintlars
11 years ago
Report
tobgle
11 years ago
I don't see myself doing workarounds for 2.0.1 bugs, maybe someone with 2.0.1 can do that and send me a patch. :)
Hope you don't blame that on me.
Report
tobgle
11 years ago
Report