Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .../TV/Server/Plugins/WebEPG/WebEPG/MPCode/TVProgram.cs | 11 +++++++++++
- .../Mediaportal/TV/Server/Plugins/XmlTvImport/Importer.cs | 12 ++++++++++++
- .../Mediaportal/TV/Server/SetupTv/Sections/TvSchedules.cs | 1 +
- .../TVDatabase/Entities/Factories/ProgramFactory.cs | 1 +
- .../TVDatabase/Entities/Factories/RecordingFactory.cs | 3 +++
- .../Mediaportal/TV/Server/TVDatabase/Entities/Program.cs | 15 +++++++++++++++
- .../TV/Server/TVDatabase/Entities/Recording.cs | 15 +++++++++++++++
- .../TV/Server/TVDatabase/EntityModel/Model.MSSQL.ssdl | 2 ++
- .../TV/Server/TVDatabase/EntityModel/Model.MSSQLCE.ssdl | 2 ++
- .../TV/Server/TVDatabase/EntityModel/Model.SQLite.ssdl | 2 ++
- .../TV/Server/TVDatabase/EntityModel/Model.edmx | 6 ++++++
- .../TV/Server/TVDatabase/EntityModel/Model.edmx.sql | 2 ++
- .../Server/TVDatabase/EntityModel/Model_SQLite.edmx.sql | 2 ++
- .../TvLibrary.Interfaces/Implementations/EpgProgram.cs | 2 ++
- .../TvLibrary.Services/DiskManagement/MatroskaMetaInfo.cs | 8 ++++++++
- .../DiskManagement/RecordingImporter.cs | 7 +++++++
- TvEngine3/Mediaportal/TV/TvPlugin/EPG/GuideBase.cs | 2 ++
- mediaportal/Core/guilib/DownloadedImage.cs | 10 ++++++++--
- mediaportal/Core/guilib/GUITextureManager.cs | 2 +-
- 19 files changed, 102 insertions(+), 3 deletions(-)
- diff --git a/TvEngine3/Mediaportal/TV/Server/Plugins/WebEPG/WebEPG/MPCode/TVProgram.cs b/TvEngine3/Mediaportal/TV/Server/Plugins/WebEPG/WebEPG/MPCode/TVProgram.cs
- index 0f973bc..0f1a440 100644
- --- a/TvEngine3/Mediaportal/TV/Server/Plugins/WebEPG/WebEPG/MPCode/TVProgram.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/Plugins/WebEPG/WebEPG/MPCode/TVProgram.cs
- @@ -46,6 +46,7 @@ namespace MediaPortal.Webepg.TV.Database
- private string _strEpisodeFullDetails = string.Empty;
- private string _strStarRating = string.Empty;
- private string _strClassification = string.Empty;
- + private string _strIcon = string.Empty;
- private long _iStartTime = 0;
- private long _iEndTime = 0;
- private int _iID = 0;
- @@ -81,6 +82,7 @@ namespace MediaPortal.Webepg.TV.Database
- prog._strEpisodePart = _strEpisodePart;
- prog._strStarRating = _strStarRating;
- prog._strClassification = _strClassification;
- + prog._strIcon = _strIcon;
- prog._strDuration = _strDuration;
- prog._strTimeFromNow = _strTimeFromNow;
- prog._strEpisodeFullDetails = _strEpisodeFullDetails;
- @@ -262,6 +264,15 @@ namespace MediaPortal.Webepg.TV.Database
- get { return _strClassification; }
- set { _strClassification = value; }
- }
- +
- + /// <summary>
- + /// Property to get/set the icon of this tv program (eg: http://www.example.com/program.jpg)
- + /// </summary>
- + public string Icon
- + {
- + get { return _strIcon; }
- + set { _strIcon = value; }
- + }
- /// <summary>
- /// Property to get the duration of this tv program
- diff --git a/TvEngine3/Mediaportal/TV/Server/Plugins/XmlTvImport/Importer.cs b/TvEngine3/Mediaportal/TV/Server/Plugins/XmlTvImport/Importer.cs
- index be641ba..076da3c 100644
- --- a/TvEngine3/Mediaportal/TV/Server/Plugins/XmlTvImport/Importer.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/Plugins/XmlTvImport/Importer.cs
- @@ -377,6 +377,7 @@ namespace Mediaportal.TV.Server.Plugins.XmlTvImport
- bool? isPreviouslyShown = null;
- List<string> subtitlesLanguages = new List<string>(10);
- string classification = null;
- + string icon = null;
- int priorityClassification = -1;
- decimal starRating = -1;
- decimal starRatingMaximum = -1;
- @@ -566,6 +567,13 @@ namespace Mediaportal.TV.Server.Plugins.XmlTvImport
- xmlProg.Skip();
- }
- break;
- + case "icon":
- + string iconSrc = TidyString(ConvertHtmlToAnsi(xmlProg.GetAttribute("src")));
- + if (!string.IsNullOrEmpty(iconSrc))
- + {
- + icon = iconSrc;
- + }
- + break;
- default:
- // unknown/unsupported, skip entire node
- xmlProg.Skip();
- @@ -633,6 +641,10 @@ namespace Mediaportal.TV.Server.Plugins.XmlTvImport
- {
- program.Classification = classification;
- }
- + if (!string.IsNullOrEmpty(icon))
- + {
- + program.Icon = icon;
- + }
- if (isHighDefinition.HasValue)
- {
- program.IsHighDefinition = isHighDefinition.Value;
- diff --git a/TvEngine3/Mediaportal/TV/Server/SetupTv/Sections/TvSchedules.cs b/TvEngine3/Mediaportal/TV/Server/SetupTv/Sections/TvSchedules.cs
- index ea26ff6..51be212 100644
- --- a/TvEngine3/Mediaportal/TV/Server/SetupTv/Sections/TvSchedules.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/SetupTv/Sections/TvSchedules.cs
- @@ -347,6 +347,7 @@ namespace Mediaportal.TV.Server.SetupTV.Sections
- }
- item.SubItems.Add(prg.OriginalAirDate.HasValue ? prg.OriginalAirDate.Value.ToString("HH:mm:ss", mmddFormat) : string.Empty);
- item.SubItems.Add(prg.Classification ?? string.Empty);
- + item.SubItems.Add(prg.Icon ?? string.Empty);
- item.SubItems.Add(prg.StarRating.HasValue ? string.Format("{0}/{1}", prg.StarRating, prg.StarRatingMaximum) : string.Empty);
- item.SubItems.Add(prg.EpisodeName ?? string.Empty);
- item.SubItems.Add(prg.EpisodePartNumber.ToString());
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/ProgramFactory.cs b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/ProgramFactory.cs
- index dfe90dc..b8b5a87 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/ProgramFactory.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/ProgramFactory.cs
- @@ -31,6 +31,7 @@ namespace Mediaportal.TV.Server.TVDatabase.Entities.Factories
- IdProgramCategory = null,
- Classification = null,
- Advisories = (int)ContentAdvisory.None,
- + Icon = null,
- IsHighDefinition = null,
- IsThreeDimensional = null,
- AudioLanguages = null,
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/RecordingFactory.cs b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/RecordingFactory.cs
- index 3d765c6..f7c91ae 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/RecordingFactory.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Factories/RecordingFactory.cs
- @@ -47,6 +47,7 @@ namespace Mediaportal.TV.Server.TVDatabase.Entities.Factories
- recording.IdProgramCategory = program.IdProgramCategory;
- recording.Classification = program.Classification;
- recording.Advisories = program.Advisories;
- + recording.Icon = program.Icon;
- recording.IsHighDefinition = program.IsHighDefinition;
- recording.IsThreeDimensional = program.IsThreeDimensional;
- recording.IsLive = program.IsLive;
- @@ -75,6 +76,7 @@ namespace Mediaportal.TV.Server.TVDatabase.Entities.Factories
- recording.IdProgramCategory = null;
- recording.Classification = null;
- recording.Advisories = (int)ContentAdvisory.None;
- + recording.Icon = null;
- recording.IsHighDefinition = null;
- recording.IsThreeDimensional = null;
- recording.IsLive = null;
- @@ -108,6 +110,7 @@ namespace Mediaportal.TV.Server.TVDatabase.Entities.Factories
- IdProgramCategory = null,
- Classification = null,
- Advisories = (int)ContentAdvisory.None,
- + Icon = null,
- IsHighDefinition = null,
- IsThreeDimensional = null,
- IsLive = null,
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Program.cs b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Program.cs
- index 0a1b5eb..d73abd9 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Program.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Program.cs
- @@ -301,6 +301,21 @@ namespace Mediaportal.TV.Server.TVDatabase.Entities
- private int _advisories;
- [DataMember]
- + public string Icon
- + {
- + get { return _icon; }
- + set
- + {
- + if (_icon != value)
- + {
- + _icon = value;
- + OnPropertyChanged("Icon");
- + }
- + }
- + }
- + private string _icon;
- +
- + [DataMember]
- public Nullable<bool> IsHighDefinition
- {
- get { return _isHighDefinition; }
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Recording.cs b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Recording.cs
- index e41a0af..021bbef 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Recording.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/Entities/Recording.cs
- @@ -315,6 +315,21 @@ namespace Mediaportal.TV.Server.TVDatabase.Entities
- }
- }
- private int _advisories;
- +
- + [DataMember]
- + public string Icon
- + {
- + get { return _icon; }
- + set
- + {
- + if (_icon != value)
- + {
- + _icon = value;
- + OnPropertyChanged("Icon");
- + }
- + }
- + }
- + private string _icon;
- [DataMember]
- public Nullable<bool> IsHighDefinition
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQL.ssdl b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQL.ssdl
- index ee41241..e91434a 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQL.ssdl
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQL.ssdl
- @@ -309,6 +309,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bit" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bit" Nullable="true" />
- <Property Name="AudioLanguages" Type="varchar" Nullable="true" MaxLength="50" />
- @@ -363,6 +364,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bit" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bit" Nullable="true" />
- <Property Name="IsLive" Type="bit" Nullable="true" />
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQLCE.ssdl b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQLCE.ssdl
- index ddbbd69..47ba43e 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQLCE.ssdl
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.MSSQLCE.ssdl
- @@ -309,6 +309,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="nvarchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="nvarchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bit" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bit" Nullable="true" />
- <Property Name="AudioLanguages" Type="nvarchar" Nullable="true" MaxLength="50" />
- @@ -363,6 +364,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="nvarchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="nvarchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bit" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bit" Nullable="true" />
- <Property Name="IsLive" Type="bit" Nullable="true" />
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.SQLite.ssdl b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.SQLite.ssdl
- index 966d815..3b4a4ef 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.SQLite.ssdl
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.SQLite.ssdl
- @@ -309,6 +309,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bit" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bit" Nullable="true" />
- <Property Name="AudioLanguages" Type="varchar" Nullable="true" MaxLength="50" />
- @@ -363,6 +364,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bit" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bit" Nullable="true" />
- <Property Name="IsLive" Type="bit" Nullable="true" />
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx
- index c1c7019..5daba20 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx
- @@ -314,6 +314,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bool" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bool" Nullable="true" />
- <Property Name="AudioLanguages" Type="varchar" Nullable="true" MaxLength="50" />
- @@ -368,6 +369,7 @@
- <Property Name="IdProgramCategory" Type="int" Nullable="true" />
- <Property Name="Classification" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="Advisories" Type="int" Nullable="false" />
- + <Property Name="Icon" Type="varchar" Nullable="true" MaxLength="200" />
- <Property Name="IsHighDefinition" Type="bool" Nullable="true" />
- <Property Name="IsThreeDimensional" Type="bool" Nullable="true" />
- <Property Name="IsLive" Type="bool" Nullable="true" />
- @@ -1382,6 +1384,7 @@
- <Property Type="Int32" Name="IdProgramCategory" Nullable="true" />
- <Property Type="String" Name="Classification" Nullable="true" MaxLength="200" Unicode="false" FixedLength="false" />
- <Property Type="Int32" Name="Advisories" Nullable="false" />
- + <Property Type="String" Name="Icon" Nullable="true" MaxLength="200" Unicode="false" FixedLength="false" />
- <Property Type="Boolean" Name="IsHighDefinition" Nullable="true" />
- <Property Type="Boolean" Name="IsThreeDimensional" Nullable="true" />
- <Property Type="String" Name="AudioLanguages" Nullable="true" MaxLength="50" Unicode="false" FixedLength="false" />
- @@ -1444,6 +1447,7 @@
- <Property Type="Int32" Name="IdProgramCategory" Nullable="true" />
- <Property Type="String" Name="Classification" Nullable="true" MaxLength="200" Unicode="false" FixedLength="false" />
- <Property Type="Int32" Name="Advisories" Nullable="false" />
- + <Property Type="String" Name="Icon" Nullable="true" MaxLength="200" Unicode="false" FixedLength="false" />
- <Property Type="Boolean" Name="IsHighDefinition" Nullable="true" />
- <Property Type="Boolean" Name="IsThreeDimensional" Nullable="true" />
- <Property Type="Boolean" Name="IsLive" Nullable="true" />
- @@ -2303,6 +2307,7 @@
- <ScalarProperty Name="IdProgramCategory" ColumnName="IdProgramCategory" />
- <ScalarProperty Name="Classification" ColumnName="Classification" />
- <ScalarProperty Name="Advisories" ColumnName="Advisories" />
- + <ScalarProperty Name="Icon" ColumnName="Icon" />
- <ScalarProperty Name="IsHighDefinition" ColumnName="IsHighDefinition" />
- <ScalarProperty Name="IsThreeDimensional" ColumnName="IsThreeDimensional" />
- <ScalarProperty Name="AudioLanguages" ColumnName="AudioLanguages" />
- @@ -2360,6 +2365,7 @@
- <ScalarProperty Name="IdProgramCategory" ColumnName="IdProgramCategory" />
- <ScalarProperty Name="Classification" ColumnName="Classification" />
- <ScalarProperty Name="Advisories" ColumnName="Advisories" />
- + <ScalarProperty Name="Icon" ColumnName="Icon" />
- <ScalarProperty Name="IsHighDefinition" ColumnName="IsHighDefinition" />
- <ScalarProperty Name="IsThreeDimensional" ColumnName="IsThreeDimensional" />
- <ScalarProperty Name="IsLive" ColumnName="IsLive" />
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx.sql b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx.sql
- index b579186..9dd517a 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx.sql
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model.edmx.sql
- @@ -254,6 +254,7 @@ CREATE TABLE `Programs`(
- `IdProgramCategory` int,
- `Classification` varchar (200),
- `Advisories` int NOT NULL,
- + `Icon` varchar (200),
- `IsHighDefinition` bool,
- `IsThreeDimensional` bool,
- `AudioLanguages` varchar (50),
- @@ -314,6 +315,7 @@ CREATE TABLE `Recordings`(
- `IdProgramCategory` int,
- `Classification` varchar (200),
- `Advisories` int NOT NULL,
- + `Icon` varchar (200),
- `IsHighDefinition` bool,
- `IsThreeDimensional` bool,
- `IsLive` bool,
- diff --git a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model_SQLite.edmx.sql b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model_SQLite.edmx.sql
- index 0db8dee..b6d41dc 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model_SQLite.edmx.sql
- +++ b/TvEngine3/Mediaportal/TV/Server/TVDatabase/EntityModel/Model_SQLite.edmx.sql
- @@ -296,6 +296,7 @@ CREATE TABLE "Programs" (
- "IdProgramCategory" int NULL,
- "Classification" varchar(200) NULL COLLATE NOCASE,
- "Advisories" int NOT NULL,
- + "Icon" varchar(200) NULL COLLATE NOCASE,
- "IsHighDefinition" bit NULL,
- "IsThreeDimensional" bit NULL,
- "AudioLanguages" varchar(50) NULL COLLATE NOCASE,
- @@ -380,6 +381,7 @@ CREATE TABLE "Recordings" (
- "IdProgramCategory" int NULL,
- "Classification" varchar(200) NULL COLLATE NOCASE,
- "Advisories" int NOT NULL,
- + "Icon" varchar(200) NULL COLLATE NOCASE,
- "IsHighDefinition" bit NULL,
- "IsThreeDimensional" bit NULL,
- "IsLive" bit NULL,
- diff --git a/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/Implementations/EpgProgram.cs b/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/Implementations/EpgProgram.cs
- index cf91d0a..6d3efd5 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/Implementations/EpgProgram.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TvLibrary.Interfaces/Implementations/EpgProgram.cs
- @@ -42,6 +42,7 @@ namespace Mediaportal.TV.Server.TVLibrary.Interfaces.Implementations
- public IList<string> Categories { get; set; }
- public IDictionary<string, string> Classifications { get; set; }
- public ContentAdvisory Advisories { get; set; }
- + public string Icon { get; set; }
- public bool? IsHighDefinition { get; set; }
- public bool? IsThreeDimensional { get; set; }
- public IList<string> AudioLanguages { get; set; }
- @@ -75,6 +76,7 @@ namespace Mediaportal.TV.Server.TVLibrary.Interfaces.Implementations
- Categories = new List<string>();
- Classifications = new Dictionary<string, string>();
- Advisories = ContentAdvisory.None;
- + Icon = null;
- IsHighDefinition = null;
- IsThreeDimensional = null;
- AudioLanguages = new List<string>();
- diff --git a/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/MatroskaMetaInfo.cs b/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/MatroskaMetaInfo.cs
- index e3e2edb..21d9189 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/MatroskaMetaInfo.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/MatroskaMetaInfo.cs
- @@ -52,6 +52,7 @@ namespace Mediaportal.TV.Server.TVLibrary.DiskManagement
- public DateTime? OriginalAirDate = null;
- public string Classification = null;
- public ContentAdvisory Advisories = ContentAdvisory.None;
- + public string Icon = null;
- public bool? IsHighDefinition = null;
- public bool? IsThreeDimensional = null;
- public bool? IsLive = null;
- @@ -232,6 +233,12 @@ namespace Mediaportal.TV.Server.TVLibrary.DiskManagement
- info.Advisories = advisories;
- }
- break;
- + case "ICON":
- + if (!string.IsNullOrEmpty(tagValue))
- + {
- + info.Icon = tagValue;
- + }
- + break;
- case "IS_HIGH_DEFINITION":
- bool isHighDefinition;
- if (bool.TryParse(tagValue, out isHighDefinition))
- @@ -341,6 +348,7 @@ namespace Mediaportal.TV.Server.TVLibrary.DiskManagement
- tagNode.AppendChild(AddSimpleTag("GENRE", ProgramCategory ?? string.Empty, doc));
- tagNode.AppendChild(AddSimpleTag("CLASSIFICATION", Classification ?? string.Empty, doc));
- tagNode.AppendChild(AddSimpleTag("ADVISORIES", Advisories.ToString(), doc));
- + tagNode.AppendChild(AddSimpleTag("ICON", Icon ?? string.Empty, doc));
- tagNode.AppendChild(AddSimpleTag("IS_HIGH_DEFINITION", IsHighDefinition.ToString(), doc));
- tagNode.AppendChild(AddSimpleTag("IS_THREE_DIMENSIONAL", IsThreeDimensional.ToString(), doc));
- tagNode.AppendChild(AddSimpleTag("IS_LIVE", IsLive.ToString(), doc));
- diff --git a/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/RecordingImporter.cs b/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/RecordingImporter.cs
- index c0fe42d..2ae7ece 100644
- --- a/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/RecordingImporter.cs
- +++ b/TvEngine3/Mediaportal/TV/Server/TvLibrary.Services/DiskManagement/RecordingImporter.cs
- @@ -153,6 +153,7 @@ namespace Mediaportal.TV.Server.TVLibrary.DiskManagement
- r.OriginalAirDate = info.OriginalAirDate;
- r.Classification = info.Classification;
- r.Advisories = (int)info.Advisories;
- + r.Icon = info.Icon;
- r.IsHighDefinition = info.IsHighDefinition;
- r.IsThreeDimensional = info.IsThreeDimensional;
- r.IsLive = info.IsLive;
- @@ -224,6 +225,11 @@ namespace Mediaportal.TV.Server.TVLibrary.DiskManagement
- {
- r.Classification = info.Rating;
- }
- +
- + if (!string.IsNullOrEmpty(info.Icon))
- + {
- + r.Icon = info.Icon;
- + }
- Channel channel = GetChannelByMediaTypeAndName(channelsByName, mediaType, new List<string> { info.ChannelDisplayName });
- if (channel != null)
- @@ -271,6 +277,7 @@ namespace Mediaportal.TV.Server.TVLibrary.DiskManagement
- r.IsPreviouslyShown = true;
- }
- r.Classification = info.Classification;
- + r.Icon = info.Icon;
- r.IsHighDefinition = info.IsHighDefinition;
- r.IsLive = info.IsLive;
- r.ProductionYear = info.ProductionYear;
- diff --git a/TvEngine3/Mediaportal/TV/TvPlugin/EPG/GuideBase.cs b/TvEngine3/Mediaportal/TV/TvPlugin/EPG/GuideBase.cs
- index d189193..18abacf 100644
- --- a/TvEngine3/Mediaportal/TV/TvPlugin/EPG/GuideBase.cs
- +++ b/TvEngine3/Mediaportal/TV/TvPlugin/EPG/GuideBase.cs
- @@ -1110,6 +1110,7 @@ namespace Mediaportal.TV.TvPlugin.EPG
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.Date", String.Empty);
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.StarRating", String.Empty);
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.Classification", String.Empty);
- + GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.Icon", String.Empty);
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.Duration", String.Empty);
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.DurationMins", String.Empty);
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.TimeFromNow", String.Empty);
- @@ -1144,6 +1145,7 @@ namespace Mediaportal.TV.TvPlugin.EPG
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.TimeFromNow", GetStartTimeFromNow(_currentProgram.Entity));
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.Episode", _currentProgram.Entity.EpisodeNumber > 0 ? _currentProgram.Entity.EpisodeNumber.ToString() : string.Empty);
- GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.SubTitle", _currentProgram.Entity.EpisodeName ?? string.Empty);
- + GUIPropertyManager.SetProperty(SkinPropertyPrefix + ".Guide.Icon", _currentProgram.Entity.Icon ?? string.Empty);
- if (string.IsNullOrEmpty(_currentProgram.Entity.Classification))
- {
- diff --git a/mediaportal/Core/guilib/DownloadedImage.cs b/mediaportal/Core/guilib/DownloadedImage.cs
- index e29e5a0..26a8a15 100644
- --- a/mediaportal/Core/guilib/DownloadedImage.cs
- +++ b/mediaportal/Core/guilib/DownloadedImage.cs
- @@ -50,10 +50,12 @@ namespace MediaPortal.GUI.Library
- {
- string tempFile = Config.GetFile(Config.Dir.Thumbs, String.Format("MPTemp{0}.gif", x));
- string tempFile2 = Config.GetFile(Config.Dir.Thumbs, String.Format("MPTemp{0}.jpg", x));
- - string tempFile3 = Config.GetFile(Config.Dir.Thumbs, String.Format("MPTemp{0}.bmp", x));
- + string tempFile3 = Config.GetFile(Config.Dir.Thumbs, String.Format("MPTemp{0}.png", x));
- + string tempFile4 = Config.GetFile(Config.Dir.Thumbs, String.Format("MPTemp{0}.bmp", x));
- if (!File.Exists(tempFile) &&
- !File.Exists(tempFile2) &&
- - !File.Exists(tempFile3))
- + !File.Exists(tempFile3) &&
- + !File.Exists(tempFile4))
- {
- return tempFile;
- }
- @@ -126,6 +128,10 @@ namespace MediaPortal.GUI.Library
- {
- extension = ".jpg";
- }
- + if (contentType.IndexOf("png") >= 0)
- + {
- + extension = ".png";
- + }
- if (contentType.IndexOf("bmp") >= 0)
- {
- extension = ".bmp";
- diff --git a/mediaportal/Core/guilib/GUITextureManager.cs b/mediaportal/Core/guilib/GUITextureManager.cs
- index 45fdc68..e6e3025 100644
- --- a/mediaportal/Core/guilib/GUITextureManager.cs
- +++ b/mediaportal/Core/guilib/GUITextureManager.cs
- @@ -158,7 +158,7 @@ namespace MediaPortal.GUI.Library
- return "";
- }
- string lowerFileName = fileName.ToLowerInvariant().Trim();
- - if (lowerFileName.IndexOf(@"http:") >= 0)
- + if (lowerFileName.IndexOf(@"http:") >= 0 || lowerFileName.IndexOf(@"https:") >= 0)
- {
- DownloadedImage image;
- if (!_cacheDownload.TryGetValue(lowerFileName, out image))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement