WIP: Refactor object model #30

Draft
Barbagus wants to merge 5 commits from model into stable

5 Commits

Author SHA1 Message Date
10fd8a9675 Organize imports and fix docstyle 2023-02-20 07:19:35 +01:00
c8aab4c5a3 Refactor hls module and Variant* model
Split `hls` functionalities in smaller parts
- fetch M3U8 object `fetch_index()`
- read th indexes `read_*_index_object()`
Move that "pipeline" in `__init__::load_variant_sources()`

Remove `code` field `Variant` and replace it with a video quality
descriptor (resolution and frame rate).
2023-02-20 07:10:54 +01:00
58b0ba30a3 Refactor api module and Rendition* model
Split `api` functionalities in smaller parts
- fetch API JSON object `fetch_api_object()`
- read the config object `read_config_player_object()`
Move that "pipeline" in `__init__.py`

Remove `code` field `Rendition` and replace it with some track rendition
models that are build from parsing the `code` from ArteTV. Also move the
`protocol` from the `RenditionSource` to the `Rendition` model itself...
who knows how we might handle it in the future.
2023-02-16 20:11:45 +01:00
4ffc32eb61 Fix invalid doc strings 2023-02-16 20:07:08 +01:00
bdc8b7b246 Refactor www module
Split functionalities in smaller parts
- fetch the html code `fetch_page_content()`
- extract JSON data from html code `extract_page_data()`
- read the program info from page data `read_page_data()`
Move that "pipeline" in `__init__.py`
2023-02-16 08:18:02 +01:00