pmhahn+
2014-04-19 13:01:38 UTC
From: Philipp Matthias Hahn <pmhahn+***@pmhahn.de>
MythTV assumes a movie title to be unique and uses it to detect
duplicates. This breaks recordings like the German crime series
"Tator", which are categorized as "movie" by egpdata.com.
Unfortunately the XMLTV XML format has now unique identifier for
programs, which would allow tv_grab_eu_epgdata to pass d2=tvshow_id to
MythTV, which could use that as its 'programid'.
See <https://code.mythtv.org/trac/ticket/12121> for the MythTV ticket.
---
tv_grab_eu_epgdata | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tv_grab_eu_epgdata b/tv_grab_eu_epgdata
index 9e0d716..28d6314 100755
--- a/tv_grab_eu_epgdata
+++ b/tv_grab_eu_epgdata
@@ -482,7 +482,12 @@ sub printepg {
# use hardcoded categories for mythtv
if ($category eq '100') {
- push @{$prog{'category'}}, [ 'movie' ];
+ # <https://code.mythtv.org/trac/ticket/12121> MythTV uses movie titles as unique identifiers for duplicate detection
+ if ($sequence gt 0) {
+ push @{$prog{'category'}}, [ 'series' ];
+ } else {
+ push @{$prog{'category'}}, [ 'movie' ];
+ }
} elsif ($category eq '200') {
push @{$prog{'category'}}, [ 'series' ];
} elsif ($category eq '300') {
MythTV assumes a movie title to be unique and uses it to detect
duplicates. This breaks recordings like the German crime series
"Tator", which are categorized as "movie" by egpdata.com.
Unfortunately the XMLTV XML format has now unique identifier for
programs, which would allow tv_grab_eu_epgdata to pass d2=tvshow_id to
MythTV, which could use that as its 'programid'.
See <https://code.mythtv.org/trac/ticket/12121> for the MythTV ticket.
---
tv_grab_eu_epgdata | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tv_grab_eu_epgdata b/tv_grab_eu_epgdata
index 9e0d716..28d6314 100755
--- a/tv_grab_eu_epgdata
+++ b/tv_grab_eu_epgdata
@@ -482,7 +482,12 @@ sub printepg {
# use hardcoded categories for mythtv
if ($category eq '100') {
- push @{$prog{'category'}}, [ 'movie' ];
+ # <https://code.mythtv.org/trac/ticket/12121> MythTV uses movie titles as unique identifiers for duplicate detection
+ if ($sequence gt 0) {
+ push @{$prog{'category'}}, [ 'series' ];
+ } else {
+ push @{$prog{'category'}}, [ 'movie' ];
+ }
} elsif ($category eq '200') {
push @{$prog{'category'}}, [ 'series' ];
} elsif ($category eq '300') {
--
1.9.2
1.9.2