add r in front of regexps

This commit is contained in:
Christophe Benz 2010-07-14 02:28:33 +02:00 committed by Romain Bignon
commit 8e37f7227e
2 changed files with 8 additions and 7 deletions

View file

@ -32,10 +32,11 @@ __all__ = ['YoupornBrowser']
class YoupornBrowser(BaseBrowser):
DOMAIN = 'youporn.com'
PAGES = {'http://[w\.]*youporn\.com/?': IndexPage,
'http://[w\.]*youporn\.com/search.*': IndexPage,
'http://[w\.]*youporn\.com/watch/(?P<id>.+)': VideoPage,
'http://[w\.]*youporngay\.com:80/watch/(?P<id>.+)': VideoPage,
ENCODING = None
PAGES = {r'http://[w\.]*youporn\.com/?': IndexPage,
r'http://[w\.]*youporn\.com/search.*': IndexPage,
r'http://[w\.]*youporn\.com/watch/(?P<id>.+)': VideoPage,
r'http://[w\.]*youporngay\.com:80/watch/(?P<id>.+)': VideoPage,
}
@id2url(YoupornVideo.id2url)