diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-10-21 21:40:03 -0400 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-10-21 21:40:03 -0400 |
| commit | 159b4f9734b37eb8600a2523e792c7e8c3d1f85b (patch) | |
| tree | e04985477202055b52c5b253a683f7d664c6a33b | |
| parent | 46a737c7a1c301ee9ed1634a916dc841544e72c9 (diff) | |
| download | invidious-159b4f9734b37eb8600a2523e792c7e8c3d1f85b.tar.gz invidious-159b4f9734b37eb8600a2523e792c7e8c3d1f85b.tar.bz2 invidious-159b4f9734b37eb8600a2523e792c7e8c3d1f85b.zip | |
Format source
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 53eea7bc..3af3dd7a 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4623,7 +4623,7 @@ end if format == "html" response = JSON.parse(response) playlist_html = template_playlist(response) - index, next_video = response["videos"].as_a.skip(1).select { |video| !video["author"].as_s.empty? }[0]?.try {|v| {v["index"], v["videoId"] } } || {nil, nil} + index, next_video = response["videos"].as_a.skip(1).select { |video| !video["author"].as_s.empty? }[0]?.try { |v| {v["index"], v["videoId"]} } || {nil, nil} response = { "playlistHtml" => playlist_html, |
