Skip to content

Fixes after the release of the website version 1.2.0

Thomas requested to merge fix-website-v120 into mainline

2 main changes were discovered in the version 1.2.0 of the website:

  • several new items now have the class text_item_menu which resulted in several broken new items in the home page of add-on ("recommended for me", "log in", etc.) => Now the items of the home page are hard-coded
  • most of the thumbnail URLs are now stored in the lazy-url attribute => this attribute is now used

Took this opportunity to refactor the code:

  • main.py: move the debug window into router to be able to display the type of the current page
  • router.py: make the code as DRY as possible by instantiating the WebScraper class only once.
  • globals and kodiutils: rename TYPE_MAIN_CAT into TYPE_HOME_PAGE
  • webscraper.py:
    • create internal methods to simplify the constructor
    • define the type of the page only based on the URL
    • split get_playable_url to make the testing easier

Merge request reports