Subsonic Web UI Cleanup\Overhaul

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Tue Nov 15, 2011 3:23 am

Ultraviolet wrote:Yeah, it's buggy, but I think it's a great start. One design change that was not for the better however, was changing the accordion to expand on hoverintent instead of click. In this case, more clicks is definitely preferable as the accordion is constantly expanding and contracting with errant mouse movements. I'm forcing my users to be guinea pigs and that's the number one complaint I've heard so far (design wise--obviously there are bugs to iron out)--it drove me nuts too so I changed it back. Just some usability feedback about a design decision that I think made things so easy, it caused problems.

Really looking forward to your next .war release or SourceForge check in so I can see your progress. Thanks for all the work.



Thank you, I appreciate the feedback.

I have to agree... I thought changing it to hoverintent would make browsing the accordion a little nicer, but I find that it keeps stealing the mouse focus, as you mentioned.

I might make it an option to choose between hoverintent or click, but I will be reverting back to the click action in the next .war that I post.

I'm pretty behind on releasing the new .war or committing a new update to svn. I've been building some custom jquery plugins to fill some gaps and cleaning some other things up a little.

I've synced up to Sindre's latest 2555 build changes but he may commit some more stuff by time I'm able to roll out a new file.

I'm doing my best to keep up with Sindre's official changes while maintaining the mods in my branch, it's just timing-wise between my changes and his changes haven't allowed for a new .war to address some of the bugs.

I really appreciate everybody testing it and posting the feedback, and I apologize for any 'guinea pig' feelings. :)

Hopefully I will have some news here soon on an updated .war
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Tue Nov 15, 2011 4:06 am

BKKK waits in eager anticipation :P

califrag wrote:and I apologize for any 'guinea pig' feelings.

Now time to get back to me hutch :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: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Wed Nov 16, 2011 5:32 pm

BKKKPewsey wrote:BKKK waits in eager anticipation :P

califrag wrote:and I apologize for any 'guinea pig' feelings.

Now time to get back to me hutch :mrgreen:


Posted up a new .war file.

All of the old Prototype and Scriptaculous stuff has been removed and replaced by jQuery.
Most of the dwr/util stuff has also been replaced by jQuery. There is still some dwr/engine stuff that had to stay.
Nice forms are gone (I still need to remove the actual files)...

Major changes include adding registration\forgot password stuff to webapp (still need to add backend support).
Added new jQuery forms styler\validator plugin to handle both functions.

Maybe some new bugs here and there..
need to fix some styling for different themes.
Noticed a new bug with the chat message window expanding too much.
Hopefully fixed some of the issues with Firefox and the webfont stuff (it loads on my machine).
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Wed Nov 16, 2011 6:45 pm

