Skip to content

Commit

Permalink
bugfix on grabbing epg
Browse files Browse the repository at this point in the history
  • Loading branch information
agree committed Feb 26, 2005
1 parent f91e0a6 commit 354fde0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions mediaportal/TVCapture/DVBEPG.cs
Expand Up @@ -77,6 +77,7 @@ public int SetEITToDatabase(DVBSections.EITDescr data,string channelName,int eve
tv.Genre=data.genere_text;
tv.Title=data.event_name;
tv.Description=data.event_item_text;
//
if(tv.Description==null)
tv.Description="";

Expand All @@ -85,7 +86,7 @@ public int SetEITToDatabase(DVBSections.EITDescr data,string channelName,int eve
tv.Description=data.event_text;
Log.Write("epg-grab: used short description");
}

//
if(data.eeLanguageCode!=null)
Log.Write("epg-grab: language-code={0}",data.eeLanguageCode);

Expand Down Expand Up @@ -294,8 +295,14 @@ public int GetEPG(DShowNET.IBaseFilter filter,int serviceID)

if(lenShort!=3 && lenExtended!=3)
continue;

if(lang.ToLower().Equals(codeSE))
{
ignoreFlag=false;
break;
}

if(lang.ToLower().Equals(codeEE) || lang.ToLower().Equals(codeSE))
if(lang.ToLower().Equals(codeEE))
{
ignoreFlag=false;
break;
Expand Down

0 comments on commit 354fde0

Please sign in to comment.