From f39b4bf9cfd18f821e636b2353c69c12e1b24e03 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Sun, 14 Feb 2010 12:10:21 -0700 Subject: [PATCH] make youtube plugin notify about restricted content --- plugins/youtube.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/youtube.py b/plugins/youtube.py index 32c596c..8b314b9 100644 --- a/plugins/youtube.py +++ b/plugins/youtube.py @@ -45,4 +45,7 @@ def youtube(inp): out += ' - \x02%s\x02 on \x02%s\x02' % (j['uploader'], time.strftime("%Y.%m.%d", upload_time)) + if 'contentRating' in j: + out += ' - \x034NSFW\x02' + return out