YouTube Service

Amarok 2.x Scripts

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

0
Score 57%
Description:

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.
Last changelog:

9 years ago

- included some changes made by panzi
- and with these changes it runs on 2.1(svn), too!

jackuess

8 years ago

I replaced the Youtube download service and got this excelent script working again.

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

9 years ago

Youtubia is broken, you should find another website or get the video link manually

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

9 years ago

I have successfully installed the plugin and searching works. I can add songs to my playlist but there it ends. Amarok wont play the files. If I press play like 3 times a message shows up telling me "Too many errors encountered in playlist. Playback stopped." It does however show the startframe of the song/video in the playlist. The length of the song says 0:00, but it's the same on the screenshot so..

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

9 years ago

If i try to start Amarok trough the terminal i get this line over and over again.

QString::arg: Argument missing: Amarok - No track playing., 0:00

Report

Kirilo

9 years ago

Thank you very much for this fine script, I like it very much!

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

C

tobgle

9 years ago

Thanks for your comment. I don't test on Windows though.

Report

nhnFreespirit

9 years ago

Works fine with Amarok 2.1 from trunk.

Nice work! :-)

Report

C

tobgle

9 years ago

Thanks for reporting!

Report

panzi

9 years ago

It didn't work for me (using 2.1-SVN) so I worked on it. It now doesn't need youtuba anymore. However, for some reason you have to click [+] twice (or three times, but one of the times its [-]).

Here you can download my version:
http://twoday.tuwien.ac.at/pub/files/youtube_service.amarokscript.tar

Report

C

tobgle

9 years ago

Thanks for your work. I merged your changes and released version 0.1.1. Maybe it works with 2.1 now, but that has still to be tested. I didn't include your code to get rid of youtubia because of the following reasons:
- 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

9 years ago

Hi ! Very good idea, I was looking for something like this. But it soen't wok with 2.1 (svn version), even after the expansion stuff have you tried with a recent version ?

Report

C

tobgle

9 years ago

No, I didn't try that yet. Thanks for reporting.

Report

C

tobgle

9 years ago

As I have problems to compile amarok svn on mandriva cooker and 2.1 is still considered alpha I can't devote more time to this.

Report

mintlars

9 years ago

Wow, that's a really nice idea. I'll be sure to try this one out. Thanks.

Report

mintlars

9 years ago

Hmm...searching doesn't seem to work on my installation. Also, it would be nice if you renamed the archive so that one can install it with the amarok script tool. In other words, it should have the amarokscript.tar.bz2 file ending. It would make it possible even for noobs to install it.
However, as searching does not seem to work, I can't test it any further now.

Report

C

tobgle

9 years ago

Which version of amarok are you using, it's 2.0.2 here.
Thanks for the information about renaming the file, I just wondered how to do that.

Report

mintlars

9 years ago

No, I'm currently using 2.0.1. Not backwards compatible?

Report

C

tobgle

9 years ago

works with 2.0.1, but there are a few bugs in 2.0.1, which can cause this script to crash. Updating to 2.0.2 is highly recommended.
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

C

tobgle

9 years ago

You can also directly drag'n drop one of the search orders to your playlist. Can give great results if you searched for an album name for example.

Report

mintlars

9 years ago

Clicked the expanders, but still no search results. It doesn't seem to have crashed either though.

Report

C

tobgle

9 years ago

well, the only explanation at the moment is that 2.0.1 sucks. I started writing this script with 2.0.1 and half of my problems were solved as soon as there was an mandriva update to 2.0.2.
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

9 years ago

- included some changes made by panzi
- and with these changes it runs on 2.1(svn), too!

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.1.1
updated Mar 14 2009
added Mar 13 2009
downloads today
0
page views today 3
System Tags addon