[pylast] Howto get now playing from other user

93 views
Skip to first unread message

Alf Simen Sørensen

unread,
May 15, 2010, 9:55:27 AM5/15/10
to pylast
Is there any way to fetch the song that some other user are playing at
the moment with pylast?

--
You received this message because you are subscribed to the pylast mailing list.
To post to this mailing list, send email to pyl...@googlegroups.com
To unsubscribe from this group, send email to
pylast+un...@googlegroups.com
pylast is a python wrapper around last.fm's api. the project is hosted at http://code.google.com/p/pylast/ and the mailing list/group is at http://groups.google.com/group/pylast

KL-7

unread,
Jun 3, 2010, 2:35:52 PM6/3/10
to pylast
It seems like last.fm API gives no method to get this information. So
I think it's impossible to get it via pylast as well.

On May 15, 4:55 pm, Alf Simen Sørensen <simen.soren...@gmail.com>
wrote:

Alf Simen Sørensen

unread,
Jun 3, 2010, 4:56:21 PM6/3/10
to pyl...@googlegroups.com
I ended up adding some code to pylast to go around my problem.

Make "get_now_playing" take the user I am looking for:
    def get_now_playing(self, user)
and then set the user in params
    params['user'] = user

Doing the same for "get_recent_tracks"
Reply all
Reply to author
Forward
0 new messages