woolymethodman: (at least for installer files which have MD5 data).
mrkgnao: Where exactly do you find this MD5 data?
Right from GOG... add .xml to the end of the URL.
Code snippit:
<code>
# fetch the md5 file and chunk data for each game
for f in sorted(g.game_items, key=lambda g: g.name):
try:
if f.url is not None:
with request(f.url.replace('?', '.xml?')) as page:
shelf_etree = xml.etree.ElementTree.parse(page).getroot()
except urllib2.HTTPError:
warn("failed to fetch md5 data for %s. skipping..." % f.name)
continue
finally:
del f['url']
</code>
EDIT: How do I properly <pre> / <code> / {code} so indentation remains? Not sure where forum syntax is.