mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-04 10:26:02 -05:00
Unspecified videos are "movies", media_kind=2
media_kind=2 (Movies) indicates a regular video, that is, a video that isn't a TV Show (media_kind=64). Also fix up the system playlist for Movies, and that brings us to DB schema_version 5.
This commit is contained in:
parent
f85fa927c8
commit
12e0c9268d
6
src/db.c
6
src/db.c
@ -3060,7 +3060,7 @@ db_perthread_deinit(void)
|
||||
|
||||
#define Q_PL3 \
|
||||
"INSERT INTO playlists (id, title, type, query, db_timestamp, path, idx, special_id)" \
|
||||
" VALUES(3, 'Movies', 1, 'media_kind = 32', 0, '', 0, 4);"
|
||||
" VALUES(3, 'Movies', 1, 'media_kind = 2', 0, '', 0, 4);"
|
||||
|
||||
#define Q_PL4 \
|
||||
"INSERT INTO playlists (id, title, type, query, db_timestamp, path, idx, special_id)" \
|
||||
@ -3075,9 +3075,9 @@ db_perthread_deinit(void)
|
||||
*/
|
||||
|
||||
|
||||
#define SCHEMA_VERSION 4
|
||||
#define SCHEMA_VERSION 5
|
||||
#define Q_SCVER \
|
||||
"INSERT INTO admin (key, value) VALUES ('schema_version', '4');"
|
||||
"INSERT INTO admin (key, value) VALUES ('schema_version', '5');"
|
||||
|
||||
struct db_init_query {
|
||||
char *query;
|
||||
|
@ -376,6 +376,11 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi)
|
||||
/* I have no idea why this is, but iTunes reports a media kind of 64 for stik==10 (?!) */
|
||||
mfi->media_kind = 64;
|
||||
}
|
||||
/* Unspecified video files are "Movies", media_kind 2 */
|
||||
else if (mfi->has_video == 1)
|
||||
{
|
||||
mfi->media_kind = 2;
|
||||
}
|
||||
|
||||
skip_extract:
|
||||
if (mdcount == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user