Fix infinily adding pages to existing namespace
Update the local representation with the new pages when appending pages to an existing namespace.
@@ -205,6 +205,8 @@ class Enclosure:
"position": len(self.loaded[0].pages),
"data": [{"url": p} for p in pages]
})
+ # Insert the pages into local reprensentation as well.
+ self.loaded[0].pages += pages
def __remove_page(self, namespace, pos):
""" Delete page.
