Diff
Differences From Artifact [0e317dc343]:
- File favicon.py — part of check-in [743c60ff80] at 2015-04-21 22:07:29 on branch trunk — Remove old .ico workaround, as PIL2(Pillow) now integrates support. Leave the remaining code in shambles, and with excessive logging. Still needs a huge rewrite to optionalize Google reliance again. (The manual favicon fetching never worked, because the regexp is too crude for most sites; and URL joining is off too.) (user: mario, size: 7551) [annotate] [blame] [check-ins using]
To Artifact [f1c4f8f20a]:
- File favicon.py — part of check-in [363dce5eb9] at 2015-04-26 15:35:21 on branch trunk — Cover most catched exceptions with log messages. (user: mario, size: 7559) [annotate] [blame] [check-ins using]
260 261 262 263 264 265 266 | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | - + | direct_download(favicon, file(url)) # convert .ico file to .png format def ico2png(ico, png_fn): image = Image.open(ico) |