PDA

View Full Version : [ RELEASE ] LastTube (last.fm + YouTube) Video Plugin


rwparris2
2008-07-02, 04:11
download it here: http://code.google.com/p/rwparris2-xbmc-plugins/downloads/list or using the xbmc addons installer.

It is based off tv.timbormans.com (http://tv.timboarmans.com) , who was nice enough to open up access for us XBMC users :)

It will grab your Last.FM username's top artists (if you have one), allow you to search for music by a Last.FM username's top artists, by similar artists, and by tag... basically just like last.fm, except instead of playing back music files it plays back youtube videos.

Please note:: I just changed a few things around, and I'm not at home to test it, but it *should* still work.

Please let me know any problems you may be having... there are bound to be some, as this is my first ever script.

If you have any feature requests leave them here.

rwparris2
2008-07-02, 07:24
if anyone tried this and it didn't work (11 downloads?) I uploaded a newer version that I have confirmed to be at least semi functional.

rwparris2
2008-07-02, 07:26
whoops, the new link is:

http://www.box.net/shared/gxvfb0kgkg

tikkiew
2008-07-02, 17:20
nice plugin ,only on my top artist there are comedians.
is there a way to skip those automatically?

rwparris2
2008-07-02, 18:09
nice plugin ,only on my top artist there are comedians.
is there a way to skip those automatically?

Not automatically, you can manually skip it by pressing next, just like anyother video.

Jeroen
2008-07-02, 19:26
Being a LastFM junkie this is a really cool plugin for me :)
Have you confirmed this working on other platforms? Testing on Win32 for me only the top artists feature works. But xbmc crashes a lot while using it. But that very might well be an xbmc win32 problem rather than your plugin. Will test it on the xbox later and report back.
Thanks for creating this :)

nicoli_k
2008-07-02, 19:45
sorry to sound like a n00b, but where am I supposed to put this? I've tried a Video Plugin, Music Plugin, and under Scripts but can't get it to work. I'm guessing it's a Video Plugin since it's pulling up youtube videos, but it also covers music and you said it was your first script and it failed to work under Video Plugin.

I've done all 3 and can't get it to work for me. I see the screen where it has my top artists, search by user, search similar, and search tag, but no matter what I enter it just reverts back to that screen.

I just signed up for Lastfm like one or two days ago and then this comes along. I'm excited about it. Thanks for your work.

rwparris2
2008-07-02, 20:09
@Jeroen it crashes a lot under win xbmc for me too...also it randomly stops queueing videos at some point. Not sure why. I was actually about to start ripping my hair out trying to find the bugs until I realized I couldn't replicate the behavior on the xbox, and just chalked it up to the win32 environment. Tags and Similar Artists do work for me though (at least as well as top artists). I haven't tested osx or linux ports. Anyone up for it?

@tikkiew: i changed my mind. the next version will have an editable black list so that you can list all the comedians and/or artists you don't won't to show up. you will actually have to add them manually in a text editor before uploading to your xbox, but this should work for you.

