mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Melbourne Herald Sun
This commit is contained in:
parent
c0f549625a
commit
781b95c959
@ -48,7 +48,6 @@ class DailyTelegraph(BasicNewsRecipe):
|
||||
]
|
||||
remove_attributes=['lang']
|
||||
|
||||
|
||||
feeds = [(u'Breaking News' , u'http://feeds.news.com.au/public/rss/2.0/heraldsun_breakingnews_206.xml')
|
||||
,(u'Business' , u'http://feeds.news.com.au/public/rss/2.0/heraldsun_business_207.xml')
|
||||
,(u'Entertainment' , u'http://feeds.news.com.au/public/rss/2.0/heraldsun_entertainment_208.xml')
|
||||
@ -70,7 +69,7 @@ class DailyTelegraph(BasicNewsRecipe):
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
if self.username and self.password:
|
||||
br.open('http://www.heraldsun.com.au')
|
||||
br.select_form(nr=0)
|
||||
br.select_form(nr=1)
|
||||
br['username'] = self.username
|
||||
br['password'] = self.password
|
||||
raw = br.submit().read()
|
||||
@ -83,3 +82,4 @@ class DailyTelegraph(BasicNewsRecipe):
|
||||
return article.id
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user