Index: channels/modarchive.py ================================================================== --- channels/modarchive.py +++ channels/modarchive.py @@ -68,14 +68,14 @@ sub = [] self.categories = [] for uu in rx_current.findall(html): (main, id, subname) = uu if main: - if sub: - self.categories.append(sub) + self.categories.append(main) + self.catmap[main] = 0 sub = [] - self.categories.append(main) + self.categories.append(sub) else: sub.append(subname) self.catmap[subname] = id # .categories and .catmap are saved by reload_categories()