Opened 12 years ago

Closed 12 years ago

#4180 closed enhancement (fixed)

Patch to add Auto-Parental-Set to IMDB Script

Reported by: robert.mcnamara@… Owned by: Anduin Withers
Priority: minor Milestone: 0.21
Component: mythvideo Version: head
Severity: medium Keywords: Mythvideo, IMDB
Cc: Ticket locked: no

Description

Hi All,

First patch here, and not a real coder so please be gentle on what little I have done here. I added a bit to imdb.pl and videomanager.cpp to auto-set Parental Level according to MPAA rating. The bit that cross references ratings to Parental levels is in imdb.pl, and there's just a single line add to videomanager.cpp. This could benefit from a toggle box to enable/disable in the setup, but it's probably beyond my ability. This compiles against SVN 14879.

Thanks, and again, be gentle!

Attachments (3)

imdbpatch.patch (1.9 KB) - added by robert.mcnamara@… 12 years ago.
Patch to add automatic Parental Levels.
imdbpatch.2.patch (1.9 KB) - added by robert.mcnamara@… 12 years ago.
Updated Patch (4 parental levels instead of 5)
imdbpatch.3.patch (1.9 KB) - added by robert.mcnamara@… 12 years ago.
New version of patch to work with SVN revision 15154

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by robert.mcnamara@…

Attachment: imdbpatch.patch added

Patch to add automatic Parental Levels.

Changed 12 years ago by robert.mcnamara@…

Attachment: imdbpatch.2.patch added

Updated Patch (4 parental levels instead of 5)

Changed 12 years ago by robert.mcnamara@…

Attachment: imdbpatch.3.patch added

New version of patch to work with SVN revision 15154

comment:1 Changed 12 years ago by Anduin Withers

Resolution: fixed
Status: newclosed

Closed by [15265]

Closes #4180

Loosely based on the patch contributed by the, less-Strange, Robert McNamara?.

If enabled, this will assign parental levels based on common character sequences existing in the rating string returned from an external search (the matching could be improved).

Note: See TracTickets for help on using tickets.