Fix ESPN download

This commit is contained in:
Kovid Goyal 2009-07-28 15:33:31 -06:00
parent 1f5a1fac4f
commit 9132c638a6

View File

@ -20,7 +20,6 @@ class ESPN(BasicNewsRecipe):
remove_tags = [dict(name='font', attrs={'class':'footer'}), dict(name='hr', noshade='noshade')]
remove_tags_before = dict(name='font', attrs={'class':'date'})
center_navbar = False
html2lrf_options = ['--base-font-size', '0']
feeds = [('Top Headlines', 'http://sports.espn.go.com/espn/rss/news'),
'http://sports.espn.go.com/espn/rss/nfl/news',
@ -45,7 +44,7 @@ class ESPN(BasicNewsRecipe):
br.set_handle_refresh(False)
if self.username is not None and self.password is not None:
br.open('http://espn.com')
br.select_form(nr=0)
br.select_form(nr=1)
br.form.find_control(name='username', type='text').value = self.username
br.form['password'] = self.password
br.submit()