mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-03 16:41:26 +01:00
feat(ios): notify when a show gains episodes
A BGProcessingTask runs the same crawl_for_news no sooner than every six hours, when iOS chooses. A processing task rather than an app refresh, since a crawl of a large share does not fit in thirty seconds.
This commit is contained in:
1 parent
4b9cbd26bc
commit
d4e9628199
6 files changed
+114
-1
No files matched your search
@@ -72,6 +72,12 @@ struct SettingsStore {
|
||||
nonmutating set { defaults.set(newValue, forKey: Key.libraryGrouped) }
|
||||
}
|
||||
|
||||
/// Whether a background crawl may say that a show gained episodes.
|
||||
var newEpisodeNotifications: Bool {
|
||||
get { bool(Key.newEpisodeNotifications, default: true) }
|
||||
nonmutating set { defaults.set(newValue, forKey: Key.newEpisodeNotifications) }
|
||||
}
|
||||
|
||||
static let filters: [LibraryFilter] = [.all, .series, .films, .watching, .unwatched, .downloaded]
|
||||
private static let sorts: [LibrarySort] = [.name, .recent, .added, .release, .rating, .popularity]
|
||||
|
||||
@@ -88,5 +94,6 @@ struct SettingsStore {
|
||||
static let libraryFilter = "library_filter"
|
||||
static let libraryGrouped = "library_grouped"
|
||||
static let metadataOfferDismissed = "metadata_offer_dismissed"
|
||||
static let newEpisodeNotifications = "new_episode_notifications"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user