I thought I would pop out from my hutch and try the new version.
:(
The console error report is below
Code: Select all
Failed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/script/LAB.cdn.min.jsFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/script/jsLoad.jsFailed to load resource: the server responded with a status of 404 (Not Found)
top.view:43Uncaught ReferenceError: jQueryLoad is not defined
right.view:294Uncaught ReferenceError: jQueryLoad is not defined
playlist.view:658Uncaught ReferenceError: jQueryLoad is not defined
home.view:53Uncaught ReferenceError: jQueryLoad is not defined
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-down.gifFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-up.gifFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-down.gifFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-up.gifFailed to load resource: the server responded with a status of 404 (Not Found)
left.view:51Uncaught ReferenceError: jQueryLoad is not defined

That was in chrome (with a direct link so bypassing log in screen)
All I got was the backgrounds and the frame scroll bars - nothing else

I tried in FF but all I got was the login background - again nothing else
A bit puzzled by some of those errors as those image files are on my machine in C:\subsonic\jetty\2566\webapp\style\dddropdownpanel\images\ :?
Oh well revert to 4.6beta2 and back to me hutch :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: Subsonic Web UI Cleanup\Overhaul

Postby Ultraviolet » Thu Nov 17, 2011 2:19 am

Loving the JQuery. I just installed over 4.6 v1, but there is a big difference in responsiveness and several bugs seem to have been effectively addressed in FF and Chrome at least.

One constant performance hit I've noticed over trickydick's theme is that the left frame music index takes MUCH longer to load than it did before. I have quite a large library but, even over the WAN, it would take perhaps just a few seconds to populate the left frame and form the JQuery accordion. It now takes 30+ seconds on my Gb LAN and a few minutes over the WAN. I've noticed that the Android subsonic app seems to be doing something different when I go to the Media Library selection too now. It takes forever and counts from 0 to whatever the total number of artists I have before anything can be done. I don't know if this was a Sindre change (4.5 to 4.6 change) or part of your cleanup effort though. Just thought I share. After briefly testing your newest releases, I just stick it up in my "production" environment where at least 6 people use it daily so I'll let you know more findings as this gets more use.
Ultraviolet
 
Posts: 62
Joined: Wed Jul 21, 2010 2:29 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Thu Nov 17, 2011 4:43 am

Was just looking over this thread in case anyone had any useful input and noticed something in my error logs
I think the path is wrong - on a windows install you can specify sub-directory's (domains) for subsonic eg music or subsonic as an option.
Mine is subsonic so path to SS is IP:port/subsonic/index.view
I can not see that in the error logs :?
(Similar problem on Minisub see http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7553&start=30)
: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: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Thu Nov 17, 2011 5:51 am

BKKKPewsey wrote:Was just looking over this thread in case anyone had any useful input and noticed something in my error logs
I think the path is wrong - on a windows install you can specify sub-directory's (domains) for subsonic eg music or subsonic as an option.
Mine is subsonic so path to SS is IP:port/subsonic/index.view
I can not see that in the error logs :?
(Similar problem on Minisub see http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7553&start=30)
:mrgreen:

:?:

BKKKPewsey wrote:I thought I would pop out from my hutch and try the new version.
:(
The console error report is below
Code: Select all
Failed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/script/LAB.cdn.min.jsFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/script/jsLoad.jsFailed to load resource: the server responded with a status of 404 (Not Found)
top.view:43Uncaught ReferenceError: jQueryLoad is not defined
right.view:294Uncaught ReferenceError: jQueryLoad is not defined
playlist.view:658Uncaught ReferenceError: jQueryLoad is not defined
home.view:53Uncaught ReferenceError: jQueryLoad is not defined
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-down.gifFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-up.gifFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-down.gifFailed to load resource: the server responded with a status of 404 (Not Found)
http://192.168.0.90:12001/style/dddropdownpanel/images/arrow-up.gifFailed to load resource: the server responded with a status of 404 (Not Found)
left.view:51Uncaught ReferenceError: jQueryLoad is not defined

That was in chrome (with a direct link so bypassing log in screen)
All I got was the backgrounds and the frame scroll bars - nothing else

I tried in FF but all I got was the login background - again nothing else
A bit puzzled by some of those errors as those image files are on my machine in C:\subsonic\jetty\2566\webapp\style\dddropdownpanel\images\ :?
Oh well revert to 4.6beta2 and back to me hutch :mrgreen:


Hrm.. it looks like some kind of installation problem again... It's saying the two .js files (LAB.cdn.js and jsLoad.js) are not found (404 error) and that is causing the jQueryLoad failures and probably all the other errors as well.

The files should all be packed in the .war. Try looking through it for those files or double-check that they exist and their permissions aren't messed up somehow (permission should be everyone read at least).

One thing I noticed is you said your folder is c:\subsonic\jetty\2566 ...

Since my build was last synced to Sindre's build 2551 there may be some issues since it is not 'caught up to date'.

AFAIK, there shouldn't be an issue with that... but then again things are working fairly OK for me.

Ultraviolet wrote:Loving the JQuery. I just installed over 4.6 v1, but there is a big difference in responsiveness and several bugs seem to have been effectively addressed in FF and Chrome at least.

One constant performance hit I've noticed over trickydick's theme is that the left frame music index takes MUCH longer to load than it did before. I have quite a large library but, even over the WAN, it would take perhaps just a few seconds to populate the left frame and form the JQuery accordion. It now takes 30+ seconds on my Gb LAN and a few minutes over the WAN. I've noticed that the Android subsonic app seems to be doing something different when I go to the Media Library selection too now. It takes forever and counts from 0 to whatever the total number of artists I have before anything can be done. I don't know if this was a Sindre change (4.5 to 4.6 change) or part of your cleanup effort though. Just thought I share. After briefly testing your newest releases, I just stick it up in my "production" environment where at least 6 people use it daily so I'll let you know more findings as this gets more use.


Well there is still a little bit of overhead I need to trim out, but that shouldn't be causing 30+ second load for the accordion\etc.
What are the specs of the machine you are hosting subsonic on? What about your music stats? Size? # of files? etc..
This will help me try to identify the problem.
My Subsonic is on an old dual-core with 4,000 songs, 18 GB and has no problems loading in under a few seconds.

Not sure what is going on with the Android app... It could have been either one of us changing things since I'm incorporating the main subsonic trunk changes into my own mod as quickly as possible.
I haven't made any changes at all to the Android version except for what Sindre has committed/added.

This mod isn't really prepared for 'production' environment, at least not at this point. Once some of the bugs are worked out I would feel more comfortable saying 'yeah it's stable enough for production', but right now everything is still in 'p/re-development' phase.

EDIT
Posted another new updated .war synced with Sindre's changes up to current build 2569
also, i know the checkboxes aren't lined up properly and plan to fix them :)
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby Drefsab » Thu Nov 17, 2011 1:31 pm

I was planning on having a look at modding videoPlayer.jsp to change the embedding method to add support for seamless HTML5/Flash support in JWPlayer

"Prior to the JW 5.3 release, the most common methods used to embed the JW Player on your website were object/embed code and swfobejct (1.5 or 2.X). With the release of JW 5.3, we also introduced our own embed method, the JW Embedder, referenced as jwplayer.js. We recommend the JW Embedder when you’re looking to achieve the following:

* Seamless failover between the Flash and HTML5 players.
* Automatic integration with the JavaScript API."

you clearly are a lot more experienced in this type of work and I dont know Javascript at all so working out how to change the embedding method will take me some time. Is this something you would be or plan to look at?
Drefsab
 
Posts: 47
Joined: Sat May 07, 2011 9:44 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby BKKKPewsey » Thu Nov 17, 2011 2:01 pm

califrag wrote:
BKKKPewsey wrote:Was just looking over this thread in case anyone had any useful input and noticed something in my error logs
I think the path is wrong - on a windows install you can specify sub-directory's (domains) for subsonic eg music or subsonic as an option.
Mine is subsonic so path to SS is IP:port/subsonic/index.view
I can not see that in the error logs :?
(Similar problem on Minisub see http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7553&start=30)
:mrgreen:

:?:



tsquillario wrote:BOOM! Pushed an update on Git to fix your issue. The default Subsonic install is at the web root not under a subdirectory like yours. I added a setting under Preferences to specify the subdirectory of your installation. So in your case you would put subsonic as that value. Then the path will be correct!

Code: Select all
http://192.168.0.90:12001/script/LAB.cdn.min.jsFailed to load resource: the server responded with a status of 404 (Not Found)

Shouldn't that be IP:port/subsonic/script/LAB.cdn.min.js in my case :?
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: Subsonic Web UI Cleanup\Overhaul

Postby Drefsab » Thu Nov 17, 2011 2:53 pm

I just to install this to test using the latest war.

I followed the install instructions checked my jetty folder and now there is a folder called 2569 great, but when I try to browse to subsonic I get:

HTTP ERROR: 404

/WEB-INF/jsp/login.jsp

RequestURI=/WEB-INF/jsp/login.jsp

Powered by Jetty://

so I cheated a little shut subsonic down, copied the 2569 folder to 2567 (the last one I was using) and restarted. This worked in that I now get the blank login screen as in I get the background and nothing else no login box's etc.
Drefsab
 
Posts: 47
Joined: Sat May 07, 2011 9:44 am

Re: Subsonic Web UI Cleanup\Overhaul

Postby Ultraviolet » Thu Nov 17, 2011 3:48 pm

Hi califrag. I know it's not ready for production yet and don't mean to hold you to that standard at this early point in your process. I just like to use it daily so that I can give you feedback on things I can't do myself, as well as identify things I, or my users, may like that I could do myself.

My library is large... 500,000+ tracks nearing 4TB. Right now I just have subsonic running on a spare Win 7 machine, but it's a dual core, 8GB RAM fairly beefy machine. Subsonic isn't taxing it at all. The difference in load time is independent of my library size or machine performance. Those are static variables in this equation. Something else changed to dramatically increase load time. It could have been the 4.5 to 4.6 jump or your subsonic branch. Unfortunately, I made these changes at the same time. I'm pretty positive the accordion is not the problem. If I get some free time (not today unfortunately), I'll try vanilla installs of 4.5 and 4.6 and compare performance there. I just thought I'd mention it in case you were aware of some obvious outstanding issue. I'll do more testing and get back to you with the results.

Edit: The manual "Update Search Index Now" functionality seems to be broken in this newest release. Clicking on it yields: "INFO SearchService Automatic index creation scheduled to run every 1 day(s), starting at Thu Nov 17 12:00:00 EST 2011" (the date and time it's schedule to run, but it doesn't actually do anything.)
Ultraviolet
 
Posts: 62
Joined: Wed Jul 21, 2010 2:29 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby pemholder » Thu Nov 17, 2011 5:52 pm

I installed the mod today and I am using it at the moment locally besides my regular subsonic installation which is accessed by LAN or Internet.

Things I noticed so far:
Searching does not work, same goes for the simular artist feature.

A feature that I would like to have and that was not created so far in subsonic:
http://forum.subsonic.org/forum/viewtopic.php?t=2532&highlight=

@cailifrag:
Maybe you find an easy way to include this in your mod.
pemholder
 
Posts: 97
Joined: Wed Dec 09, 2009 1:28 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby Ultraviolet » Thu Nov 17, 2011 7:42 pm

pemholder, you may want to try again. Did you clear both server and browser cache? This latest .war file has both search and similar artist working great (in FF and Chrome at least).
Ultraviolet
 
Posts: 62
Joined: Wed Jul 21, 2010 2:29 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby pemholder » Thu Nov 17, 2011 8:47 pm

Ultraviolet wrote:pDid you clear both server and browser cache? This latest .war file has both search and similar artist working great (in FF and Chrome at least).

I did clear the cache.

I installed Subsonic 4.6 Beta2 first, stopped it, then deleted the jetty/xxxx and copied the latest .war-file to c:/program files/subsonic.

Subsonic seems to work. The accordeon shows the artists. I can navigate and play music.
But if I search for any artist and click on any of the similar artists, that are in my database, all I get is: "No matches found"

Edit:
There was not created an index file.
I was used that subsonic creates its index file automatically after installation?
But I noticed, that the index-file was empty. I tried to create an index file by clicking "Update index now" but nothing happed. So I changed the scheduled index update to 1 minute in the future and susonic started to create the index file.

Edit:
Index creating has finished. Searching works.
But I think there is an unwanted behaviour in looking for similar artists:
Example: I play a song from "Albert King". Similar artists suggests "Albert Collins". If I click on "Albert Collins" I get listed all songs and albums with "Albert" and "Collins" in artist name and song title, i.e. "Judy Collins", "Albert goes West" by Nick Cave and so on.
Clicking on a similar artist should only produce results that match the whole string and only search for artists.
It would be great but I think that I am demanding too much, that similar artists should only provide results that are in subsonics database. :wink:
pemholder
 
Posts: 97
Joined: Wed Dec 09, 2009 1:28 pm

Re: Subsonic Web UI Cleanup\Overhaul

Postby califrag » Thu Nov 17, 2011 11:22 pm

BKKKPewsey wrote:
califrag wrote:
BKKKPewsey wrote:Was just looking over this thread in case anyone had any useful input and noticed something in my error logs
I think the path is wrong - on a windows install you can specify sub-directory's (domains) for subsonic eg music or subsonic as an option.
Mine is subsonic so path to SS is IP:port/subsonic/index.view
I can not see that in the error logs :?
(Similar problem on Minisub see http://forum.subsonic.org/forum/viewtopic.php?f=8&t=7553&start=30)
:mrgreen:

:?:



tsquillario wrote:BOOM! Pushed an update on Git to fix your issue. The default Subsonic install is at the web root not under a subdirectory like yours. I added a setting under Preferences to specify the subdirectory of your installation. So in your case you would put subsonic as that value. Then the path will be correct!

Code: Select all
http://192.168.0.90:12001/script/LAB.cdn.min.jsFailed to load resource: the server responded with a status of 404 (Not Found)

Shouldn't that be IP:port/subsonic/script/LAB.cdn.min.js in my case :?


Ah i see what you're saying about the mini-player problem - I may be experiencing the same issue, just gotta track it down.

As for the path... I'm not sure, but the IP:Port should resolve to 'C:\subsonic\webapp' (in your case). When Subsonic runs, it seems to set up the 'subsonic\webapp\" folder as the 'root' folder. So regardless of whether you install Subsonic to C:\subsonic, /mnt/data/Subsonic, C:\program files\subsonic, etc etc. It should create a sub-folder 'webapp' which it uses to serve all the files.
If it were 'IP:Port/subsonic/script/LAb..." that would signify that your C:\ is set up as your 'root' web folder, which should not be the case (huge security risk). I hope that makes sense...

Anyways, I changed a few lines for those .js files so instead of being hard-linked to 'script/LAB.cdn.min.js' it is now '<c:url value='script/LAB.cdn.min.js' />' which should help Subsonic figure out where the files are located.

Drefsab wrote:I was planning on having a look at modding videoPlayer.jsp to change the embedding method to add support for seamless HTML5/Flash support in JWPlayer

"Prior to the JW 5.3 release, the most common methods used to embed the JW Player on your website were object/embed code and swfobejct (1.5 or 2.X). With the release of JW 5.3, we also introduced our own embed method, the JW Embedder, referenced as jwplayer.js. We recommend the JW Embedder when you’re looking to achieve the following:

* Seamless failover between the Flash and HTML5 players.
* Automatic integration with the JavaScript API."

you clearly are a lot more experienced in this type of work and I dont know Javascript at all so working out how to change the embedding method will take me some time. Is this something you would be or plan to look at?


Hrm... Okay this is something I will look into. I may be accidentally 'double-loading' the players... I'm using both the jwplayer.js and swfobject.js .... I thought I read that both were required at load, but I might just need to include jwplayer.js only (which should fallback to swfobject.js - if i understand that correctly)

I've already updated to the latest jwplayer 5.8 which supports HTML5 and Flash so that's one step forward, i'll have another look at it.

Ultraviolet wrote:Hi califrag. I know it's not ready for production yet and don't mean to hold you to that standard at this early point in your process. I just like to use it daily so that I can give you feedback on things I can't do myself, as well as identify things I, or my users, may like that I could do myself.

My library is large... 500,000+ tracks nearing 4TB. Right now I just have subsonic running on a spare Win 7 machine, but it's a dual core, 8GB RAM fairly beefy machine. Subsonic isn't taxing it at all. The difference in load time is independent of my library size or machine performance. Those are static variables in this equation. Something else changed to dramatically increase load time. It could have been the 4.5 to 4.6 jump or your subsonic branch. Unfortunately, I made these changes at the same time. I'm pretty positive the accordion is not the problem. If I get some free time (not today unfortunately), I'll try vanilla installs of 4.5 and 4.6 and compare performance there. I just thought I'd mention it in case you were aware of some obvious outstanding issue. I'll do more testing and get back to you with the results.

Edit: The manual "Update Search Index Now" functionality seems to be broken in this newest release. Clicking on it yields: "INFO SearchService Automatic index creation scheduled to run every 1 day(s), starting at Thu Nov 17 12:00:00 EST 2011" (the date and time it's schedule to run, but it doesn't actually do anything.)


Okay well your host machine is definitely not an issue then. It seems to be chugging then on the client-side? Please follow through with the vanilla 4.5 / 4.6 installs and let me know if you experience the same issues using the 'official' branch. This will help identify whether the problem exists in a piece of code I've modified or whether it was something Sindre changed (which will take me longer to figure out the cause).

I will watch the Automatic index update item and see if I can fix it. I haven't changed anything on the backend for how this is handled, so it should still work, but I will check this out. I've already gone in and clicked the button and seen that it does generate a log message. I will need to figure out at exactly what point it is failing so I can get this resolved. It seems to be failing on the backend after the log message is generated. The front-end button, which is the only thing I modified, sends a 'signal' (calls a function) to the backend to perform the update.

So now this post is forever long, but it will keep going. :)

pemholder wrote:I installed the mod today and I am using it at the moment locally besides my regular subsonic installation which is accessed by LAN or Internet.

Things I noticed so far:
Searching does not work, same goes for the simular artist feature.

A feature that I would like to have and that was not created so far in subsonic:
http://forum.subsonic.org/forum/viewtopic.php?t=2532&highlight=

@cailifrag:
Maybe you find an easy way to include this in your mod.

pemholder wrote:
Ultraviolet wrote:pDid you clear both server and browser cache? This latest .war file has both search and similar artist working great (in FF and Chrome at least).

I did clear the cache.

I installed Subsonic 4.6 Beta2 first, stopped it, then deleted the jetty/xxxx and copied the latest .war-file to c:/program files/subsonic.

Subsonic seems to work. The accordeon shows the artists. I can navigate and play music.
But if I search for any artist and click on any of the similar artists, that are in my database, all I get is: "No matches found"

Edit:
There was not created an index file.
I was used that subsonic creates its index file automatically after installation?
But I noticed, that the index-file was empty. I tried to create an index file by clicking "Update index now" but nothing happed. So I changed the scheduled index update to 1 minute in the future and susonic started to create the index file.

Edit:
Index creating has finished. Searching works.
But I think there is an unwanted behaviour in looking for similar artists:
Example: I play a song from "Albert King". Similar artists suggests "Albert Collins". If I click on "Albert Collins" I get listed all songs and albums with "Albert" and "Collins" in artist name and song title, i.e. "Judy Collins", "Albert goes West" by Nick Cave and so on.
Clicking on a similar artist should only produce results that match the whole string and only search for artists.
It would be great but I think that I am demanding too much, that similar artists should only provide results that are in subsonics database. :wink:


I will definitely consider adding in the comment.txt file reading AND/OR some kind of basic .txt viewer thing. This should be relatively easy using jQuery (http://api.jquery.com/load/ or http://api.jquery.com/jQuery.get/)

I'm glad you got your search index working, I am not sure why the search index manual refresh is broken, I didn't change anything in the backend, and as for why the index did not get populated on install, no idea on that either, like I said, didn't change anything to do with that, so possible it's a new thing that Sindre changed.

The similar artists is something I pretty much took as-is from the thread, modified very little. I think the fix for the search problem will be to wrap the search query in double quotes which should return only items matching "Albert King" exactly. I will test this and fix it.

Will try to post another update relatively soon. Thanks again for all your testing, and I definitely recommend running this in a TEST environment if possible before you deploy it to your production environment. For me, my 'production environment' IS my 'test environment' lol, but everything seems to work except for the bugs already noted.



Again I just want to re-iterate that this mod was never intended to be put into any production environment.

I started modding this just to get some of the requested features 'written down' (in code) so that Sindre could incorporate them into the official branch.
Unfortunately, I think I've changed so much that Sindre doesn't wanna touch any of my code (I don't blame him).

I'm kind of hoping that my 'mod' will just turn into a testing 'sandbox' where new features can be added and tested before being incorporated into the main trunk.

Right now some of the features I would like to see pushed into the main trunk are Drag n Drop playlist and customized home layout. The only problem is that for Drag and Drop playlist it required jQuery, and incorporating jQuery is what has been the longest and most buggy process.

Basically... Here's where most of the issues are being caused:
In order to have drag and drop playlist we need to have jQuery.
In order to use jQuery (easily) we have to remove Prototype: both jQuery and Prototype bind to '$' as a function.
We can overcome this by coding all the jQuery AFTER prototype and using jQuery's noConflict(), but this is a PITA.
Loading both Prototype and jQuery duplicates a lot of functions: .show(), .hide(), .toggle() etc.
The same issue arises when loading both dwr Util and jQuery: both contain functions for getting and setting values, jQuery's ".val()" versus dwr util's "getValue()" and "setValue()", and also both contain 'cloning' functions which are used to create playlist entries and chat messages.
So we can remove dwr Util AND Prototype, but we have to convert all of the old legacy calls to jQuery's new ones.
For prototype we gotta change the selector: Prototype finds DOM objects by their direct ID, ex $("someInputID").show() whereas jQuery can select ANY DOM object, ex $("#someInputID").show().
The "#" indicates that jQuery should search by 'id' attribute, similar to how css identifies 'id' by '#'.
To search by class you would use $(".someClass").show(), which would show ALL DOM objects which have that class.
Pretty useful, and now we can target ANYTHING without the element being required to have an 'id' tag.
With dwr it's a little more simple: something like dwr.util.setValue("someInputId", "value") gets changed to $("#someInputID").val("value").
When dynamically generating content, you can look at it like this: "$("#someInputID").val("value")" is 30 char, "dwr.util.setValue("someInputID", "value")" is 41 char, so an 11 char difference * 100 playlist entries = 1100 char difference. 1 char = 2 bytes (in java) * 1100 = 2200 bytes = almost 2kb.
Not bad, plus we don't have to serve (one less HTTP request) OR load (however many bytes for) dwr.util anymore either
But now one more problem... Scriptaculous relies on Prototype, so anything that uses Scriptaculous is gonna break.
Scriptaculous has a bunch of nice effects and other functions that jQuery also has, so just more duplication.
No more prototype, no more scriptaculous, no more dwr.util.... But all the legacy code has to be updated.
For scriptaculous is pretty easy, just change all the effects to jQuery effects, not much else was used.
So now we've shaved off X amount of bytes, at least 3 HTTP requests (more if Scriptaculous was using effects.js, builder.js etc) and hopefully have 'lightened the load'.
However there's a problem, if you don't have javascript, or jQuery doesn't load... NADA. I need to fix this (obviously) so in case of jQuery crashing the app is still usable.
This I plan to do at the end once I've finished getting most of the obvious bugs worked out. I am 'expecting' jQuery not to crash and to load properly.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 3 guests