From 1fc0c7f9ab5c94a5cf8765097b0a199a201bd497 Mon Sep 17 00:00:00 2001 From: txzeenath Date: Sat, 31 May 2025 22:16:05 -0400 Subject: [PATCH] Update parental guide certification mappings (#514) Reorder certifications. Add missing certifications. --- utils/const.py | 80 ++++++++++++++++++++------------------------------ 1 file changed, 32 insertions(+), 48 deletions(-) diff --git a/utils/const.py b/utils/const.py index a7b74cd..da51b65 100644 --- a/utils/const.py +++ b/utils/const.py @@ -215,59 +215,43 @@ STREAMING_PROVIDERS_SHORT_NAMES = { CERTIFICATION_MAPPING = { "All Ages": [ - "ATP", - "G", - "U", - "AL/Tous", - "Tous Publics", - "Public Averti", - "All", - "AG", - "Approved", - "0+", + "A.G.", "A/fig", "A/i", "A/i/fig", "AA", "Ai", "AL", "AL/Tous", "ALL", + "Alla", "ATP", "Approved", "Btl", "E", "FAM", "G", "General", "Genel İzleyici", + "Genel İzleyici Kitlesi", "KT", "L", "Libre", "Livre", "Públicos", + "Semua", "SU", "T", "TE", "Tous", "Tous Publics", "TP", "U", "UR", "ZA", + "0", "0+", "3", "4+", "5" ], + "Children": [ - "TV-Y", - "TV-G", - "C", - "6", - "7", - "7+", - "9", - "9+", - "10", - "10+", - "11", - "12", - "12+", - "13", - "13+", - "TV-Y7", - "TV-Y7-FV", - "TV-PG", - "PG", - "PG8", - "PG-12", - "PG-13", - "12A", - "12PG", - "RP13", - "R-13", + "6", "6+", "6A", "7", "7+", "7-9 PG", "7i", "8", "8+", "9", "9+", + "AP", "Children", "DA", "I", "K", "KN", "LH", "M/4", "M/6", "PG", + "PG8", "TV-G", "TV-Y", "TV-Y7", "TV-Y7-FV", "P" ], - "Parental Guidance": ["14A", "PG-15", "15A", "15PG", "M", "MA", "RP16", "PG12"], - "Teens": ["14", "14+", "15", "15+", "16", "16+", "R-12", "R15", "R16", "TV-14"], + + "Parental Guidance": [ + "10", "10+", "10-12 PG", "10A", "11", "12", "12+", "12A", "12PG", "12i", + "B", "BA", "GY", "M/12", "N-7", "P13", "PG-12", "PG12", "Public Averti", + "TV-PG", "VM12" + ], + + "Teens": [ + "13", "13+", "14", "14+", "14A", "15", "15+", "15A", "15PG", "16", "16+", + "B15", "C", "GA", "I.C.-14", "IIA", "IIB", "M", "M/16", "MA", + "MA 15+", "N-13", "N-16", "NC16", "PG-13", "PG-15", "R", "R-12", "R-13", "R-15+", + "R-16", "RP13", "RP16", "SAM 13", "SAM 16", "TV-14", "VM14", "VM16", "Y" + ], + "Adults": [ - "A", - "18", - "18+", - "18A", - "NC-17", - "R", - "R18", - "R-18", - "18TC", + "18", "18+", "18A", "18PA", "18PL", "18SG", "18SX", "18TC", "A", + "Caution", "D", "I.M.-18", "III", "M/18", "M18", "N-18", "NC-17", + "R(A)", "R-18", "R18", "RP18", "SAM 18", "TV-MA", "VM18", "Z", + "Unrated" + ], + + "Adults+": [ + "20", "20+", "21", "21+", "Banned", "KK", "R21", "R21+", "R-21", "R-21+", "R-21A", + "RC", "X", "X18", "X 18+", "XX", "XXX" ], - "Adults+": ["R21", "R21+", "21", "21+", "R-21", "R-21+", "R-21A", "XXX", "X"], } LANGUAGES_FILTERS = [