From b63cb7c7dfe01c4b4210741649071c7ce0c29855 Mon Sep 17 00:00:00 2001 From: jduncanator Date: Sat, 22 Mar 2014 00:31:32 +1100 Subject: [PATCH] Removed unwanted words from movie titles This fixes issue #428, #484 & #438. Took some regex from that we use on the YTS site to filter 'naughty' words out! This should give consistent UX. --- js/frontend/scrapers/yts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/frontend/scrapers/yts.js b/js/frontend/scrapers/yts.js index 1d6e7fae..a7abacac 100644 --- a/js/frontend/scrapers/yts.js +++ b/js/frontend/scrapers/yts.js @@ -96,7 +96,7 @@ var Yts = Backbone.Collection.extend({ // Temporary object var movieModel = { imdb: movie.ImdbCode.replace('tt', ''), - title: movie.MovieTitleClean, + title: movie.MovieTitleClean.replace(/\([^)]*\)|1080p|DIRECTORS CUT|EXTENDED|UNRATED|3D|[()]/g, ''), year: movie.MovieYear, runtime: 0, synopsis: '',