A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: pint
aminnausin9ca02eea4de6
diff --git a/app/Services/Image/Downloader.php b/app/Services/Image/Downloader.phpindex b7d1df97..45a62a71 100644--- a/app/Services/Image/Downloader.php+++ b/app/Services/Image/Downloader.php@@ -8,8 +8,7 @@ use Illuminate\Support\Facades\Log;use Illuminate\Support\Facades\Storage;class Downloader {- public function __construct() {- }+ public function __construct() {}// TODO: Eventually use this service with DI in verifyFiles and verifyFolders to download thumbnail urls ... currently using static function in verifyFolderspublic function importExternalImageAsURL($url, $compositePath) {diff --git a/app/Support/UrlValidator.php b/app/Support/UrlValidator.phpindex 6706d271..b4475441 100644--- a/app/Support/UrlValidator.php+++ b/app/Support/UrlValidator.php@@ -7,6 +7,6 @@ use Illuminate\Support\Str;class UrlValidator {public function isExternalUrl(string $url): bool {// ! strpos($metadata->poster_url, str_replace('http://', '', str_replace('https://', '', config('api.app_url')))- return $url && !Str::startsWith($url, config('app.scheme') . "://" . config('app.host'));+ return $url && ! Str::startsWith($url, config('app.scheme') . '://' . config('app.host'));}}