flexget.utils.parsers.parser module#

class flexget.utils.parsers.parser.TitleParser[source]#

Bases: object

static ireplace(data, old, new, count=0, not_in_word=False)[source]#

Case-insensitive string replace.

static re_not_in_word(regexp)[source]#
static remove_words(text, words, not_in_word=False)[source]#

Clean all given :words: from :text: case insensitively.

static strip_spaces(text)[source]#

Remove all unnecessary duplicate spaces from a text.

codecs = ['x264', 'x.264', 'h264', 'h.264', 'XViD']#
cutoffs = ['limited', 'xvid', 'h264', 'x264', 'h.264', 'x.264', 'screener', 'unrated', '3d', 'extended', 'directors', "director's", 'multisubs', 'dubbed', 'subbed', 'multi', 'special', 'bonus', 'extra', 'omake', 'ova', 'dc', 'extended', 'uncut', 'remastered', 'unrated', 'theatrical', 'chrono', 'se']#
editions = ['dc', 'extended', 'uncut', 'remastered', 'unrated', 'theatrical', 'chrono', 'se']#
propers = ['proper', 'repack', 'rerip', 'real', 'final']#
remove = ['imax']#
sounds = ['AC3', 'DD5.1', 'DTS']#
specials = ['special', 'bonus', 'extra', 'omake', 'ova']#