make youtube plugin notify about restricted content
This commit is contained in:
parent
56c1119443
commit
f39b4bf9cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue