2013-11-23, 04:10
Hey Milhouse,
I'm running into an bug with the imdb function, which I think is caused by attempting to get the rating of a movie that doesn't yet have one (ie, has less than 5 votes on imdb)
Where the movie it's trying to scrape from imdb is http://www.imdb.com/title/tt2294804
I'm running into an bug with the imdb function, which I think is caused by attempting to get the rating of a movie that doesn't yet have one (ie, has less than 5 votes on imdb)
Code:
C:\Tools\python33>python texturecache.py imdb movies francisco
Traceback (most recent call last):val Volume 3: Live in San Francisco...
File "texturecache.py", line 5405, in <module>
main(sys.argv[1:])
File "texturecache.py", line 5287, in main
extraFields=_extraFields, query=_query)
File "texturecache.py", line 2778, in jsonQuery
updateIMDb(mediatype, jcomms, data)
File "texturecache.py", line 3739, in updateIMDb
newimdb = MyUtility.getIMDBInfo(imdbnumber, plotFull, plotOutline) if imdbnumber else None
File "texturecache.py", line 2567, in getIMDBInfo
newdata[newkey] = float(data[key])
ValueError: could not convert string to float: 'N/A'
Where the movie it's trying to scrape from imdb is http://www.imdb.com/title/tt2294804