make youtube plugin notify about restricted content

This commit is contained in:
Ryan Hitchman 2010-02-14 12:10:21 -07:00
parent 56c1119443
commit f39b4bf9cf
1 changed files with 3 additions and 0 deletions

View File

@ -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