Skip to content

Commit

Permalink
Small fix for Records downloading.
Browse files Browse the repository at this point in the history
Signed-off-by: Difegue <sugoi@cock.li>
  • Loading branch information
Difegue committed May 20, 2017
1 parent d33cf45 commit 95374e1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WebContent/WEB-INF/templates/records.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% block desc %}
Browse all those mad jams and remixes. Maybe you'll find something to use for your next game.
<br/><br/>
We don't have the original instruments, but you can listen to midi renditions of the records in your browser.
We don't have the original instruments, but you can listen to midi renditions of the records in your browser. Just click on the vinyls to get listening!
<br/><br/>

<div id="game-search">
Expand Down
2 changes: 1 addition & 1 deletion WebContent/WEB-INF/templates/recordsDetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<span class="game-text card-title white-text" style=""><br/>{{ item.mioDesc1 }} <br/>{{ item.mioDesc2 }}</span>
</div>
<div class="card-action">
<a class="btn waves-effect tooltipped" data-position="top" data-delay="50" data-tooltip="Download" href="./download?type=manga&id={{ item.mioID }}" style="width:48%" >
<a class="btn waves-effect tooltipped" data-position="top" data-delay="50" data-tooltip="Download" href="./download?type=record&id={{ item.mioID }}" style="width:48%" >
<i class="material-icons">file_download</i>
</a>
<a class="btn waves-effect tooltipped" style="float:right; width:48%" data-position="top" data-delay="50" data-tooltip="Add to cart" onclick="addToCart('record','{{ item.mioID }}')">
Expand Down
3 changes: 2 additions & 1 deletion src/com/difegue/doujinsoft/ServerInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ public void contextInitialized(ServletContextEvent arg0) {
} catch (ClassNotFoundException e1) {
e1.printStackTrace();
}
System.out.println("DoujinSoft Database builder started");
System.out.println("DoujinSoft Store Deployed.");

// Hee to the ho and here we go
Logger SQLog = Logger.getLogger("SQLite");
SQLog.addHandler(new StreamHandler(System.out, new SimpleFormatter()));

SQLog.log(Level.INFO, "Looking for new .mio files...");
Connection connection = null;

//Create database if nonexistent + parse .mios in "new" folder before renaming+moving them
Expand Down
7 changes: 6 additions & 1 deletion src/com/difegue/doujinsoft/utils/ServletUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
*/
public class ServletUtils {


/*
* For GET requests. Grab the standard template, and add the first page of items.
*/
public static String doStandardPageGeneric(int type, ServletContext application)
throws PebbleException, SQLException, IOException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {

Expand Down Expand Up @@ -100,6 +102,9 @@ public static String doStandardPageGeneric(int type, ServletContext application)

}

/*
* For POST requests. Perform a request based on the parameters given (search and/or pages) and return the matching subtemplate.
*/
public static String doSearchGeneric(int type, ServletContext application, HttpServletRequest request )
throws SQLException, PebbleException, IOException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {

Expand Down

0 comments on commit 95374e1

Please sign in to comment.