mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
1323b94b7a
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.
--
This cherry-picked commit also removes the code for parsing featured
channels present on the original.
(cherry picked from commit
|
||
---|---|---|
.. | ||
channels | ||
helpers | ||
jobs | ||
routes | ||
views | ||
comments.cr | ||
jobs.cr | ||
mixes.cr | ||
playlists.cr | ||
routing.cr | ||
search.cr | ||
trending.cr | ||
users.cr | ||
videos.cr |