Skip to content

Commit

Permalink
Only open VLC on non HTTP(S) #11
Browse files Browse the repository at this point in the history
  • Loading branch information
jreklund committed Sep 20, 2017
1 parent 6b5fbba commit 860bb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/default/movies/movie/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<span class="hidden-sm">{$smarty.const.VISIT_IMDB}</span></a>
</li>
{/if}
{if 0 !== $movie->trailer|strpos:"http://"}
{if 0 !== $movie->trailer|strpos:"http" && $movie->trailer !== ""}
<li>
<a href="vlc://file:///{$movie->trailer}" rel="noreferrer noopener" title="{$movie->name|htmlentities:3:'UTF-8'} ({$movie->year|htmlentities:3:'UTF-8'})">
<i class="fa fa-youtube-play fa-fw" title="{$smarty.const.VIEW_TRAILER|htmlentities:3:'UTF-8'}" aria-hidden="true"></i>
Expand Down

0 comments on commit 860bb18

Please sign in to comment.