aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-21 00:59:51 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-21 00:59:51 +0100
commita1a530b067b36b0233c3a3d1eff61680648acbd9 (patch)
tree7f4e26a2c73b371506e7b4ed40a82cceafbc6500 /youtube_dl/utils.py
parentcb9722cb3fdc9a86a52d678ba4be6c7f98296d2a (diff)
[pbs] Add support for video ratings
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index f60141bd1..7809c4e0b 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1289,3 +1289,12 @@ if sys.version_info < (3, 0) and sys.platform == 'win32':
return getpass.getpass(prompt, *args, **kwargs)
else:
compat_getpass = getpass.getpass
+
+
+US_RATINGS = {
+ 'G': 0,
+ 'PG': 10,
+ 'PG-13': 13,
+ 'R': 16,
+ 'NC': 18,
+}