[mythtv] [PATCH] mythfilldatabase and proglist/movie
Steven Cruysberghs
steven.cruysberghs at tiscali.be
Fri Jul 23 11:24:39 EDT 2004
This patch adds a little hack for Belgian and Dutch tv grabbers.
It fills up "category type" with the word Film if it is empty and this
is the value for "category" (like it was already doing for the uk grabber)
Also a little update to the movie lister in mythfrontend to also use the
word "Film".
If you are in the UK, Belgium or Holland, make sure to change to change
your mythweb/config/conf.php to this :
// Movie word
define('movie_word', 'Film');
That wil give you working "Film" listing in mythweb.
Steven
-------------- next part --------------
? filldata.Film.patch
Index: filldata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfilldatabase/filldata.cpp,v
retrieving revision 1.125
diff -u -d -r1.125 filldata.cpp
--- filldata.cpp 16 Jul 2004 08:04:18 -0000 1.125
+++ filldata.cpp 23 Jul 2004 15:10:42 -0000
@@ -1281,10 +1281,10 @@
pginfo->catType = cat;
}
- if (cat == "Film" && !isNorthAmerica)
+ if (((cat == "Film") || (cat == "film")) && !isNorthAmerica)
{
- // Hack for tv_grab_uk_rt
- pginfo->catType = cat;
+ // Hack for tv_grab_uk_rt and pytv_grab_be and tv_grab_nl
+ pginfo->catType = "Film";
}
}
else if (info.tagName() == "date" && pginfo->airdate == "")
-------------- next part --------------
? proglist.Film.patch
Index: proglist.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/proglist.cpp,v
retrieving revision 1.36
diff -u -d -r1.36 proglist.cpp
--- proglist.cpp 27 Jun 2004 19:25:20 -0000 1.36
+++ proglist.cpp 23 Jul 2004 15:04:54 -0000
@@ -748,6 +748,7 @@
" AND program.endtime > %1 "
" AND oldprogram.oldtitle IS NULL "
" AND ((program.category_type <> 'movie' "
+ " AND program.category_type <> 'Film' "
" AND programid NOT LIKE \"MV\%\") "
" OR program.airdate >= "
" YEAR(NOW() - INTERVAL 2 YEAR)) "
@@ -806,6 +807,7 @@
where = QString("WHERE channel.visible = 1 "
" AND program.endtime > %1 "
" AND (program.category_type = 'movie' "
+ " OR program.category_type = 'Film' "
" OR programid LIKE \"MV\%\") ")
.arg(startTime.toString("yyyyMMddhhmm50"));
}
More information about the mythtv-dev
mailing list