[mythtv-commits] Ticket #10098: Australian EIT Fixups

MythTV noreply at mythtv.org
Sat Sep 17 02:01:12 UTC 2016


#10098: Australian EIT Fixups
-----------------------------+----------------------------
 Reporter:  lexvictory@…     |          Owner:  stuarta
     Type:  Patch - Feature  |         Status:  new
 Priority:  minor            |      Milestone:  0.27
Component:  MythTV - EIT     |        Version:  0.24-fixes
 Severity:  medium           |     Resolution:
 Keywords:  eit, australia   |  Ticket locked:  0
-----------------------------+----------------------------
Changes (by matt@…):

 * status:  closed => new
 * resolution:  fixed =>


Comment:

 I would like to suggest the following changes which I have tested for a
 long time using a script to send recordings to a NAS. Other people have
 also been using this script on the mythtv forum and have not reported
 issues so these changes are tested.

 The lines I use are: TVTITLE=echo "$TVTITLE" | sed 's/Movie Premiere: //g'
 | sed 's/- Season Premiere//g' | sed 's/Movie: //g' | sed 's/://g' | sed
 's/?//g' | sed 's/,//g'

 TVSUBTITLE=echo "$TVSUBTITLE" | sed 's/\[RPT\] //g' | sed 's/(R) //g' |
 sed 's/ - //g' | sed 's/(G) //g' | sed 's/(AV) //g' | sed 's/(M) //g' |
 sed 's/(PG) //g' | sed 's/\[CC\] //g' | sed 's/(MA) //g'

 These variables in my script come directly from a user job from the
 backend passing the title and subtitle.

 To decode these lines I'm sure you know sed but I'll give two examples...

 The title in Australia from EIT can look like..

 Movie Premiere: Shrek 11

 Notice the space between the two as the first sed turns it into....

 Skrek 11

 Next example..

 The Office- Season Premiere

 after my script it turns to

 The Office

 Also the subtitle causes issues if the recording rules are set to detect
 the episode has already been recorded based on description and subtitle
 which is the default in mythtv. The station broadcasts a show more than
 once in a week and adds [RPT] to show it is a repeat. Mythtv sees it as
 different and records the show twice.

 Not a complete list of issues, but after getting sick of filtering out the
 junk I switched to Shepherd for my guidedata so have not been updating my
 script to keep up with the junk that goes into the guide.

 Hope the above helps. As a feature request, would it be a better idea to
 just add in the ability for users to add and remove sed commands from a
 script file? This way each country can instantly make changes as they see
 fit.

 TitleFilter?.sh

 SubtitleFilter?.sh

 and mythtv runs these to process / filter the data as it is sent to the
 database?

--
Ticket URL: <https://code.mythtv.org/trac/ticket/10098#comment:13>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list