diff --git a/src/main/xerus/monstercat/api/Cache.kt b/src/main/xerus/monstercat/api/Cache.kt index 4722bcc..2d27062 100644 --- a/src/main/xerus/monstercat/api/Cache.kt +++ b/src/main/xerus/monstercat/api/Cache.kt @@ -42,7 +42,7 @@ object Cache: Refresher() { private suspend fun refreshReleases() { logger.debug("Release refresh requested") val releaseConnection = APIConnection("catalog", "release") - .fields(Release::class).limit(((currentSeconds() - lastRefresh) / 80_000).coerceIn(2, 5)) + .fields(Release::class).limit(((currentSeconds() - lastRefresh) / 80_000).coerceIn(2, 9)) lastRefresh = currentSeconds() lastCookie = CONNECTSID() diff --git a/src/main/xerus/monstercat/downloader/TabDownloader.kt b/src/main/xerus/monstercat/downloader/TabDownloader.kt index b065d09..29f0699 100644 --- a/src/main/xerus/monstercat/downloader/TabDownloader.kt +++ b/src/main/xerus/monstercat/downloader/TabDownloader.kt @@ -329,7 +329,6 @@ class TabDownloader : VTab() { addRow(TextField(CONNECTSID()).apply { promptText = "connect.sid" - // todo better instructions tooltip = Tooltip("Log in on monstercat.com from your browser, find the cookie \"connect.sid\" from \"connect2.monstercat.com\" and copy the content into here") val textListener = textProperty().debounce(400) { text -> CONNECTSID.set(text) @@ -340,11 +339,11 @@ class TabDownloader : VTab() { Alert(Alert.AlertType.NONE, null, ButtonType.OK).apply { title = "How to get your connect.sid" dialogPane.content = VBox( - Label("""Log in on monstercat.com from your browser, go to your browser's cookies (usually somewhere in settings), find the cookie "connect.sid" from "connect2.monstercat.com" and copy the content into the Textfield. It should start with with "s%3A"."""), - HBox(Label("If you use Chrome, you can simply copy-paste this into your browser after logging in:"), TextField().apply { + Label("""Log in on monstercat.com from your browser, go to your browser's cookies (usually somewhere in settings), find the cookie "connect.sid" from "connect.monstercat.com" and copy the content into the Textfield. It should start with with "s%3A"."""), + HBox(Label("If you use Chrome, you can simply paste this into the address bar after logging in:"), TextField().apply { isEditable = false maxWidth = Double.MAX_VALUE - text = "chrome://settings/cookies/detail?site=connect2.monstercat.com" + text = "chrome://settings/cookies/detail?site=connect.monstercat.com" onFx { prefWidth = Text(text).let { it.font = font