Ticket #2318: xmltv-incrtagsupport.patch

File xmltv-incrtagsupport.patch, 1.4 KB (added by who.am.i@…, 19 years ago)

Patch to increase XMLTV tag detection support

  • filldata.cpp

    old new  
    14641464            {
    14651465                parseCredits(info, pginfo);
    14661466            }
     1467            else if (info.tagName() == "subtitles" && info.attribute("type") == "teletext")
     1468            {
     1469                pginfo->closecaptioned = true;
     1470            }
     1471            else if (info.tagName() == "video")
     1472            {
     1473                // Just a simply <video> hack to get HDTV in XMLTV working
     1474                //
     1475                // This is a lazy copy and paste implementation, probably
     1476                // requires work to clean up and optimize, but it works, and
     1477                // that's the main thing :)
     1478                QDomNodeList values = info.elementsByTagName("quality");
     1479                QDomElement item;
     1480                for (unsigned int i = 0; i < values.length(); i++)
     1481                {
     1482                    item = values.item(i).toElement();
     1483                    if (item.isNull())
     1484                        continue;
     1485                     pginfo->hdtv = true;
     1486                }
     1487            }
    14671488            else if (info.tagName() == "episode-num" &&
    14681489                     info.attribute("system") == "xmltv_ns")
    14691490            {
     
    15051525                }
    15061526            }
    15071527            else if (info.tagName() == "episode-num" &&
    1508                      info.attribute("system") == "onscreen" &&
     1528                     info.attribute("type") == "onscreen" &&
    15091529                     pginfo->subtitle.isEmpty())
    15101530            {
    15111531                 pginfo->catType = "series";