Turn Lastfm on (xbmc4xbox)

Post Reply
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

LastFm is a scroppler what works on xbmc self you must not have a plugin or script to play from last fm

1) Go to Music Settings and turn as example Submit to Lastfm on
2) Give you Username and Pass. (the account for Lasfm its free you must not pay!)
3) change the Music scrapper to Lasfm!
4) Go to Your Nusic Folder and add this Source lastfm:// and give it the Name lastfm!

This it is you can access your radio or search and play what your want over your new added lastfm source!

Example for skinning

<onclick>PlayMedia(lastfm://globaltags/pop)</onclick>

Will play the pop radio

As you first simple Plugin!

1) create a new Folder on Q/plugins/musik/ example LastFMPOP
2) On you Pc go on a Editor what you will and put follow code on it

Code: Select all

import xbmc


url = 'lastfm://globaltags/pop'
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(url)
3) save this as default.py then FTP it to your created Folder !
4)Create a picture for your plugin and give it the name default.tbn ftp it to to your created Folder!

when you skin have the option you can ban or love any song what you play on lastfm and you have your Love radio with this what you like ist easy to access as plugin to!(xbs integrated love and ban on Cofluence light)

Finish thats is it !

It give many artist radio it give many tags !

You can create more as one on a plugin give all the icon what you want and then you have nice list from what you want!

access it on your Home screen with confluence Light!

When you will have a nice Slideshow for the playing artists ask i say we you can it integrated on your first plugin!

Have Fun
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

I give it why i think anywhere it's interested and say ' Hey Jan its works but only with the first song why Jan' (Plugin)
But nobody ask!
OK !!!!!! :lol:
User avatar
ltdanno360
Posts: 60
Joined: Tue Sep 25, 2012 8:35 am
Location: California
Has thanked: 14 times
Been thanked: 2 times
Contact:

Re: Turn Lastfm on (xbmc4xbox)

Post by ltdanno360 »

Jan it has allways worked for Me ! out of the box
to play more than one song i go
to Friends tags
and it plays all day!
NEW MOD! Tsop'ed ,, ind.bios 5003.06
1.2 xbox 80GB ATA/133 HDD +
XBMC
ndure +xboxhdm softmoded V1.6 console
XBMC4XBOX before .3.3 jans_english_version
250 gig Maxtor XXXXXXXX
Component cables + Hd tv

RECENT GAMES
capcom collection vol. 2
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

I mean as plugin for a tag or similar artist !
Its can not works with DVDplayer (can but you must put the next song and it works day and Night)
The Solution is PAPLAYER for DVDPLAYER (as Plugin)!

Nobody interested on Slideshow from playing Artists for this and all the other musik Songs!


Regards Jan
kitana
Posts: 103
Joined: Fri Sep 28, 2012 6:20 am
Has thanked: 2 times

Re: Turn Lastfm on (xbmc4xbox)

Post by kitana »

skatulskijean wrote: The Solution is PAPLAYER for DVDPLAYER (as Plugin)!
Yes, it only play/loop one song using XBMC4Xbox's built-in Last.fm enabler. Are you currently using a PAPlayer plugin?

EDIT: I must have toggled on repeat by accident, otherwise enabling Last.fm under Settings>Music then add lastfm:// as source seems to work fine. LFM automatically populates 3 songs to the "Now Playing" queue and plays nonstop.
Last edited by kitana on Wed Oct 10, 2012 12:01 am, edited 1 time in total.
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

No!
I mean when you make a plugin with the little code from the first post for the lastfm radio what you want!

Then access the Url with:

xbmc.Player(xbmc.PLAYER_CORE_PAPLAYER).play(url) !
Thats works and play the radio fine!

Regards Jan
kitana
Posts: 103
Joined: Fri Sep 28, 2012 6:20 am
Has thanked: 2 times

Re: Turn Lastfm on (xbmc4xbox)

Post by kitana »

skatulskijean wrote:
Nobody interested on Slideshow from playing Artists for this and all the other musik Songs!

Does the last.fm slideshow script launch automatically (or manually) whenever last.fm plugin is run?
psychotron
Posts: 82
Joined: Fri Jul 06, 2012 5:43 am
Has thanked: 10 times
Been thanked: 1 time

Re: Turn Lastfm on (xbmc4xbox)

Post by psychotron »

Don't know what I am doing wrong. It will not play songs. It will show list of my songs played at lastfm site. Even tried setting dvdplayer as default. Attempted the plugin script Jan wrote but it locks XBMC into a continuous wait cycle - reboot is needed to exit. As I can see my old music plays at lastfm it is obvious it is logged into lastfm.

