Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .phrasey/schema.toml
Original file line number Diff line number Diff line change
Expand Up @@ -762,3 +762,6 @@ name = "KeepScreenAwakeOnLyrics"

[[keys]]
name = "MinSongDurationFilter"

[[keys]]
name = "ArtistCount"
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ dependencies {
implementation(libs.fuzzywuzzy)
implementation(libs.kotlinx.serialization.json)
implementation(libs.lifecycle.runtime)
implementation(libs.media)
implementation(libs.media3)
implementation(libs.media3.session)
implementation(libs.okhttp3)
ksp(libs.room.compiler)
implementation(libs.room.ktx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "03822e08bb41204b4a0237835b616d5b",
"identityHash": "62b63bbc48d6e0426718cdc16623be30",
"entities": [
{
"tableName": "songs",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `album` TEXT, `artists` TEXT NOT NULL, `composers` TEXT NOT NULL, `albumArtists` TEXT NOT NULL, `genres` TEXT NOT NULL, `trackNumber` INTEGER, `trackTotal` INTEGER, `discNumber` INTEGER, `discTotal` INTEGER, `date` TEXT, `year` INTEGER, `duration` INTEGER NOT NULL, `bitrate` INTEGER, `samplingRate` INTEGER, `channels` INTEGER, `encoder` TEXT, `dateModified` INTEGER NOT NULL, `size` INTEGER NOT NULL, `coverFile` TEXT, `uri` TEXT NOT NULL, `path` TEXT NOT NULL, PRIMARY KEY(`id`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `album` TEXT, `track_number` INTEGER, `track_total` INTEGER, `disc_number` INTEGER, `disc_total` INTEGER, `date` TEXT, `year` INTEGER, `duration` INTEGER NOT NULL, `bitrate` INTEGER, `sampling_rate` INTEGER, `channels` INTEGER, `encoder` TEXT, `date_modified` INTEGER NOT NULL, `size` INTEGER NOT NULL, `cover_file` TEXT, `uri` TEXT NOT NULL, `path` TEXT NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`id`) REFERENCES `song_files`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
Expand All @@ -21,56 +21,32 @@
"notNull": true
},
{
"fieldPath": "album",
"fieldPath": "albumId",
"columnName": "album",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "artists",
"columnName": "artists",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "composers",
"columnName": "composers",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "albumArtists",
"columnName": "albumArtists",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "genres",
"columnName": "genres",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "trackNumber",
"columnName": "trackNumber",
"columnName": "track_number",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "trackTotal",
"columnName": "trackTotal",
"columnName": "track_total",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "discNumber",
"columnName": "discNumber",
"columnName": "disc_number",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "discTotal",
"columnName": "discTotal",
"columnName": "disc_total",
"affinity": "INTEGER",
"notNull": false
},
Expand Down Expand Up @@ -100,7 +76,7 @@
},
{
"fieldPath": "samplingRate",
"columnName": "samplingRate",
"columnName": "sampling_rate",
"affinity": "INTEGER",
"notNull": false
},
Expand All @@ -118,7 +94,7 @@
},
{
"fieldPath": "dateModified",
"columnName": "dateModified",
"columnName": "date_modified",
"affinity": "INTEGER",
"notNull": true
},
Expand All @@ -130,7 +106,7 @@
},
{
"fieldPath": "coverFile",
"columnName": "coverFile",
"columnName": "cover_file",
"affinity": "TEXT",
"notNull": false
},
Expand All @@ -154,13 +130,25 @@
]
},
"indices": [],
"foreignKeys": []
"foreignKeys": [
{
"table": "song_files",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"id"
],
"referencedColumns": [
"id"
]
}
]
}
],
"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, '03822e08bb41204b4a0237835b616d5b')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '62b63bbc48d6e0426718cdc16623be30')"
]
}
}
Loading
Loading