2017-07-28, 12:04
(2017-07-28, 11:25)fred_gaou Wrote: I think there is a bug about MPAA.
If you use this setting:
MPAA→ON
Certifications→ON→limit→USA
Use certifications for MPAA→ON
Only if no MPAA is found→ON
Then if no MPAA found, in NFO:
Certification is filled with found value (ex: USA:Approved)
MPAA data remains empty instead of being filled with USA:Approved
BUT if you use the same setting just replacing this one:
Certifications→ON→limit→France
Then if no MPAA found, in NFO:
Certification is still filled with found value (ex: France:U)
But MPAA data is properly filled with France:U
Movie tested: 12 Angry Men
NFO certification and MPAA data cleaned up before each test with a refresh in EMM.
How is that?
Same issue if you try to force with these settings:
MPAA→OFF
Certifications→ON→limit→USA
Use certifications for MPAA→ON
Only if no MPAA is found→OFF
Yes, it's a bug.
We use a converting table if the certification limit is set to "USA":
Code:
Public Shared Function USACertToMPAA(ByVal sCert As String) As String
If String.IsNullOrEmpty(sCert) Then Return String.Empty
Select Case sCert.ToLower
Case "usa:g"
Return "Rated G"
Case "usa:pg"
Return "Rated PG"
Case "usa:pg-13"
Return "Rated PG-13"
Case "usa:r"
Return "Rated R"
Case "usa:nc-17"
Return "Rated NC-17"
End Select
Return String.Empty
End Function
As you can see the value "usa:approved" and "usa:not-approved" will not be considered and the result will be an empty string. The certifications "approved" and "not approved" are very old MPAA ratings from a time before MPAA also recommended the age for each movie. I will fix the bug in this way:
Code:
Public Shared Function USACertToMPAA(ByVal sCert As String) As String
If String.IsNullOrEmpty(sCert) Then Return String.Empty
Select Case sCert.ToLower
Case "usa:g"
Return "Rated G"
Case "usa:pg"
Return "Rated PG"
Case "usa:pg-13"
Return "Rated PG-13"
Case "usa:r"
Return "Rated R"
Case "usa:nc-17"
Return "Rated NC-17"
Case "usa:approved"
Return "Approved"
Case "usa:not-approved"
Return "Not Approved"
Case Else
Return sCert
End Select
End Function
Has been fixed for next release: Github