Page 1 of 1

Browsing returns to last played folder

PostPosted: Tue Dec 13, 2011 2:54 pm
by Globe199
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.

Re: Browsing returns to last played folder

PostPosted: Wed Dec 21, 2011 7:57 pm
by ytechie
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!