[mythtv] RFE and patch

Dag Nygren dag at newtech.fi
Sun Feb 4 13:10:51 UTC 2018


On söndag 4 februari 2018 kl. 12:35:57 EET Torbjorn Jansson wrote:

> if it is eit then it sounds like you need to write a custom eitfixup for
> your provider.
> as i remember it you have one function to cleanup the eit data and there is
> a table that triggers the fixup when eit is collected on the correct
> network id or similar.
> (this is just from memory, was a while since i worked on eit fixups)

Couldn't resist and most of the work was already done for
me.Can someone commit this or what s the official procedure ?

This is applied to a pull some hour ago.

========= Start of patch ============


*** eitfixup.cpp.original       2018-02-04 13:28:40.387224914 +0200
--- eitfixup.cpp        2018-02-04 13:56:59.778378868 +0200
***************
*** 144,149 ****
--- 144,151 ----
        m_RTLEpisodeNo2("^(\\d{1,2}\\/[IVX]+)\\.*\\s*"),
        m_fiRerun("\\ ?Uusinta[a-zA-Z\\ ]*\\.?"),
        m_fiRerun2("\\([Uu]\\)"),
+       m_fiAgeLimit("\\([1-9ST]*\\)$"),
+       m_fiFilm("^(Film|Elokuva): "),
        m_dePremiereLength("\\s?[0-9]+\\sMin\\."),
        m_dePremiereAirdate("\\s?([^\\s^\\.]+)\\s((?:1|2)[0-9]{3})\\."),
        m_dePremiereCredits("\\sVon\\s([^,]+)(?:,|\\su\\.\\sa\\.)\\smit\\s([^\
\.]*)\\."),
***************
*** 1924,1929 ****
--- 1926,1950 ----
          event.audioProps |= AUD_STEREO;
          event.description = event.description.replace(m_Stereo, "");
      }
+ 
+     // Remove age limit in parenthesis at end of title
+     // Added 4.2.2017 dag at newtech.fi
+ 
+     position = event.title.indexOf(m_fiAgeLimit);
+     if (position != -1)
+     {
+         event.title = event.title.replace(m_fiAgeLimit, "");
+     }
+ 
+     // Remove Film or Elokuva at start of title
+     // Added 4.2.2017 dag at newtech.fi
+ 
+     position = event.title.indexOf(m_fiFilm);
+     if (position != -1)
+     {
+         event.title = event.title.replace(m_fiFilm, "");
+     }
+ 
  }

*** eitfixup.h.original 2018-02-04 14:13:16.551771756 +0200
--- eitfixup.h  2018-02-04 14:14:03.854354584 +0200
***************
*** 212,217 ****
--- 212,219 ----
      const QRegExp m_RTLEpisodeNo2;
      const QRegExp m_fiRerun;
      const QRegExp m_fiRerun2;
+     const QRegExp m_fiAgeLimit;
+     const QRegExp m_fiFilm;
      const QRegExp m_dePremiereLength;
      const QRegExp m_dePremiereAirdate;
      const QRegExp m_dePremiereCredits;

========= End of patch ============

Hope it gets in so I don't have to patch every pull :-)

Thanks again, Torbjörn!
Dag


More information about the mythtv-dev mailing list