Skip to content

Commit

Permalink
Merge pull request #2 from AlphaCentaury/v1.5-alpha-4
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
AlphaCentaury authored Aug 2, 2016
2 parents bffee6c + 05e8f88 commit 0b7316d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 1.5 'Kruger 60'/Logos/Services/domain-mappings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Logos-Domains xmlns="http://movistartv.codeplex.com/schema/2015:Configuration:Mappings">
<Package name="&lt;default&gt;">
<Mapping domainName="DVB-IPTV" mandatory="true">generic</Mapping>
<Mapping domainName="IPTV" mandatory="true">generic</Mapping>
</Package>
<Package name="movistarTV">
<Mapping domainName="DEM_1.imagenio.es" mandatory="false">imagenio.es</Mapping>
Expand Down
17 changes: 14 additions & 3 deletions 1.5 'Kruger 60'/UiServices.Config/Logos/ServiceLogoMappings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,25 @@ public ServiceLogo Get(string serviceDomainName, string providerDomain, string s

partialPath = GetFolderForDomain((serviceLogos.DomainRedirection == null) ? serviceDomainName : serviceLogos.DomainRedirection);

return new ServiceLogo(BasePathLogos, partialPath, logoFile,
string.Format(Properties.InvariantTexts.FormatServiceLogoKey, logoFile, partialPath));
return GetLogo(partialPath, logoFile);
} // while

// obtain default icon
// avoid infinite recursion if default domain name contains no logos or doesn't exists
if (providerDomain == Properties.InvariantTexts.DefaultDomainNameServiceLogo)
{
return GetLogo("unknown", "unknown");
} // if

// obtain default logo
return Get(null, Properties.InvariantTexts.DefaultDomainNameServiceLogo, serviceTypeId, serviceTypeId);
} // Get

ServiceLogo GetLogo(string partialPath, string logoFile)
{
return new ServiceLogo(BasePathLogos, partialPath, logoFile,
string.Format(Properties.InvariantTexts.FormatServiceLogoKey, logoFile, partialPath));
} // GetLogo

public ServiceLogo FromServiceKey(string serviceKey)
{
int pos;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="DefaultDomainNameProviderLogo" xml:space="preserve">
<value>IPTV</value>
<value>DBV-IPTV</value>
</data>
<data name="DefaultDomainNameServiceLogo" xml:space="preserve">
<value>IPTV</value>
Expand Down

0 comments on commit 0b7316d

Please sign in to comment.