|
|
@ -53,6 +53,7 @@ import org.subsonic.restapi.PodcastStatus; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequestWrapper; |
|
|
|
import javax.servlet.http.HttpServletRequestWrapper; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import javax.xml.datatype.XMLGregorianCalendar; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
@ -164,13 +165,13 @@ public class SubsonicRESTController { |
|
|
|
request = wrapRequest(request); |
|
|
|
request = wrapRequest(request); |
|
|
|
License license = new License(); |
|
|
|
License license = new License(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
license.setEmail("airsonic@github.com"); |
|
|
|
license.setEmail("airsonic@github.com"); |
|
|
|
license.setValid(true); |
|
|
|
license.setValid(true); |
|
|
|
Date farFuture = new Date(); |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
farFuture.setYear(farFuture.getYear() + 100); |
|
|
|
calendar.add(Calendar.YEAR, 100); |
|
|
|
license.setLicenseExpires(jaxbWriter.convertDate(farFuture)); |
|
|
|
XMLGregorianCalendar farFuture = jaxbWriter.convertCalendar(calendar); |
|
|
|
license.setTrialExpires(jaxbWriter.convertDate(farFuture)); |
|
|
|
license.setLicenseExpires(farFuture); |
|
|
|
|
|
|
|
license.setTrialExpires(farFuture); |
|
|
|
|
|
|
|
|
|
|
|
Response res = createResponse(); |
|
|
|
Response res = createResponse(); |
|
|
|
res.setLicense(license); |
|
|
|
res.setLicense(license); |
|
|
|