140 chars in synopsis

This commit is contained in:
reality 2014-06-02 02:13:04 +00:00
parent 6990a10d9c
commit 628b7bc378

View File

@ -24,6 +24,7 @@ var rt = function(dbot) {
if(_.has(m, 'directors')) mString += ' [Director: ' + m.directors[0] + ']'; if(_.has(m, 'directors')) mString += ' [Director: ' + m.directors[0] + ']';
if(_.has(m, 'genres')) mString += ' [Genre: ' + m.genres[0] + ']'; if(_.has(m, 'genres')) mString += ' [Genre: ' + m.genres[0] + ']';
if(_.has(m, 'synopsis') && m.synopsis != '') { if(_.has(m, 'synopsis') && m.synopsis != '') {
if(m.synopsis.length > 140) m.synopsis = m.synopsis.substring(0, 140) + '...';
mString += ' [Synopsis: ' + m.synopsis + ']'; mString += ' [Synopsis: ' + m.synopsis + ']';
} else if(_.has(m, 'critics_consensus')) { } else if(_.has(m, 'critics_consensus')) {
mString += ' [Review: ' + m.critics_consensus + ']'; mString += ' [Review: ' + m.critics_consensus + ']';