Conversation
Works with the new Stud.IP now. Still needs a lot of work. Breaking Changes: BeautifulSoup has to be installed.
|
Previously, each file had a details view that could be shown by clicking on the arrow left of the file name. It contained a link to each directory in the hierarchy leading to the file, so we could implement metadata fetching by parsing the "All Files" view and building the directory structure form the hierarchy information. The old details page is now gone and was replaced by the "Information" view reachable via the dropdown right of the filename. It still contains creation date, author etc., but not the hierarchy, so we cannot reconstruct the directories. The simplest solution is to recurse into the directory tree instead, but this would cause more requests during update which are also interdependent. To speed things up, we could first check if anything has changed by looking at the "All Files" view, then recursing into the tree until all files are mapped to their respective directories. |
This pull request change the parser implementation to an implementation with Beautiful Soup. This means that about half of the parser.py was thrown out.
I also accidentally slipped and fell on the PyCharm formatter. Sorry for that