mirror of https://gitlab.com/bashrc2/epicyon
Only download favicons once
parent
83b4067509
commit
22d2f49f53
|
@ -158,6 +158,8 @@ def _downloadNewswireFeedFavicon(session, baseDir: str,
|
|||
os.mkdir(baseDir + '/favicons')
|
||||
linkFilename = url.replace('/', '#')
|
||||
imageFilename = baseDir + '/favicons/' + linkFilename
|
||||
if os.path.isfile(imageFilename):
|
||||
return True
|
||||
try:
|
||||
with open(imageFilename, 'wb+') as fp:
|
||||
fp.write(imageData)
|
||||
|
|
Loading…
Reference in New Issue