Skip to content

Commit 1e85ccd

Browse files
committed
chore: Remove TMDB fetch from live channels
1 parent 498b3e4 commit 1e85ccd

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

app/Filament/Resources/Channels/ChannelResource.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use App\Filament\Resources\EpgMaps\EpgMapResource;
1010
use App\Jobs\ChannelFindAndReplace;
1111
use App\Jobs\ChannelFindAndReplaceReset;
12-
use App\Jobs\FetchTmdbIds;
1312
use App\Jobs\MapPlaylistChannelsToEpg;
1413
use App\Models\Channel;
1514
use App\Models\ChannelFailover;
@@ -417,32 +416,6 @@ public static function getTableActions(): array
417416
->hiddenLabel()
418417
->disabled(fn (Model $record) => $record->is_custom)
419418
->hidden(fn (Model $record) => $record->is_custom),
420-
Action::make('fetch_tmdb_ids')
421-
->label('Fetch TMDB IDs')
422-
->icon('heroicon-o-film')
423-
->tooltip('Fetch TMDB/TVDB/IMDB IDs for this channel')
424-
->action(function ($record) {
425-
app('Illuminate\Contracts\Bus\Dispatcher')
426-
->dispatch(new FetchTmdbIds(
427-
type: 'vod',
428-
ids: [$record->id]
429-
));
430-
})
431-
->after(function () {
432-
\Filament\Notifications\Notification::make()
433-
->success()
434-
->title('TMDB Search Started')
435-
->body('Searching for TMDB/TVDB IDs. Check the logs or refresh the page in a few seconds.')
436-
->duration(8000)
437-
->send();
438-
})
439-
->requiresConfirmation()
440-
->modalIcon('heroicon-o-film')
441-
->modalDescription('Fetch TMDB, TVDB, and IMDB IDs for this channel from The Movie Database.')
442-
->modalSubmitActionLabel('Fetch IDs now')
443-
->button()
444-
->hiddenLabel()
445-
->size('sm'),
446419
Action::make('play')
447420
->tooltip('Play Channel')
448421
->action(function ($record, $livewire) {

0 commit comments

Comments
 (0)