diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-10 10:44:44 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-10 10:44:44 -0500 |
| commit | 3c226892c619914f2d6bf6ca8b43eda356dfd522 (patch) | |
| tree | c4bc951b75b2771f5ca7fa56b49b2602f5d9c0be /src | |
| parent | 47f6fe069ad5f807fe21b5a6be9fb76f2fb48d9a (diff) | |
| download | invidious-3c226892c619914f2d6bf6ca8b43eda356dfd522.tar.gz invidious-3c226892c619914f2d6bf6ca8b43eda356dfd522.tar.bz2 invidious-3c226892c619914f2d6bf6ca8b43eda356dfd522.zip | |
Add fix for empty title tag when fetching videos
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index b54e65b8..b97c8f94 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1166,7 +1166,7 @@ def fetch_video(id, region) raise "Video unavailable." end - if !info["title"]? + if !info["title"]? || info["title"].empty? raise "Video unavailable." end |
