feat: custom downloader and downloader location (#313)
* feat: custom downloader (novel broken) * fix: send headers to ffmpeg ffmpeg can be a real bitch to work with * fix: offline page for new download system * feat: novel to new system | load freezing * chore: clean manifest * fix: notification incrementing * feat: changing the downloads dir
This commit is contained in:
parent
75e90541c9
commit
720b40afa7
35 changed files with 1162 additions and 1018 deletions
|
@ -46,11 +46,11 @@ class CommentNotificationTask : Task {
|
|||
)
|
||||
|
||||
notifications =
|
||||
notifications?.filter { it.type != 3 || it.notificationId > recentGlobal }
|
||||
notifications?.filter { !it.type.isGlobal() || it.notificationId > recentGlobal }
|
||||
?.toMutableList()
|
||||
|
||||
val newRecentGlobal =
|
||||
notifications?.filter { it.type == 3 }?.maxOfOrNull { it.notificationId }
|
||||
notifications?.filter { it.type.isGlobal() }?.maxOfOrNull { it.notificationId }
|
||||
if (newRecentGlobal != null) {
|
||||
PrefManager.setVal(PrefName.RecentGlobalNotification, newRecentGlobal)
|
||||
}
|
||||
|
@ -313,4 +313,6 @@ class CommentNotificationTask : Task {
|
|||
null
|
||||
}
|
||||
}
|
||||
|
||||
private fun Int?.isGlobal() = this == 3 || this == 420
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue