mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-20 05:04:25 -05:00
a027fbf7af
This commit completely rewrites the extract_item and extract_items function. Before this commit these two function were an unreadable mess. The extract_item function was a lengthy if-elsif chain while the extract_items function contained an incomprehensible mess of .try, else and ||. With this commit both of these functions have been pulled into a separate file with the internal logic being moved to a few classes. This significantly reduces the size of these two methods, enhances readability and makes adding new extraction/parse rules much simpler. See diff for details. |
||
---|---|---|
.. | ||
invidious | ||
invidious.cr |