diff options
| author | syeopite <syeopite@syeopite.dev> | 2021-06-28 22:51:28 -0700 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2021-09-24 21:07:06 -0700 |
| commit | 57c63f3598867ce406b807923ea81352f9b1b384 (patch) | |
| tree | 906afd00544dff8857193da82a6af8b18e23f661 /src | |
| parent | ae30f32c36c738b85dc114a4bb4edaa95257a3c2 (diff) | |
| download | invidious-57c63f3598867ce406b807923ea81352f9b1b384.tar.gz invidious-57c63f3598867ce406b807923ea81352f9b1b384.tar.bz2 invidious-57c63f3598867ce406b807923ea81352f9b1b384.zip | |
Rename "items_without_cate_items" to reflect usage
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/search.cr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious/search.cr b/src/invidious/search.cr index 3873b2dd..adf079f3 100644 --- a/src/invidious/search.cr +++ b/src/invidious/search.cr @@ -234,18 +234,18 @@ def process_search_query(query, page, user, region) # Light processing to flatten search results out of Categories. # They should ideally be supported in the future. - items_without_cate_items = [] of SearchItem | ChannelVideo + items_without_category = [] of SearchItem | ChannelVideo items.each do |i| if i.is_a? Category i.contents.each do |nest_i| if !nest_i.is_a? Video - items_without_cate_items << nest_i + items_without_category << nest_i end end else - items_without_cate_items << i + items_without_category << i end end - {search_query, items_without_cate_items.size, items_without_cate_items, url_params} + {search_query, items_without_category.size, items_without_category, url_params} end |
