Index: mythvideo/mythvideo/scripts/imdb.pl
===================================================================
--- mythvideo/mythvideo/scripts/imdb.pl	(revision 14883)
+++ mythvideo/mythvideo/scripts/imdb.pl	(working copy)
@@ -201,6 +201,31 @@
        $movierating = parseBetween($movierating, ">", "<");
    }
 
+   # Convert MPAA Rating into Parental Rating
+   my $parentalrating;
+   if ($movierating =~ m/USA:G|Rated G/i) {
+       $parentalrating = "1"
+       }
+   elsif ($movierating =~ m/USA:PG-13|Rated PG-13|Rated PG13/i) {
+       $parentalrating = "3"
+       }
+   elsif ($movierating =~ m/USA:PG|Rated PG/i) {
+       $parentalrating = "2"
+       }
+   elsif ($movierating =~ m/USA:R|Rated R/i) {
+       $parentalrating = "4"
+       }
+   elsif ($movierating =~ m/USA:NC-17|Rated NC-17|Rated NC17/i) {
+       $parentalrating = "4"
+       }
+   elsif ($movierating =~ m/USA:X|Rated X/i) {
+       $parentalrating = "4"
+       }
+   else
+       {
+       $parentalrating = "1"
+       }  
+
    # parse movie length
    my $rawruntime = trim(parseBetween($response, ">Runtime:</h5>", "</div>"));
    my $runtime = trim(parseBetween($rawruntime, "", " min"));
@@ -246,6 +271,7 @@
    print "Cast: $cast\n";
    print "Genres: $lgenres\n";
    print "Countries: $lcountries\n";
+   print "ParentalRating: $parentalrating\n";
 }
 
 # dump Movie Poster
Index: mythvideo/mythvideo/videomanager.cpp
===================================================================
--- mythvideo/mythvideo/videomanager.cpp	(revision 14883)
+++ mythvideo/mythvideo/videomanager.cpp	(working copy)
@@ -643,6 +643,7 @@
         curitem->setUserRating(data["UserRating"].toFloat());
         curitem->setRating(data["MovieRating"]);
         curitem->setLength(data["Runtime"].toInt());
+        curitem->setShowLevel(ParentalLevel::Level (data["ParentalRating"].toInt()));
 
         //movieGenres
         Metadata::genre_list movie_genres;
