SenorSmartyPants / Comixology-Scraper

GNU General Public License v3.0
35 stars 3 forks source link

Invalid literal for float(): FREE #6

Closed azuravian closed 2 years ago

azuravian commented 2 years ago

When the scraper grabs info on a comic with a price of "FREE", it fails because it is trying to assign a float to the price field.

SenorSmartyPants commented 2 years ago

Could you provide a url to a free comic?

azuravian commented 2 years ago

https://www.comixology.com/The-Walking-Dead-1/digital-comic/60

I have worked around this, for now, by changing if overwritable(book.BookPrice):
to
if overwritable(book.BookPrice) and type(CMXData.get('price')) != str:

SenorSmartyPants commented 2 years ago

Pushed change to ComicRack branch in 00b121c