Skip to content

Commit

Permalink
feat: chapters support for downloaded videos
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Apr 6, 2024
1 parent f889b36 commit afa5a31
Show file tree
Hide file tree
Showing 16 changed files with 763 additions and 77 deletions.
48 changes: 46 additions & 2 deletions app/schemas/com.github.libretube.db.AppDatabase/17.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 17,
"identityHash": "30434ae9f3be749f074b6c8a786f27ca",
"identityHash": "e855c945119df154adaf1ecfe9e3b646",
"entities": [
{
"tableName": "watchHistoryItem",
Expand Down Expand Up @@ -491,6 +491,50 @@
}
]
},
{
"tableName": "downloadChapters",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `videoId` TEXT NOT NULL, `name` TEXT NOT NULL, `start` INTEGER NOT NULL, `thumbnailUrl` TEXT NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "videoId",
"columnName": "videoId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "start",
"columnName": "start",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "thumbnailUrl",
"columnName": "thumbnailUrl",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "subscriptionGroups",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `channels` TEXT NOT NULL, `index` INTEGER NOT NULL, PRIMARY KEY(`name`))",
Expand Down Expand Up @@ -527,7 +571,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '30434ae9f3be749f074b6c8a786f27ca')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'e855c945119df154adaf1ecfe9e3b646')"
]
}
}
Loading

0 comments on commit afa5a31

Please sign in to comment.