Parental Control Plugin

Discuss third-party additions, plugins and translations for PS3 Media Server

Parental Control Plugin

Postby ramses » Mon Nov 30, 2009 11:42 am

Some movies are definitively not for children's eyes. Thats why I've created proof of concept code, which adds parental control to the ps3 media server (based on svn version 412). But this only makes sense if your kids haven't physical access to the server.
Download for testing purposes:
http://ps3ms-parental-control-plugin.googlecode.com/files/pms-setup-windows-1.20.412ra1.exe (Windows)
http://ps3ms-parental-control-plugin.googlecode.com/files/pms-generic-linux-unix-1.20.412ra1.tgz

You can see it in action http://www.youtube.com/watch?v=eDc_83GY83Y

You can add parental control to each movie (RealFile) by creating an INI-file with the same filename and extension "ini". If you want to lock a complete folder, put a file called "folder.ini" in this folder. Modify and put the following content to the INI-file.

This is a proof of concept version! Parameters could be changed.
Code: Select all
; The [content] section describes the movie
; "title" overwrites the filename (you never need to rename the files)
; "description" is very optional
[content]
title="Demo (PEGI-12)"
description="Demo for PEGI-12 rating"

; The [parental control] section describes the movie rating
; You can use different standards with their valid values
; SPCL: Sony Parental Control Level 1 to 11
; PEGI: 3,7,12,16,18
; FSK:  0,6,12,16,18
; MPAA: G,PG,PG-13,R,NC-17
; "icon" sets the thumbnail icon group
[parental control]
MPAA=PG-13
PEGI=12
FSK=12
icon=PEGI

; The [lock] section will lock the movie until you entered the valid code
; This section is independent of [parental control]
; Only if you set a "code" the movie will be locked
; You can give an alternative "title" to display
; "icon" overwrites the [parental control] "icon" group + value
; The code may not contain double digits e.g. 11 or 22 ...
[lock]
title="Locked PEGI-12 Title (nothing for kids)"
code=359
icon=red



The [content] section describes the movie.
title overwrites the filename (you never need to rename the files). Multiple files with the same title are possible.
description is very optional.

The [parental control] section describes the movie rating.
You can use different standards with their valid values.
SPCL: Sony Parental Control Level 1 to 11
PEGI: 3,7,12,16,18
FSK: 0,6,12,16,18
MPAA: G,PG,PG-13,R,NC-17
icon sets the thumbnail icon group and overwrites the common thumbnail settings.

The [lock] section will lock the movie until you entered the valid code.
This section is independent of [parental control]. Only if you set a code the movie will be locked.
You can give an alternative title to display.
icon overwrites the [parental control] icon group + value combination and sets a colored padlock.
e.g. icon=red
Following colors are available: black,blue,gray,green,orange,pink,red,violet
The code may not contain double digits e.g. 11 or 22 ... because the digit input "bounces".

The shortest INI-file to lock a movie is:
Code: Select all
[lock]
code=123


Known bugs and limitations:
  • It is (currently) only possible to set the unlock-code per server (not per renderer)
  • There are no icons for MPAA and Sony Parental Control Level
  • There are no size and duration in the PS3 movie information dialog, because this information cannot be refreshed
Last edited by ramses on Thu Dec 09, 2010 9:04 pm, edited 8 times in total.
ramses
 
Posts: 8
Joined: Mon Nov 30, 2009 8:08 am

Re: Parental Control

Postby shagrath » Mon Nov 30, 2009 10:34 pm

wow, that's just great :D
It seems you made some substantial changes (the server section for example, with nice looking icons)
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: Parental Control

Postby WorldOfHurt » Tue Dec 01, 2009 10:30 am

You guys never cease to amaze me. Bravo.

This is a beautifully simple idea. It needs to be in the main build, like, yesterday :)
User avatar
WorldOfHurt
 
Posts: 252
Joined: Thu Mar 19, 2009 10:49 pm
Location: Winchester, UK

Re: Parental Control

Postby traffiq » Tue Dec 01, 2009 2:13 pm

Very nice approach.

I dont think that the structure really matters.

If you provide a patch of your system for the last revision i could hack
around and build a little interface for it.
traffiq
 
Posts: 7
Joined: Tue Dec 01, 2009 2:09 pm

Re: Parental Control

Postby ramses » Thu Dec 03, 2009 9:05 am

I'll do some more tests and if successful, I submit a patch or jar here.
ramses
 
Posts: 8
Joined: Mon Nov 30, 2009 8:08 am

Re: Parental Control

Postby traffiq » Thu Dec 03, 2009 1:05 pm

Im excited ;)

maybe it would be a nice feature to query imdb for movie rating.

So you could lock everything that not suitable for person under a certain "age".

For example lock all movies that are rated R or X.
traffiq
 
Posts: 7
Joined: Tue Dec 01, 2009 2:09 pm

Re: Parental Control

Postby Hexperience » Wed Dec 09, 2009 7:05 pm

Thank you. This is the exact feature I've been looking for. I'm removing TVe... that other one right now. PS3MS all the way.

I tried PS3MS ages ago, but I didn't really give it much of a look. Now I see the features for PS3 are top of the line. MKVs with Subs no less!

Is there any way to help test the parental controls? If you need testers let me know...

CHEERS
Hexperience
 
Posts: 3
Joined: Wed Dec 09, 2009 6:54 pm

Re: Parental Control

Postby ramses » Mon Dec 14, 2009 4:08 pm

You can download the proof of concept version for testing purposes. Use the links on top of this post.
ramses
 
Posts: 8
Joined: Mon Nov 30, 2009 8:08 am

Re: Parental Control

Postby Hexperience » Sun Dec 27, 2009 9:48 pm

traffiq wrote:Im excited ;)

maybe it would be a nice feature to query imdb for movie rating.

So you could lock everything that not suitable for person under a certain "age".

For example lock all movies that are rated R or X.


Even more simple, lock by folder. I have folders just for kids movies and folders for everything else. It would be great to just lock at the folder level. But I'm really happy to get a chance to play with this! Locking by file is fine too...

I'm not too bad with Perl scripting so I might be able to make a little script to lock all the files based on an Internet look up. I certainly can make a script to create a basic control .ini for each file in a folder. Just edit the script a bit then run it on the next folder.

I'll post the perl script here if that's ok?
Hexperience
 
Posts: 3
Joined: Wed Dec 09, 2009 6:54 pm

Re: Parental Control

Postby Hexperience » Mon Dec 28, 2009 2:39 pm

To quickly lock all files in a folder, I did this from a windows xp command line in the folder I wanted to lock:

notepad lock.txt (this creates a template file or you can use one you already have. In my lock.txt file all I have is the [lock] and code= lines)

Once that is saved, execute this command line:

Code: Select all
for /f "delims=" %a IN ('dir /b *.vob *.mkv *.mp4') do copy lock.txt "%~na.ini"


This will copy your lock.txt template file to the each file (every .vob .mkv and .mp4 in this case, change the file extensions as needed)

Cheers...
Hexperience
 
Posts: 3
Joined: Wed Dec 09, 2009 6:54 pm

Next

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 3 guests