summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2014-09-02 12:38:05 +0200
committerJochen Dolze <vdr@dolze.de>2014-09-02 12:38:05 +0200
commitb48e0bec3c87531c872da028d4fb87c65f3e050e (patch)
tree927d7f898d81aa8be35a5a3a5c39cd3626c3c692
parent15cce10b7822cf94166b296204994e78fe2c9b28 (diff)
downloadvdr-plugin-xmltv2vdr-b48e0bec3c87531c872da028d4fb87c65f3e050e.tar.gz
vdr-plugin-xmltv2vdr-b48e0bec3c87531c872da028d4fb87c65f3e050e.tar.bz2
Added statements to debug eplist compare
-rw-r--r--parse.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/parse.cpp b/parse.cpp
index c2890d3..a2ab767 100644
--- a/parse.cpp
+++ b/parse.cpp
@@ -104,6 +104,7 @@ void cParse::RemoveNonAlphaNumeric(char *String, bool InDescription)
// remove " Teil " (special for .episodes files)
int len=strlen(String);
char *p=strstr(String," Teil ");
+ if (!p) p=strstr(String,"(Teil ");
if (p)
{
memmove(p,p+6,len-6);
@@ -364,6 +365,11 @@ bool cParse::FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const cha
tsyslog("trying to find shorttext for '%s', with '%s'",Title,dshorttext);
}
+#undef DEBCMP
+
+#ifdef DEBCMP
+ tsyslog("dshorttext=%s",dshorttext);
+#endif
char *line=NULL;
size_t length;
@@ -393,7 +399,9 @@ bool cParse::FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const cha
{
strcpy(depshorttext,epshorttext); // ok lets try with the original text
}
-
+#ifdef DEBCMP
+ tsyslog("depshorttext=%s",depshorttext);
+#endif
if (!strcasecmp(dshorttext,depshorttext))
{
// exact match
@@ -485,6 +493,9 @@ bool cParse::FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const cha
}
if (found)
{
+#ifdef DEBCMP
+ tsyslog("found shorttext '%s'",*EPShortText);
+#endif
if (!ShortText)
{
tsyslog("found shorttext '%s' with description of '%s'",*EPShortText,Title);