IGN:Replace feed:// URLs with http:// when parsing download feeds

This commit is contained in:
Kovid Goyal 2009-09-14 13:44:43 -06:00
parent 9345712d44
commit ff7c39237a

View File

@ -1019,6 +1019,8 @@ class BasicNewsRecipe(Recipe):
title, url = None, obj title, url = None, obj
else: else:
title, url = obj title, url = obj
if url.startswith('feed://'):
url = 'http'+url[4:]
self.report_progress(0, _('Fetching feed')+' %s...'%(title if title else url)) self.report_progress(0, _('Fetching feed')+' %s...'%(title if title else url))
try: try:
with closing(self.browser.open(url)) as f: with closing(self.browser.open(url)) as f: