diff options
author | sr55 <[email protected]> | 2018-07-07 12:20:34 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-07-07 12:20:34 +0100 |
commit | fb1fe80d8cc9c65a1e3a030c0c61a81134c5efe2 (patch) | |
tree | 9d5b794fe33f84fd70930de1f3659819a4105095 /win/CS/HandBrakeWPF/Services/Encode | |
parent | 29e80bc54f423afefd45881e5e11a45bc002af6c (diff) |
WinGui: Tidyup around the Scan Objects. Complete some incomplete models. Introduce a factory for Title objects.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs | 1 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs | 37 |
2 files changed, 26 insertions, 12 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs index 8396a584f..3e133c5fa 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs @@ -611,6 +611,7 @@ namespace HandBrakeWPF.Services.Encode.Factories if (job.MetaData != null) { metaData.Artist = job.MetaData.Artist; + metaData.Album = job.MetaData.Album; metaData.AlbumArtist = job.MetaData.AlbumArtist; metaData.Comment = job.MetaData.Comment; metaData.Composer = job.MetaData.Composer; diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs index e86212a39..02dc02ffb 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs @@ -9,13 +9,13 @@ namespace HandBrakeWPF.Services.Encode.Model.Models { + using HandBrakeWPF.Services.Scan.Model; + /// <summary> /// The meta data. /// </summary> public class MetaData { - private string albumArtist; - /// <summary> /// Initializes a new instance of the <see cref="MetaData"/> class. /// </summary> @@ -34,6 +34,7 @@ namespace HandBrakeWPF.Services.Encode.Model.Models if (metadata != null) { this.AlbumArtist = metadata.AlbumArtist; + this.Album = metadata.Album; this.Artist = metadata.Artist; this.Comment = metadata.Comment; this.Composer = metadata.Composer; @@ -45,22 +46,34 @@ namespace HandBrakeWPF.Services.Encode.Model.Models } } - /// <summary> - /// Gets or sets the album artist. - /// </summary> - public string AlbumArtist + public MetaData(Metadata metadata) { - get - { - return this.albumArtist; - } - set + if (metadata != null) { - this.albumArtist = value; + this.AlbumArtist = metadata.AlbumArtist; + this.Album = metadata.Album; + this.Artist = metadata.Artist; + this.Comment = metadata.Comment; + this.Composer = metadata.Composer; + this.Description = metadata.Description; + this.Genre = metadata.Genre; + this.LongDescription = metadata.LongDescription; + this.Name = metadata.Name; + this.ReleaseDate = metadata.ReleaseDate; } } /// <summary> + /// Gets or sets the album artist. + /// </summary> + public string AlbumArtist { get; set; } + + /// <summary> + /// Gets or sets the album. + /// </summary> + public string Album { get; set; } + + /// <summary> /// Gets or sets the artist. /// </summary> public string Artist { get; set; } |