1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-06-01 06:56:48 +00:00

Add shorts identification by thumbnails

This commit is contained in:
Cadence Ember 2026-05-27 22:52:13 +12:00
parent 095dc3f918
commit 21c3f624b0
7 changed files with 235 additions and 5 deletions

View file

@ -34,7 +34,7 @@ class User {
this.token = token
}
/** @return {{instance?: string, save_history?: boolean, local?: boolean, quality?: number}} */
/** @return {{instance?: string, save_history?: boolean, show_shorts?: boolean, local?: number, quality?: number}} */
getSettings() {
if (this.token) {
return db.prepare("SELECT * FROM Settings WHERE token = ?").get(this.token) || {}
@ -43,7 +43,7 @@ class User {
}
}
/** @return {{instance?: string, save_history?: boolean, local?: boolean, quality?: number}} */
/** @return {{instance?: string, save_history?: boolean, show_shorts?: boolean, local?: number, quality?: number}} */
getSettingsOrDefaults() {
const settings = this.getSettings()
for (const key of Object.keys(constants.user_settings)) {