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.
This commit is contained in:
parent
eda7444ca4
commit
90fcf80a8d
1 changed files with 2 additions and 0 deletions
|
@ -366,6 +366,8 @@ def fetch_playlist(plid : String)
|
||||||
|
|
||||||
if text.includes? "video"
|
if text.includes? "video"
|
||||||
video_count = text.gsub(/\D/, "").to_i? || 0
|
video_count = text.gsub(/\D/, "").to_i? || 0
|
||||||
|
elsif text.includes? "episode"
|
||||||
|
video_count = text.gsub(/\D/, "").to_i? || 0
|
||||||
elsif text.includes? "view"
|
elsif text.includes? "view"
|
||||||
views = text.gsub(/\D/, "").to_i64? || 0_i64
|
views = text.gsub(/\D/, "").to_i64? || 0_i64
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue