Ticket #13215: finnish-eit.2.patch

File finnish-eit.2.patch, 1.7 KB (added by dag@…, 21 months ago)

Fixed patch

Line 
1*** eitfixup.cpp.original       2018-02-04 13:28:40.387224914 +0200
2--- eitfixup.cpp        2018-02-04 13:56:59.778378868 +0200
3***************
4*** 144,149 ****
5--- 144,151 ----
6        m_RTLEpisodeNo2("^(\\d{1,2}\\/[IVX]+)\\.*\\s*"),
7        m_fiRerun("\\ ?Uusinta[a-zA-Z\\ ]*\\.?"),
8        m_fiRerun2("\\([Uu]\\)"),
9+       m_fiAgeLimit("\\(1?[0-9ST]?\\)$"),
10+       m_fiFilm("^(Film|Elokuva): "),
11        m_dePremiereLength("\\s?[0-9]+\\sMin\\."),
12        m_dePremiereAirdate("\\s?([^\\s^\\.]+)\\s((?:1|2)[0-9]{3})\\."),
13        m_dePremiereCredits("\\sVon\\s([^,]+)(?:,|\\su\\.\\sa\\.)\\smit\\s([^\\.]*)\\."),
14***************
15*** 1924,1929 ****
16--- 1926,1950 ----
17          event.audioProps |= AUD_STEREO;
18          event.description = event.description.replace(m_Stereo, "");
19      }
20+
21+     // Remove age limit in parenthesis at end of title
22+     // Added 4.2.2017 dag@newtech.fi
23+
24+     position = event.title.indexOf(m_fiAgeLimit);
25+     if (position != -1)
26+     {
27+         event.title = event.title.replace(m_fiAgeLimit, "");
28+     }
29+
30+     // Remove Film or Elokuva at start of title
31+     // Added 4.2.2017 dag@newtech.fi
32+
33+     position = event.title.indexOf(m_fiFilm);
34+     if (position != -1)
35+     {
36+         event.title = event.title.replace(m_fiFilm, "");
37+     }
38+
39  }
40 
41  /** \fn EITFixUp::FixPremiere(DBEventEIT&) const
42
43*** eitfixup.h.original 2018-02-04 14:13:16.551771756 +0200
44--- eitfixup.h  2018-02-04 14:14:03.854354584 +0200
45***************
46*** 212,217 ****
47--- 212,219 ----
48      const QRegExp m_RTLEpisodeNo2;
49      const QRegExp m_fiRerun;
50      const QRegExp m_fiRerun2;
51+     const QRegExp m_fiAgeLimit;
52+     const QRegExp m_fiFilm;
53      const QRegExp m_dePremiereLength;
54      const QRegExp m_dePremiereAirdate;
55      const QRegExp m_dePremiereCredits;