forked from eddie3/gogrepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
disi edited this page Jul 16, 2015
·
11 revisions
Notes:
It might be worth converting the manifest into a dict for several checks during update and download.
cmd_update
if skipknown: if item.id in gamesdb: item.bg_url = gamesdb[item.id].bg_url item.serial = gamesdb[item.id].serial item.forum_url = gamesdb[item.id].forum_url item.changelog = gamesdb[item.id].changelog item.release_timestamp = gamesdb[item.id].release_timestamp item.downloads = gamesdb[item.id].downloads item.extras = gamesdb[item.id].extras continue
cmd_download (change to id in manifest)
if id: if id in gamesdb: items = list(gamesdb[id]) # not the object? maybe I need to iterate?
language fix1, remove any duplicate files before returning the download list filtered_downloads
from collections import OrderedDict ... filtered_downloads_stripped = list(OrderedDict.fromkeys('filtered_downloads')) out_list.extend(filtered_downloads_stripped)