1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Setting to alter recommended videos display

This commit is contained in:
Cadence Ember 2021-08-16 22:37:12 +12:00
parent 21629de594
commit 739f537bc7
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
6 changed files with 32 additions and 3 deletions

View file

@ -20,6 +20,10 @@ let constants = {
quality: {
type: "integer",
default: 0
},
recommended_mode: {
type: "integer",
default: 0
}
},

View file

@ -48,6 +48,11 @@ const deltas = [
function() {
db.prepare("CREATE TABLE Filters (id INTEGER, token TEXT NOT NULL, type TEXT NOT NULL, data TEXT NOT NULL, label TEXT, PRIMARY KEY (id))")
.run()
},
// 7: Settings +recommended_mode
function() {
db.prepare("ALTER TABLE Settings ADD COLUMN recommended_mode INTEGER DEFAULT 0")
.run()
}
]