Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
Fix connect.sid instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerus committed Mar 16, 2019
1 parent fc372c3 commit 51a90be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/xerus/monstercat/api/Cache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
7 changes: 3 additions & 4 deletions src/main/xerus/monstercat/downloader/TabDownloader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 51a90be

Please sign in to comment.