diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-10-21 19:54:41 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-10-21 19:54:41 -0500 |
| commit | ef95dc2380294d70f0e303b5e2b5bf9c07840769 (patch) | |
| tree | e5a783a8f520f83dc368161722a99bd7a35384d1 /src | |
| parent | 4875aa1d7e91d570ba94ba6dbc1ec29e7e37fbb8 (diff) | |
| download | invidious-ef95dc2380294d70f0e303b5e2b5bf9c07840769.tar.gz invidious-ef95dc2380294d70f0e303b5e2b5bf9c07840769.tar.bz2 invidious-ef95dc2380294d70f0e303b5e2b5bf9c07840769.zip | |
Add fix for show playlists
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/components/item.ecr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 6560ab4c..9fe2fb70 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -24,7 +24,7 @@ <% else %> <div class="thumbnail"> <img class="thumbnail" src="/vi/<%= item.videos[0]?.try &.id %>/mqdefault.jpg"/> - <p class="length"><%= recode_length_seconds(item.videos[0].length_seconds) %></p> + <p class="length"><%= recode_length_seconds(item.videos[0]?.try &.length_seconds || 0) %></p> </div> <% end %> <p><%= item.title %></p> |
