diff options
| author | Fijxu <fijxu@nadeko.net> | 2024-05-13 19:27:27 -0400 |
|---|---|---|
| committer | Fijxu <fijxu@nadeko.net> | 2024-05-13 19:39:46 -0400 |
| commit | 90fcf80a8d20b07e18070800474e0fc8ee342020 (patch) | |
| tree | 7b1b0e1b2809ae6141f6f4af11ae625402f1decc | |
| parent | eda7444ca46dbc3941205316baba8030fe0b2989 (diff) | |
| download | invidious-90fcf80a8d20b07e18070800474e0fc8ee342020.tar.gz invidious-90fcf80a8d20b07e18070800474e0fc8ee342020.tar.bz2 invidious-90fcf80a8d20b07e18070800474e0fc8ee342020.zip | |
Handle playlists cataloged as Podcast
Videos of a playlist cataloged as podcast are called episodes therefore
Invidious was not able to find `video` in the `text` value inside the
stats array.
| -rw-r--r-- | src/invidious/playlists.cr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 955e0855..a227f794 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -366,6 +366,8 @@ def fetch_playlist(plid : String) if text.includes? "video" video_count = text.gsub(/\D/, "").to_i? || 0 + elsif text.includes? "episode" + video_count = text.gsub(/\D/, "").to_i? || 0 elsif text.includes? "view" views = text.gsub(/\D/, "").to_i64? || 0_i64 else |
