fix thumbnail generation

fix hardcoded paths
a lot of minor fixes
This commit is contained in:
2021-01-21 19:55:42 +00:00
parent aacf387d63
commit 7a62b01027
18 changed files with 62 additions and 121 deletions

View File

@@ -6,16 +6,14 @@
$thumb = str_replace(".webm","",$video->file);
?>
<div class="main-item">
<a href="/{{$video->id}}">
@if(file_exists('/home/w0bm/w0bm/public/thumbs/beta/'.$thumb.'.png'))
<img src="/thumbs/beta/{{$thumb}}.png">
@else
<img src="/small_404.gif" class="nothumb" />
{{$video->tesThumb()}}
@endif
</a>
</div>
<a href="/{{$video->id}}">
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
<img src="/thumbs/beta/{{$thumb}}.png">
@else
<img src="/small_404.gif" class="nothumb" />
@endif
</a>
</div>
@endforeach
</div>

View File

@@ -5,7 +5,7 @@
<div class="video">
<div class="embed-responsive embed-responsive-16by9">
<video id="video" class="video rounded embed-responsive-item" loop preload="auto" crossorigin="anonymous">
<source src="//b.w0bm.com/b{{ "/" . $video->file }}">
<source src="//w0bm.com/b{{ "/" . $video->file }}">
</video>
</div>
</div>
@@ -19,7 +19,7 @@
<div class="video-wrap embed-responsive embed-responsive-16by9">
<div class="video">
<video id="video" class="video rounded embed-responsive-item" loop preload="auto" crossorigin="anonymous">
<source src="//b.w0bm.com/b{{ "/" . $video->file }}">
<source src="//w0bm.com/b{{ "/" . $video->file }}">
</video>
</div>
</div>
@@ -33,7 +33,7 @@
<iframe src="https://w0bm.com/loop/index.html"></iframe>
@else
<video class="video scrollable" loop id="video">
<source src="//b.w0bm.com/b{{ "/" . $video->file }}">
<source src="//w0bm.com/b{{ "/" . $video->file }}">
</video>
@endif
</div>