DLNA renderers, app updates told like Librarian, acquisition without Lidarr, Collection and admin rework (M502–M505, M542) #156
@@ -131,11 +131,16 @@ func TestListLibrary_MatchesARetaggedAlbum_Integration(t *testing.T) {
|
||||
AlbumID: untagged.ID, Outcome: "unmatched", Detail: "no match", Matcher: libraryMatcher}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := pool.Exec(ctx, `
|
||||
UPDATE albums SET created_at = now() - interval '2 hours' WHERE id = $1;
|
||||
UPDATE tracks SET added_at = now() - interval '2 hours' WHERE album_id = $1;
|
||||
UPDATE acquisition_settings SET library_listing_started_at = now() - interval '1 hour',
|
||||
library_listed_at = now() - interval '1 hour', library_unlisted = 1`, untagged.ID); err != nil {
|
||||
for _, stmt := range []string{
|
||||
`UPDATE albums SET created_at = now() - interval '2 hours' WHERE id = $1`,
|
||||
`UPDATE tracks SET added_at = now() - interval '2 hours' WHERE album_id = $1`,
|
||||
} {
|
||||
if _, err := pool.Exec(ctx, stmt, untagged.ID); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
if _, err := pool.Exec(ctx, `UPDATE acquisition_settings SET library_listing_started_at = now() - interval '1 hour',
|
||||
library_listed_at = now() - interval '1 hour', library_unlisted = 1`); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// The re-tag: the same tracks, under the album their new tags name.
|
||||
|
||||
Reference in New Issue
Block a user