]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
xmltv parser: add UHD support
authorJaroslav Kysela <perex@perex.cz>
Wed, 27 Jan 2016 18:45:43 +0000 (19:45 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 Jan 2016 18:45:43 +0000 (19:45 +0100)
src/epggrab/module/xmltv.c

index 851517890de62191815485a90c9176ae99c69982..b5edb515a64fe74bde4633237dd5e3be631a2f77 100644 (file)
@@ -261,6 +261,8 @@ xmltv_parse_vid_quality
   if ((str = htsmsg_xml_get_cdata_str(m, "quality"))) {
     if (strstr(str, "HD")) {
       hd    = 1;
+    } else if (strstr(str, "UHD")) {
+      hd    = 2;
     } else if (strstr(str, "480")) {
       lines  = 480;
       aspect = 150;
@@ -275,6 +277,14 @@ xmltv_parse_vid_quality
       lines  = 1080;
       hd     = 1;
       aspect = 178;
+    } else if (strstr(str, "1716")) {
+      lines  = 1716;
+      hd     = 2;
+      aspect = 239;
+    } else if (strstr(str, "2160")) {
+      lines  = 2160;
+      hd     = 2;
+      aspect = 178;
     }
   }
   if ((str = htsmsg_xml_get_cdata_str(m, "aspect"))) {