2012-02-24, 23:37
pkscuot Wrote:OK, I'll move the size mins back where they were then. It didn't seem to be working for me when I was using last.fm, but I'll try again. I had min height set to 720 and min width to 1280, but it would download an 800x800 image from last.fm. At least that's what I think it did. As I said, I'll check it again.here's the piece of code responsible for the filtering:
Code:
if site == "lastfm":
if element.tag == "size":
if element.attrib.get('name') == "original":
width = element.attrib.get('width')
height = element.attrib.get('height')
[b]if ( int(width) >= self.minwidth ) and ( int(height) >= self.minheight )[/b]:
data.append(element.text)