feat: support track level year tags (#661)
* [ PR Year @ Track-level ] This resolves issue #549 * Update db/migrations.go Co-authored-by: Senan Kelly <senan@senan.xyz> * [ PR #661 ] Fixes proposed by Sentriz (file indentation, simpler call to functions) * [ PR #661 ] Fix File indentation for construct_by_folder * [ PR #661 ] Set known tracks year field to their parent (album) year value ; until next deep scan. * [ PR #661 ] Fix database field names in sql query * Update db/migrations.go Co-authored-by: Senan Kelly <senan@senan.xyz> * Update db/migrations.go Co-authored-by: Senan Kelly <senan@senan.xyz> --------- Co-authored-by: Senan Kelly <senan@senan.xyz>
This commit is contained in:
co-authored by
Senan Kelly
parent
d42ce531c6
commit
e4a07750e4
No files matched your search
@@ -79,13 +79,13 @@ func NewTCTrackByFolder(t *db.Track, parent *db.Album) *TrackChild {
|
||||
),
|
||||
ParentID: parent.SID(),
|
||||
Duration: t.Length,
|
||||
Year: parent.TagYear,
|
||||
Bitrate: t.Bitrate,
|
||||
IsDir: false,
|
||||
Type: "music",
|
||||
MusicBrainzID: t.TagBrainzID,
|
||||
CreatedAt: t.CreatedAt,
|
||||
AverageRating: formatRating(t.AverageRating),
|
||||
Year: t.TagYear,
|
||||
}
|
||||
if trCh.Title == "" {
|
||||
trCh.Title = t.Filename
|
||||
|
||||
Reference in New Issue
Block a user