Skip to content

Commit 95374e1

Browse files
committed
Small fix for Records downloading.
Signed-off-by: Difegue <[email protected]>
1 parent d33cf45 commit 95374e1

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

WebContent/WEB-INF/templates/records.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% block desc %}
88
Browse all those mad jams and remixes. Maybe you'll find something to use for your next game.
99
<br/><br/>
10-
We don't have the original instruments, but you can listen to midi renditions of the records in your browser.
10+
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!
1111
<br/><br/>
1212

1313
<div id="game-search">

WebContent/WEB-INF/templates/recordsDetail.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<span class="game-text card-title white-text" style=""><br/>{{ item.mioDesc1 }} <br/>{{ item.mioDesc2 }}</span>
4444
</div>
4545
<div class="card-action">
46-
<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%" >
46+
<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%" >
4747
<i class="material-icons">file_download</i>
4848
</a>
4949
<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 }}')">

src/com/difegue/doujinsoft/ServerInit.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,13 @@ public void contextInitialized(ServletContextEvent arg0) {
123123
} catch (ClassNotFoundException e1) {
124124
e1.printStackTrace();
125125
}
126-
System.out.println("DoujinSoft Database builder started");
126+
System.out.println("DoujinSoft Store Deployed.");
127127

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

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

134135
//Create database if nonexistent + parse .mios in "new" folder before renaming+moving them

src/com/difegue/doujinsoft/utils/ServletUtils.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
*/
3333
public class ServletUtils {
3434

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

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

101103
}
102104

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

0 commit comments

Comments
 (0)