mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-07 13:56:37 +08:00
fix: align scraped media naming and release sorting
This commit is contained in:
@@ -24,6 +24,9 @@ func mergeCloudMetadata(dst, src *LocalMetadata) *LocalMetadata {
|
||||
if src.Year > 0 {
|
||||
dst.Year = src.Year
|
||||
}
|
||||
if src.ReleaseDate != "" {
|
||||
dst.ReleaseDate = src.ReleaseDate
|
||||
}
|
||||
if src.Overview != "" {
|
||||
dst.Overview = src.Overview
|
||||
}
|
||||
@@ -86,6 +89,9 @@ func mergeCloudPathHintMetadata(dst, hint *LocalMetadata) *LocalMetadata {
|
||||
if dst.Year == 0 {
|
||||
dst.Year = hint.Year
|
||||
}
|
||||
if dst.ReleaseDate == "" {
|
||||
dst.ReleaseDate = hint.ReleaseDate
|
||||
}
|
||||
if dst.TMDbID == 0 {
|
||||
dst.TMDbID = hint.TMDbID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user