mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #683
This commit is contained in:
parent
e879779387
commit
dd3d69663b
@ -725,6 +725,8 @@ class BasicNewsRecipe(object, LoggingInterface):
|
|||||||
def article_downloaded(self, request, result):
|
def article_downloaded(self, request, result):
|
||||||
index = os.path.join(os.path.dirname(result[0]), 'index.html')
|
index = os.path.join(os.path.dirname(result[0]), 'index.html')
|
||||||
if index != result[0]:
|
if index != result[0]:
|
||||||
|
if os.path.exists(index):
|
||||||
|
os.remove(index)
|
||||||
os.rename(result[0], index)
|
os.rename(result[0], index)
|
||||||
a = request.requestID[1]
|
a = request.requestID[1]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user