From af0e0577cc671ba3bd6332453826a5cd789cf915 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 3 Sep 2022 22:29:47 +0200 Subject: Use ratingID rather than the Descriptor Label for metadata. It's not clear whether this is right, but it certainly seems a lot closer (e.g. for MPAA PG-13 the label was "Parents Strongly Cautioned", which is definitely not what we want). --- scripts/update-ratings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/update-ratings') diff --git a/scripts/update-ratings b/scripts/update-ratings index 5e692235..97e480e4 100755 --- a/scripts/update-ratings +++ b/scripts/update-ratings @@ -25,5 +25,5 @@ with urllib.request.urlopen('https://www.movielabs.com/md/ratings/v2.4.8/CMR_Rat print(system.Region.RegionName.get_text().title(), file=g) print(system.Region.country.get_text(), file=g) for rating in system("Rating"): - print(rating.Descriptor.Label.get_text(), file=g) + print(rating['ratingID'], file=g) -- cgit v1.2.3