anthonyw12123 / 4chanwebscraper

A primitive web scraper using Python.
MIT License
0 stars 0 forks source link

.webm files crash the utility #10

Closed anthonyw12123 closed 8 years ago

anthonyw12123 commented 8 years ago

When processing a 4can thread, if it encounters a .webm file, it crashes immediately, saying;

saving:./wg - Official Homescreen Thread #88 - WallpapersGeneral - 4chan/1473537560676.webm
Traceback (most recent call last):
  File "4ChanWebScraper.py", line 39, in <module>
    i = Image.open(StringIO(img.content))
  File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 2317, in open
    % (filename if filename else fp))
IOError: cannot identify image file <StringIO.StringIO instance at 0x1121a3290>
anthonyw12123 commented 8 years ago

fix is in 1.1.1

anthonyw12123 commented 8 years ago

Merged into 1.1.