Display longer player names in the "Now Playing"

Need help? Post your questions here.

Moderator: moderators

Display longer player names in the "Now Playing"

Postby colli419 » Wed Jul 20, 2011 2:26 pm

Hi All:

I would like to be able to display longer names in the "Now Playing" pane on the right of the web player interface. Currently it crops it off at 22 (I think), and I would like to extend this. I am sorry if this is a feature request, but if anyone has an idea please let me know. Subsonic! Woot!

Best Regards,
MTC
colli419
 
Posts: 75
Joined: Thu Aug 27, 2009 8:23 pm

Postby colli419 » Sat Jul 23, 2011 8:45 pm

---Bump---

Does anyone have any idea about this? I would really appreciate some help.

Thanks,
MTC
colli419
 
Posts: 75
Joined: Thu Aug 27, 2009 8:23 pm

Postby colli419 » Mon Aug 08, 2011 6:47 pm

Hi All:

Sorry to be annoying, I won't bump this again. Is this complicated to do? If someone could point me at the right file that would be enough.

Thanks,
Michael
colli419
 
Posts: 75
Joined: Thu Aug 27, 2009 8:23 pm

Postby supra92 » Tue Aug 09, 2011 3:47 am

Hey Michael -- I actually spent some time looking at this back after your second post in late July, but... apparently never wrote up a reply!

Generally I look for that sort of the thing in the .jsp files, and indeed all of my longer album titles are cut off at exactly 22 characters followed by points-of-ellipses as well. My first thought was to search through the jsp files for that hardcoded 22 limit, but it doesn't appear to be anywhere in the right.jsp file.

Then I figured it might have something to do with the width of the right pane. You can change that width by modifying the "230" in the index.jsp file (line 15 in v4.5b2) with a slightly larger number to produce a wider right frame (the 230 is a literal pixel width). Unfortunately, testing that out resulted in no dice: still a cutoff after 22 chars despite the extra space in the frame for it.

It actually appears to be buried in one of the compiled java class files in:
$SUBSONIC_HOME/WEB-INF/classes/net/sourceforge/subsonic/service

I'm not honestly sure what to say at this point, beyond grabbing the source code and recompiling it yourself. I would've figured that 22 value to be a relatively-accessible configuration value, but it seems it's compiled directly into the classes, and not just in the editable jsp files. Perhaps Sindre can comment on this if he's reading the thread, or someone else here with more knowledge of the java classes than I...

You've got me curious for a solution to this now... :)

Supra92
User avatar
supra92
 
Posts: 137
Joined: Sun Nov 19, 2006 12:17 am
Location: Central Texas

Postby colli419 » Wed Aug 10, 2011 3:42 pm

Thanks supra92!

That is certainly a lot more involved that I had envisioned. I did try the first two things you tried before I posted, but I didn't have any better luck :( Either way, thanks for digging into this. It would appear that this along increasing the number of chat messages will forever elude me. The right pane tends to be the bane of my subsonic experience (ha ha).

Best Regards,
MTC
colli419
 
Posts: 75
Joined: Thu Aug 27, 2009 8:23 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests