diff options
| author | syeopite <syeopite@syeopite.dev> | 2021-05-04 01:48:51 -0700 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2021-09-24 21:06:46 -0700 |
| commit | 1323b94b7a3a90a27a4353edddb7b9c103044e02 (patch) | |
| tree | 3da96460f32999fb63ae1c91ac85921bd2fda4f6 /config/migrate-scripts/migrate-db-17cf077.sh | |
| parent | 6d68fbc31d54e2561e00e88ab5006d4ed4da26d7 (diff) | |
| download | invidious-1323b94b7a3a90a27a4353edddb7b9c103044e02.tar.gz invidious-1323b94b7a3a90a27a4353edddb7b9c103044e02.tar.bz2 invidious-1323b94b7a3a90a27a4353edddb7b9c103044e02.zip | |
Rewrite extract_item and extract_items functions
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 a027fbf7af1f96dc26fe5a610525ae52bcc40c28)
Diffstat (limited to 'config/migrate-scripts/migrate-db-17cf077.sh')
0 files changed, 0 insertions, 0 deletions
