30 lines
886 B
Python
30 lines
886 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', 'nl sub'):
|
|
if word in text:
|
|
return False
|
|
#not blueray or hddvd version right now or even DVDRs
|
|
for word in ('chd', 'hd ', 'hd-', 'dvdr-', 'dvdr.', 'dvdr '):
|
|
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 |