Update changelog

This commit is contained in:
0xb00bface 2023-11-12 14:09:35 +01:00
parent be9ec437ef
commit 540956fc99
5 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,10 @@
5.2.1
========================
* Fixed playlist parsing for Dreamcam
* Fixed adding models in the web interface
* Added help section to web interface (thx @Jafea for the idea)
* Added re-run post-processing to web interface (thx @Jafea)
5.2.0
========================
* Fix Chaturbate browsing

View File

@ -58,10 +58,10 @@ public abstract class AbstractDocServlet extends HttpServlet {
List<String> pages = new ArrayList<>();
URL resource = getClass().getResource(CLASSPATH_DIR);
if (Objects.equals(resource.getProtocol(), "file")) {
log.debug("FILE {}", resource);
log.trace("FILE {}", resource);
indexDirectory(resource, pages);
} else if (Objects.equals(resource.getProtocol(), "jar")) {
log.debug("JAR {}", resource);
log.trace("JAR {}", resource);
indexJar(resource, pages);
}
pages.add("index.md");

View File

@ -18,7 +18,7 @@ public class MarkdownServlet extends AbstractDocServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
String path = req.getRequestURI();
log.debug("Path: [{}]", path);
log.trace("Path: [{}]", path);
try {
if (Objects.equal(path, getBaseDir() + "/index.md")) {
listPages(resp);

View File

@ -43,7 +43,6 @@ public class SearchServlet extends AbstractDocServlet {
}
private void searchPages(JSONArray result, List<String> pages, String[] tokens) throws IOException {
LOG.debug(pages.toString());
for (String page : pages) {
try {
String content = loadMarkdown(CLASSPATH_DIR + "/" + page).toLowerCase();

View File

@ -42,7 +42,7 @@ public class MVLiveModel extends AbstractModel {
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException {
if (ignoreCache) {
String urlHandle = getDisplayName().toLowerCase().replace(" ", "-");
String url = "https://creator-api.vidchat.manyvids.com/creator?urlHandle=" + URLEncoder.encode(urlHandle, UTF_8);
String url = "https://api.vidchat.manyvids.com/creator?urlHandle=" + URLEncoder.encode(urlHandle, UTF_8);
Request req = new Request.Builder()
.url(url)
.header(USER_AGENT, Config.getInstance().getSettings().httpUserAgent)