@Nicoli_K: yes it goes under video plugins. Make sure you use the second link I provided (http://www.box.net/shared/gxvfb0kgkg) It's on my xbox right now and is working fine... Does it at least show you the 3-4 options when you run the plugin? It should be your last.fm username, search by username, search by artist, and search by tag. If you're not getting any of that, please tell me what version xbmc you're using, whether you're on xbox or what and I'll try to figure it out.

I should mention there is no "error handling" for when no results are found, it just kind of sits there and does nothing. I'll fix this eventually.


So if you're doing top artists Nicoli_k it is possible that there just isn't enough data on your profile for this to work yet. Try the username rwparris2 or por, and see if that works.

This holds true for tags and artists too. Sometimes, there just isn't enough content to work. Also, the site can be really picky (e.g. "blacks keys" returns nothing but "the black keys" does)

Bram77
2008-07-02, 21:22
Fantastic plugin! I love the ease of use. Thanks a lot!

The Youtube plugin has a feature that uses higher quality video if possible. Is this feature included in this plugin? Clips I saw until now are very low quality. Of course this could be coincidence.

Jeroen
2008-07-02, 22:20
Ok, been trying it out on the xbox and it works just fine. Occassionally when skipping tracks it stops and I have to restart it but no biggie.
It's like having MTV with actual good music ;) Really nice work

rwparris2
2008-07-02, 22:32
@Jeoren: Skipping tracks would cause it to do that for me too, but only if I did it really fast. If I give it at least 10 secs it seems to work... but maybe that was a coincidence. I didn't test very thoroughly on that.

@Bramm77, I'll look into it the youtube plugin. A lot of clips are very low quality & very rarely a better one will across, but such is the nature of youtube.

Voinage
2008-07-02, 23:13
Nicely Done, Cheers.

If you want the higher quality videos from youtube, change the linkage in my youtube code to:-
linkage="http://www.youtube.com/get_video?video_id="+code+"&t="+url+"&fmt=18"

If the Hi-def version is available , then you will get it.

So instead of the Flv ----> Nice Mp4.

Vin.

rwparris2
2008-07-03, 00:41
I moved the download to http://code.google.com/p/rwparris2-xbmc-plugins/downloads/list

Revision 3 has the higher-quality videos (thanks Voinage!). It isn't really tested, so let me know how it works.

tikkiew
2008-07-03, 00:51
i tested it seems good to me.
:nod:
i was thinking if there is not a way to save the
tags, other users and similar artist?

rwparris2
2008-07-03, 02:46
i was thinking if there is not a way to save the
tags, other users and similar artist?

I'm sure there is... I'll just have to figure it out. It's on my to-do list.
Thanks for the feedback.

nicoli_k
2008-07-03, 07:42
This latest version is working for me for the most part. I still can't find my top artists, but that could be because I joined fairly recently and haven't played around with lastfm long enough to get enough top artists. I'm able to do a search of rwparris2 and pull up videos, the similar artists and tag searches both work as well. awesome plug-in!

rwparris2
2008-07-03, 08:26
@nicoli_k: http://www.last.fm/listen/user/nicoli_k/personal "not enough content to play this station"

It'll get there eventually :)

nicoli_k
2008-07-03, 09:14
do i need to be a subscriber to listen to my own station using the plugin or is it able to pull songs off of my playlist?

rwparris2
2008-07-03, 17:45
do i need to be a subscriber to listen to my own station using the plugin or is it able to pull songs off of my playlist?

I'm not sure what you mean your 'own station'. If you mean this: http://www.last.fm/listen/user/nicoli_k/playlist then, no, the plugin doesn't work like that. For that to work, there would have to be videos for each of those playlist items on youtube already.

What the plugin does is look at your overall top artists, finds youtube videos to match that, and plays them. Take a look here: http://www.last.fm/user/nicoli_k/charts . That is where the data is coming from. It'll probably take a week or so for that information to get filled in.

For an idea of what it will eventually be, look at http://tv.timbormans.com/user/nicoli_k/ . That is the current version of LastTube and it apparently picks videos much more liberally than the one I'm using.

I hope that helps explain things. If you want to request anything else or ask any more questions feel free :)

PS - XBMC has built-in last.fm functionality, so you can listen to your playlist there. it's music>last.fm>your profle. It just won't have any videos.

rwparris2
2008-07-04, 02:55
Has anyone tested this on xbmc for linux or xbmc for osx yet? I know there are problems with this plugin on the win32 version and am curious if those extend to other platforms...

rwparris2
2008-07-16, 00:39
LastTube is down for right now. It should come back later. I'll keep you guys informed.

TheBurner
2008-07-29, 20:14
What an awesome plugin. Do you have any new revisions planned? Im making my profile now for last.fm . I like your taste in music too. Sonicflood etc.. are great.

rwparris2
2008-07-29, 21:16
No revisions are planned at the moment. What else would you suggest?

