Browsing returns to last played folder

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

Moderator: moderators

Browsing returns to last played folder

Postby Globe199 » Tue Dec 13, 2011 2:54 pm

If you browse around your collection, but don't play anything, Subsonic always returns to the folder last played. This is kind of annoying. Is there any way to turn this off? I can always click the "now playing" area to return if I need to. Thanks.
Globe199
 
Posts: 45
Joined: Thu Sep 15, 2011 1:43 am

Re: Browsing returns to last played folder

Postby ytechie » Wed Dec 21, 2011 7:57 pm

There is a way to turn this off. You have to change a value (or remove the line altogether) in Subsonic\jetty\2384\webapp\WEB-INF\jsp\main.jsp.

Here is an excerpt from my main.jsp:

Code: Select all
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%--@elvariable id="model" type="java.util.Map"--%>

<html><head>
    <%@ include file="head.jsp" %>
    <link href="<c:url value="/style/shadow.css"/>" rel="stylesheet">
    <c:if test="${not model.updateNowPlaying}">
      <meta http-equiv="refresh" content="180;URL=nowPlaying.view?">
    </c:if>
    <script type="text/javascript" src="<c:url value="/dwr/engine.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/script/prototype.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/script/scriptaculous.js?load=effects"/>"></script>
    <script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/script/fancyzoom/FancyZoom.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/script/fancyzoom/FancyZoomHTML.js"/>"></script>
   
</head>


The line to delete is <meta http-equiv="refresh" content="180;URL=nowPlaying.view?">.
You can also just change the value to the time (in seconds) that it should wait before refreshing to nowPlaying.view.

Hope this helps!
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 21 guests