EDIT***

Got it to work. I had to do as "Jan" said in another post to grab the LastFM key string password from a PC install of XBMC "guisettings.xml" from userdata. I do not understand why the PC version translates the password into this wierd key string and XBMC4XBOX stores my password as a plain text entry of the exact correct password I normally log into Last.FM on my PC. What is the translation and why is the password translation not done in XBMC4XBOX?
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

@Psychotron

You are on my Last Build (Jan'sXbmc4xbox before 3.3 stable)

Then i can not understand why !
Then its works by me out of the Box!

I come to the error with the xbmc4xboxpc Build!
Thread on Development.
what is a build to Test Skins what you make self for xbmc4xbox!

And i have think ok , when the paplayer can play any mp3 from the Hd and from Network why i can not access Lastfm
and i found the Solution!
Thats is on this build verry nice to test integrate Lastfm on the Skins!

Have anywhere the same isue we psychotron on the new Nightly?
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

kitana wrote:
skatulskijean wrote:
Nobody interested on Slideshow from playing Artists for this and all the other musik Songs!

Does the last.fm slideshow script launch automatically (or manually) whenever last.fm plugin is run?
You can make what your want the lastfmslideshow script its a own solution and you can it put easy on a skin or on a .py
for your Solution!

Brain up Example:

It the Network on and you have no Fanart on your xbmc4xbox for this Artist it starts the Slideshow script!

I have on my PM3 mode a new Button on the Homescreen this looks on your Musik-Database and play on Partymode what you have on it and start the slideshow script to give an nice Slideshow for the playing Artists!

On MusicOsd i have a toggle Button (Youtube) what search for videos from the momently playing Artist on Youtube and you can easy access all the Videos from this artist (I found that nice)!

Regards Jan

Next what i will for xbmc4xbox is a Toogle Button on Musik osd to !
What read the playing artist and make a playlist from songs from similar artist on lastfm and play this!
The Solution have main Xbmc - but it works not out of the box on xbmc4xbox and i must it adapt and look what say the Ram on the Xbox when it run!

I have many hope for 128 MB ram support on xbmc4xbox!
mcw0933
Posts: 2
Joined: Wed Nov 28, 2012 5:14 am
Has thanked: 1 time

Re: Turn Lastfm on (xbmc4xbox)

Post by mcw0933 »

Hi Jan,

I'm having the same probs as Psychotron was. Here's my setup:
  • I'm running the most recent nightly: 31619 Nov 24

    My last.fm account is an unpaid account

    I've set the following in Settings:Music
    • Library:Default service for music info - Last.FM
      Playback:Default Player - PAPlayer
      Song Submission:Both Last.fm submit options are on, username & password are set
    I can pull up the list of global tags, and my loved songs / played songs etc list from the source browser. When I try to listen to a source (globaltags, similarartists, etc) it shows that it's trying to connect but doesn't play anything.

    I added the plugin code you provided to a music plugin. Tried it with both PLAYER_CORE_PAPLAYER and PLAYER_CORE_DVDPLAYER. The plugin hangs with the loading symbol indefinitely.

    I changed my guisettings.xml to have the hexadecimal string for my <lastfmpassword>. Tried the plugin and the lastfm source both ways, no luck either way.
I'm stumped - am I missing something?
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

With 1.12.2012 LastFm change any and the old streaming protocol will not work!

this is the email from lastfm

Hello, skatulskijean.

We're writing you to let you know that there will soon be a change to Last.fm radio that may affect you. Our stats show that you've listened to radio through an application that uses our old streaming protocol. On 1 December we will deprecate this old protocol, so in some applications radio will no longer work.

If you would like to continue enjoying Last.fm Radio, consider upgrading to a new application or using http://www.last.fm/listen
mcw0933
Posts: 2
Joined: Wed Nov 28, 2012 5:14 am
Has thanked: 1 time

Re: Turn Lastfm on (xbmc4xbox)

Post by mcw0933 »

That's a bummer. I see the main XBMC forums are aware as well: http://forum.xbmc.org/showthread.php?tid=145901

Guess I'll wait and see what happens with that. Thanks Jan
skatulskijean
Posts: 1028
Joined: Wed Jul 04, 2012 8:01 am
Has thanked: 1 time
Been thanked: 148 times

Re: Turn Lastfm on (xbmc4xbox)

Post by skatulskijean »

Its basicly working again!

look here http://www.xbmc4xbox.org.uk/forum/viewt ... &start=140
Post Reply