rwparris2
2008-07-29, 21:18
@TheBurner: please note that after you make your last.fm profile, it may take a week or more of scrobbling music (see the last.fm site if you don't know what scrobbling is) before the "your top artists" part will work.

Nuka1195
2008-07-29, 21:20
scrobbling, that sounds made up

rwparris2
2008-07-30, 00:26
scrobbling, that sounds made up
Gah!, you caught me... (http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=scrobbling&spell=1)

ralel
2008-08-06, 21:45
I'm trying to use it and keep telling me 'Can't connect to site' (I'm using spanish version of xbmc so it's an aproximation). Is really down the service? or I need to configure something to make it works? Thanks

juanpa74
2009-01-23, 22:21
This is not working for me. It does nothing. Not on my list. Not using an username or a band name.
Is there something I need to fix?
Thanks.

rwparris2
2009-01-23, 22:23
I only realized it was broken very recently, and was working on it earlier today. Just be patient please.

Edit : I'm at work and youtube is blocked, if anyone could grab it from the official addons' svn and try it and let me know.

juanpa74
2009-01-24, 19:32
How do you get it from official addons svn? Any links?
Thanks

I only realized it was broken very recently, and was working on it earlier today. Just be patient please.

Edit : I'm at work and youtube is blocked, if anyone could grab it from the official addons' svn and try it and let me know.

rwparris2
2009-01-24, 19:38
http://xbmc.org/forum/showthread.php?t=29911&page=6#1

It's working perfectly on my xbox. Haven't tested linux or windows yet.

juanpa74
2009-01-26, 00:15
Ok. I updated on the XBOX and now it is working fine.
Thanks for your help.

bnb
2009-01-28, 09:52
This is the coolest thing ever. I was thinking the other day that they needed a website that worked like Pandora.com, but with videos.

Thanks for all your hard work.

I seem to have one issue. It will only play one video at a time. I have to keep clicking on my account name to play another video. I am using XBMC for Windows.

Thanks again.

whufclee
2009-02-13, 10:13
This has been running fine for me since installing, however... If a song comes on that you want to skip it will skip to the next song no problem but will quit the program after playing that song. Great plugin by the way - oh and I'm using the latest XBMC on xbox.

flacnvinyl
2009-02-15, 00:59
I have a minor problem... If I search for a user, and play that stream, it works great. However, when selecting myself from the plugin, it doesn't do it. Very weird. I fail to see why I can't access my own top videos from the plugin, but if i search for my user, it works.

Any suggestions? And yes, Lastfm is configured correctly in xbmc (xbox) and is scrobling my music.

SupaDawg
2009-02-16, 07:36
This plugin is the greatest mashup i've seen since PandoraFM. extremely well done.

Oddly, xbmc refuses to let me listen to last.fm radio stations, but this script works just fine.

Question, is this script capable of scrobbling what i'm listening too? i haven't seen anything being posted to my profile, but i figured i'd ask.

Cricket
2009-02-21, 12:33
Hey, great plugin, almost my favorite.
I say "almost" because on Linux, it stream only one song, and always the same (Bjork, It's Oh So Quiet). When the song is finished, it returns on the video plugin selection menu.
The end of the log, where the plugin stop playing the clip:
GNU nano 2.0.7 File: manu-xbmc.log

20:52:07 T:2879114128 M:633548800 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
20:52:07 T:2879114128 M:633548800 NOTICE: thread end: video_thread
20:52:07 T:2879114128 M:633548800 DEBUG: staticThread, deleting thread graphic context
20:52:07 T:2879114128 M:633548800 DEBUG: Thread 2879114128 terminating
20:52:07 T:2933586832 M:633548800 NOTICE: deleting video codec
20:52:07 T:2933586832 M:633548800 NOTICE: CDVDPlayer::OnExit() deleting demuxer
20:52:07 T:2933586832 M:633548800 NOTICE: CDVDPlayer::OnExit() deleting input stream
20:52:07 T:2909453200 M:633548800 DEBUG: staticThread, deleting thread graphic context
20:52:07 T:2909453200 M:633548800 DEBUG: Thread 2909453200 terminating
20:52:07 T:2933586832 M:633548800 DEBUG: FileCurl::Close(0x93178b0) http://www.youtube.com/get_video?video_id=uQLNulj3vVw&t=vjVQa1PpcFOaRlDUAN_LG-bz3vHg09$
20:52:07 T:2933586832 M:633548800 DEBUG: Curl:: Debug Closing connection #1
20:52:07 T:2933586832 M:649285632 DEBUG: Playback has finished
20:52:07 T:2933586832 M:649285632 DEBUG: staticThread, deleting thread graphic context
20:52:07 T:2933586832 M:649285632 DEBUG: Thread 2933586832 terminating
20:52:07 T:3055966080 M:649285632 DEBUG: GetMovieId (http://www.youtube.com/get_video?video_id=uQLNulj3vVw&t=vjVQa1PpcFOaRlDUAN_LG-bz3vHg09nSTiChwJbm0jw=&$
20:52:07 T:3055966080 M:649285632 DEBUG: GetEpisodeId (http://www.youtube.com/get_video?video_id=uQLNulj3vVw&t=vjVQa1PpcFOaRlDUAN_LG-bz3vHg09nSTiChwJbm0jw$
20:52:07 T:3055966080 M:649285632 DEBUG: GetMusicVideoId (http://www.youtube.com/get_video?video_id=uQLNulj3vVw&t=vjVQa1PpcFOaRlDUAN_LG-bz3vHg09nSTiChwJbm$
20:52:07 T:3055966080 M:649146368 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
20:52:07 T:3055966080 M:649146368 DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
20:52:07 T:3055966080 M:649146368 DEBUG: Plein écran
20:52:07 T:3055966080 M:649146368 DEBUG: -------------------
20:52:07 T:3055966080 M:649146368 DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
20:52:07 T:3055966080 M:649146368 DEBUG:
20:52:07 T:3055966080 M:649146368 DEBUG: -------------------
20:52:07 T:3055966080 M:649494528 DEBUG: CGUIWindowManager::PreviousWindow: Activate new
20:52:07 T:3055966080 M:649494528 DEBUG: ------------------- GUI_MSG_WINDOW_INIT

rwparris2
2009-04-05, 19:54
I updated this to take care of some issues, would you guys mind grabbing the latest version using the svn repo installer and trying it?

w3__
2009-06-12, 00:31
Hey is there any way to make this plugin scrobble the tunes that it plays, ideally using the audioscrobbler/last.fm settings in the main xbmc?

j3ffd
2009-09-29, 09:20
Cool plugin!

Running SVN 23185 on Linux. I put my last.fm username and password in XBMC's music settings. When I ran LastTube, before even getting to the LastTube menu, XBMC crashed with the following in the crash log:

DEBUG: Error: Requested setting (lastfm.username) was not found. It must be case-sensitive

grepping lastfm in the source code shows this: "scrobbler.lastfmusername". Put this in place of "lastfm.username" on line 141 of LastTube/default.py. Now LastTube loads!

rwparris2
2009-09-29, 11:14
Cool plugin!

Running SVN 23185 on Linux. I put my last.fm username and password in XBMC's music settings. When I ran LastTube, before even getting to the LastTube menu, XBMC crashed with the following in the crash log:

DEBUG: Error: Requested setting (lastfm.username) was not found. It must be case-sensitive

grepping lastfm in the source code shows this: "scrobbler.lastfmusername". Put this in place of "lastfm.username" on line 141 of LastTube/default.py. Now LastTube loads!

Damned API changes :;):
I committed that change without testing it, so I hope you're right about that fixing things.


[LastTube]
Fixed: XBMC API changes stopped plugin from getting last.fm username. Thanks to j3ffd

AlienQueen
2009-10-13, 15:25
Guys,

Does LastTube have an official website? I've modified it and I'd like to contribute my little code to its author.

Do you know about its license? I've found http://code.google.com/p/xbmc-addons/ where it looks like LastTube is hosted, but I can't figure out a way to contact its author.

In case anyone is interested, I've made two modifications:

- videos now keep on playing until you stop them,
- XBMC now downloads the videos: since you look for your favorite artists, you're supposed to like the videos. (It works with "search for tags" and "search for user" as well, of course).

If the license allows me to do so, I can give my little code to anyone who is interested.

Cheers!

rwparris2
2009-10-14, 07:20
Guys,

Does LastTube have an official website? I've modified it and I'd like to contribute my little code to its author.

Do you know about its license? I've found http://code.google.com/p/xbmc-addons/ where it looks like LastTube is hosted, but I can't figure out a way to contact its author.

In case anyone is interested, I've made two modifications:

- videos now keep on playing until you stop them,
- XBMC now downloads the videos: since you look for your favorite artists, you're supposed to like the videos. (It works with "search for tags" and "search for user" as well, of course).

If the license allows me to do so, I can give my little code to anyone who is interested.

Cheers!

I'm the author of the xbmc plugin lasttube, Tim Borman is the author of the mashup & player. http://beta.tv.timbormans.com/

I haven't updated this thing in forever. The first modification you made should have been in it from the beginning. Not sure when/where it broke, but thanks for supposedly fixing it.

Feel free to mail me if you'd like to continue taking this plugin where it needs to go. Sorry the state of the code, I broke my python cherry writing that plugin :)