Bulk SetRating

Need help? Post your questions here.

Moderator: moderators

Bulk SetRating

Postby MadEvil » Tue Dec 13, 2011 9:23 pm

Hi @ all,
i have migrated my Server and lost all my Ratings on Albums,
so i want to rate it with the REST Interface but a get a error:

Code: Select all
http://localhost/rest/setRating.view?id=Symphony&rating=5&u=admin&p=subsonic&v=1.6.0&c=myapp


Error

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
Exception java.lang.SecurityException
Message Access denied to file ����
Java version Sun Microsystems Inc. 1.6.0_29
Operating system Windows 7 6.1
Server jetty-6.1.x
Memory Used 104 of 199 MB
Stack trace java.lang.SecurityException: Access denied to file ���� at net.sourceforge.subsonic.service.MusicFileService.getMusicFile(MusicFileService.java:68) at net.sourceforge.subsonic.service.MusicFileService.getMusicFile(MusicFileService.java:85) at net.sourceforge.subsonic.controller.RESTController.setRating(RESTController.java:1285) at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:473) at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:410) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
...


how should this work ?
other solutions to import a list of Folders to rate?
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Bulk SetRating

Postby ytechie » Mon Jan 02, 2012 11:33 pm

The id parameter has to be the hex value of the album's path. When you are looking at the list of albums for each artist, the link to each album references the path to that album in hex.

For instance, if I want to rate the album "The Best of Abba," the id (in my case, just as an example) would be "id=2f7661722f6d757369632f436f6d62696e65642f416262612f5468652042657374206f662041626261" which is "/var/music/Combined/Abba/The Best of Abba" in hex.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York


Return to Help

Who is online

Users browsing this forum: No registered users and 6 guests