We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3ba65 commit 1376778Copy full SHA for 1376778
app/Services/EpgCacheService.php
@@ -2,6 +2,7 @@
2
3
namespace App\Services;
4
5
+use App\Enums\EpgSourceType;
6
use App\Enums\Status;
7
use App\Facades\PlaylistFacade;
8
use App\Models\CustomPlaylist;
@@ -96,7 +97,7 @@ public function cacheEpgData(Epg $epg): bool
96
97
{
98
// Get the content
99
$filePath = null;
- if ($epg->url && str_starts_with($epg->url, 'http')) {
100
+ if ($epg->source_type === EpgSourceType::SCHEDULES_DIRECT || ($epg->url && str_starts_with($epg->url, 'http'))) {
101
$filePath = Storage::disk('local')->path($epg->file_path);
102
} elseif ($epg->uploads && Storage::disk('local')->exists($epg->uploads)) {
103
$filePath = Storage::disk('local')->path($epg->uploads);
0 commit comments