use ExpectedElementNotFound and pages group_dict

This commit is contained in:
Christophe Benz 2010-07-12 03:20:44 +02:00
commit a854d72209
2 changed files with 12 additions and 15 deletions

View file

@ -35,8 +35,8 @@ class YoupornBrowser(BaseBrowser):
PROTOCOL = 'http'
PAGES = {'http://[w\.]*youporn\.com/?': IndexPage,
'http://[w\.]*youporn\.com/search.*': IndexPage,
'http://[w\.]*youporn\.com/watch/.+': VideoPage,
'http://[w\.]*youporngay\.com:80/watch/.+': VideoPage,
'http://[w\.]*youporn\.com/watch/(?P<id>.+)': VideoPage,
'http://[w\.]*youporngay\.com:80/watch/(?P<id>.+)': VideoPage,
}
@id2url(YoupornVideo.id2url)