Skip to content

Commit ee50abe

Browse files
committed
fix(torrent): make the save path configurable
1 parent fbb26a5 commit ee50abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/kotlin/amarr/torrent/TorrentApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fun Application.torrentApi(amuleClient: AmuleClient, categoryStore: CategoryStor
2323
call.respondText("Ok.")
2424
}
2525
get("/api/v2/app/preferences") {
26-
call.respond(Preferences())
26+
call.respond(Preferences(save_path = finishedPath))
2727
}
2828
post("/api/v2/torrents/add") {
2929
val params = call.receiveParameters()

app/src/main/kotlin/amarr/torrent/model/Preferences.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ data class Preferences(
126126
val rss_processing_enabled: Boolean = false,
127127
val rss_refresh_interval: Int = 30,
128128
val rss_smart_episode_filters: String = "s(\\d+)e(\\d+)\n(\\d+)x(\\d+)\n(\\d{4}[.\\-]\\d{1,2}[.\\-]\\d{1,2})\n(\\d{1,2}[.\\-]\\d{1,2}[.\\-]\\d{4})",
129-
val save_path: String = "/media/usb-luca/Downloads",
129+
val save_path: String,
130130
val save_path_changed_tmm_enabled: Boolean = false,
131131
val save_resume_data_interval: Int = 60,
132132
val schedule_from_hour: Int = 8,

0 commit comments

Comments
 (0)