def populate_subreddits_pickle():
from guis import progressBG
loading_indicator=progressBG(translation(32023)) #Gathering icons..
with open(subredditsFile, 'r') as fh:
subreddit_settings = fh.readlines()
#xbmc_notify("initializing", "Building icons cache", 5000)
loading_indicator.set_tick_total(len(subreddit_settings))
for entry in subreddit_settings:
entry=entry.strip()
loading_indicator.tick(1,entry)
s=convert_settings_entry_into_subreddits_list_or_domain(entry)
if s:
#t = threading.Thread(target=get_subreddit_entry_info_thread, args=(s,) )
log('processing saved entry:'+repr(entry))
get_subreddit_entry_info_thread(s)
xbmc.sleep(2000)
loading_indicator.end()
评论列表
文章目录