25 lines
713 B
Python
25 lines
713 B
Python
# -*- Mode: Python; -*-
|
|
# -*- coding: utf-8 -*-
|
|
# vi:si:et:sw=2:sts=2:ts=2
|
|
|
|
from utils import stripTags
|
|
|
|
|
|
def torrentsWeLike(link):
|
|
'''check if torrent title looks like something we want to see,
|
|
dvdrip / no cam / no dubbed versions
|
|
'''
|
|
text = stripTags(unicode(link)).lower()
|
|
#no cams / telesyncs or other stuff
|
|
for word in ('cam', 'telesync', 'telecine', '.ts', '.tc', ' tc ', ' ts', 'vcd', 'ts-screener'):
|
|
if word in text:
|
|
return False
|
|
#no dubbed versions
|
|
for word in ('italian', 'german', 'spanish', 'french'):
|
|
if word in text:
|
|
return False
|
|
#only dvdrips or dvdscrs
|
|
for word in ('dvdrip', 'dvdscr', 'dvd screener'):
|
|
if word in text:
|
|
return True
|
|
return False |