Scrobbling everything to Last.fm?

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Re: Scrobbling everything to Last.fm?

Postby ytechie » Fri Dec 23, 2011 4:46 pm

You mean to have two last.fm accounts per subsonic user? One for the user's personal last.fm and the other for the global last.fm account?
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Scrobbling everything to Last.fm?

Postby ytechie » Fri Dec 23, 2011 6:32 pm

Two accounts but only one is able to be edited by the user. The other global account won't be displayed to the user.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Scrobbling everything to Last.fm?

Postby BKKKPewsey » Wed Dec 28, 2011 2:04 pm

ytechie wrote:Two accounts but only one is able to be edited by the user. The other global account won't be displayed to the user.

Not at the moment without a mod, so I am moving this thread to Feature Requests :D
The only thing you can do at the moment is to have all the user accounts logging into the same Last FM a/c
but of course they will then lose their individual "scrobbles" (I still think its a stupid word :roll: )
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Scrobbling everything to Last.fm?

Postby BKKKPewsey » Wed Dec 28, 2011 4:25 pm

Its a bit of a pain if you have many users as its on the settings/personal tab.
So you have to log on as each user and set-up "Register what I'm playing at Last.fm" with the same user a/c.
Remember to enable user XXXX can change settings & password from admin a/c before logging on as user xxxx
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Scrobbling everything to Last.fm?

Postby ytechie » Wed Dec 28, 2011 9:14 pm

You might be able to edit the jsp file directly and place the last.fm account details as the values in their corresponding form elements. then, if the form gets submitted, the last.fm details will automatically default to the ones you set previously.

Don't forget to change the form elements that you want hidden to type="hidden" instead of type="text."
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Scrobbling everything to Last.fm?

Postby ytechie » Thu Dec 29, 2011 4:12 am

Oh by the way, there is a way to get all the passwords, and I am not going to write it out in the open. It might be tedious though to figure out each user's password, log in, and save the settings.

Just know that the is a way to learn the passwords of other users if and only if you are an administrator.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Scrobbling everything to Last.fm?

Postby ytechie » Sun Jan 01, 2012 9:21 pm

Great news!

This is what you have to do to change all Last.fm accounts at once:

1) Go to http://www.string-functions.com/string-hex.aspx and convert your last.fm password to hex.
2) Take the value of your password in hex, and add 'enc:' to the front of it, so the password '123' would become 'enc:313233'
3) Go to [yourserver]/db.view
4) Type the following into the textarea: "update user_settings set LAST_FM_USERNAME='{username}', LAST_FM_PASSWORD='{password}', LAST_FM_ENABLED='true'". The {username} is the Last.fm username and {password} is the encoded hex password (step 2).
5) Click submit.
6) Very important step!! Perform a clean reload of your Subsonic server. When you reload the server, the subsonic.script file will be repopulated. (Do not hold down the power button or kill the service. My server is running on an Ubuntu server, so I use the command "sudo service subsonic restart."


If you don't want any users to be able to edit the Last.fm accounts unless they are administrators, you can edit the file personalSettings.jsp, and add the lines '<c:if test="${command.user.adminRole}">' and '</c:if> as I did below:

Code: Select all
<c:if test="${command.user.adminRole}">
    <table class="indent">
        <tr>
            <td><form:checkbox path="lastFmEnabled" id="lastFm" cssClass="checkbox" onclick="javascript:enableLastFmFields()"/></td>
            <td><label for="lastFm"><fmt:message key="personalsettings.lastfmenabled"/></label></td>
        </tr>
    </table>

    <table id="lastFmTable" style="padding-left:2em">
        <tr>
            <td><fmt:message key="personalsettings.lastfmusername"/></td>
            <td><form:input path="lastFmUsername" size="24"/></td>
        </tr>
        <tr>
            <td><fmt:message key="personalsettings.lastfmpassword"/></td>
            <td><form:password path="lastFmPassword" size="24"/></td>
        </tr>
    </table>
</c:if>
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Scrobbling everything to Last.fm?

Postby ytechie » Fri Jun 08, 2012 5:38 pm

Glad this helped you!
I don't know why subsonic wouldn't scrobble when using iSub. The subsonic server takes care of all scrobbling. In iSub there is an option to scrobble after a certain percentage of the song is played. Can you double check all of your settings?
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests