Skip to content

Commit 1376778

Browse files
committed
fix: Schedules Direct EPGs not caching correctly
We weren't looking in the proper location for SD EPGs, update the cache generation to account for this.
1 parent ea3ba65 commit 1376778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Services/EpgCacheService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Services;
44

5+
use App\Enums\EpgSourceType;
56
use App\Enums\Status;
67
use App\Facades\PlaylistFacade;
78
use App\Models\CustomPlaylist;
@@ -96,7 +97,7 @@ public function cacheEpgData(Epg $epg): bool
9697
{
9798
// Get the content
9899
$filePath = null;
99-
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'))) {
100101
$filePath = Storage::disk('local')->path($epg->file_path);
101102
} elseif ($epg->uploads && Storage::disk('local')->exists($epg->uploads)) {
102103
$filePath = Storage::disk('local')->path($epg->uploads);

0 commit comments

Comments
 (0)