Skip to content

Commit

Permalink
Removed unwanted words from movie titles
Browse files Browse the repository at this point in the history
This fixes issue #428, #484 & popcorn-time#438. Took some regex from that we use on the YTS site to filter 'naughty' words out! This should give consistent UX.
  • Loading branch information
jduncanator committed Mar 21, 2014
1 parent 42ea178 commit b63cb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/frontend/scrapers/yts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit b63cb7c

Please sign in to comment.