fix thumbnail generation
fix hardcoded paths a lot of minor fixes
This commit is contained in:
@@ -18,11 +18,10 @@
|
||||
<div class="main-item">
|
||||
<a href="/{{$video->id}}">
|
||||
{{-- MUSS UNBEDINGT NOCH ANGEPASST WERDEN!!! --}}
|
||||
@if(file_exists('/home/w0bm/w0bm/public/thumbs/beta/'.$thumb.'.png'))
|
||||
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
||||
<img src="/thumbs/beta/{{$thumb}}.png">
|
||||
@else
|
||||
{{$video->tesThumb()}}
|
||||
<img src="/thumbs/beta/{{$thumb}}.png">
|
||||
<img src="/small_404.gif" class="nothumb">
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
|
@@ -3,11 +3,6 @@
|
||||
|
||||
@if(auth()->check())
|
||||
|
||||
@if(file_exists(public_path() . 'thumbs/beta/{{$video->file}}' . '.png'))
|
||||
@else
|
||||
{{$video->tesThumb()}}
|
||||
@endif
|
||||
|
||||
<?php $related = $related ?? null; ?>
|
||||
<div class="vertical-align">
|
||||
<div class="wrapper">
|
||||
@@ -21,7 +16,7 @@
|
||||
<iframe src="https://w0bm.com/loop/index.html"></iframe>
|
||||
@else
|
||||
<video id="video" loop controls preload="auto" crossorigin="anonymous">
|
||||
<source src="//b.w0bm.com/b{{ "/" . $video->file }}">
|
||||
<source src="//w0bm.com/b{{ "/" . $video->file }}">
|
||||
<!-- rip fapple! <source src="//fapple.w0bm.com/{{str_replace(".webm","",$video->file)}}.mp4"> -->
|
||||
</video>
|
||||
@endif
|
||||
@@ -140,7 +135,6 @@
|
||||
</aside>
|
||||
|
||||
@else
|
||||
{{$video->tesThumb()}}
|
||||
<div class="centered">
|
||||
<div class="modal-content col-md-5">
|
||||
<div class="modal-header">
|
||||
|
Reference in New Issue
Block a user