fix thumbnail generation
fix hardcoded paths a lot of minor fixes
This commit is contained in:
@@ -7,12 +7,11 @@
|
||||
?>
|
||||
<div class="main-item">
|
||||
<a href="/{{$video->id}}">
|
||||
@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
|
||||
<img src="/small_404.gif" class="nothumb" />
|
||||
{{$video->tesThumb()}}
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
|
@@ -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="@if(env('APP_DEBUG')){{"/b"}}@else{{"//" . (substr($_SERVER["HTTP_HOST"], 0, 3) === "v4." ? "v4." : "") . "b.w0bm.com"}}@endif{{ "/" . $video->file }}">
|
||||
<source src="@if(env('APP_DEBUG')){{"/b"}}@else{{"//" . (substr($_SERVER["HTTP_HOST"], 0, 3) === "v4." ? "v4." : "") . "w0bm.com"}}@endif{{ "/" . $video->file }}">
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
@@ -34,5 +34,4 @@
|
||||
</video>
|
||||
</div>
|
||||
@include('video-partials.legacy-videonav')
|
||||
{{$video->tesThumb()}}
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user