|
9 | 9 | use App\Filament\Resources\EpgMaps\EpgMapResource; |
10 | 10 | use App\Jobs\ChannelFindAndReplace; |
11 | 11 | use App\Jobs\ChannelFindAndReplaceReset; |
12 | | -use App\Jobs\FetchTmdbIds; |
13 | 12 | use App\Jobs\MapPlaylistChannelsToEpg; |
14 | 13 | use App\Models\Channel; |
15 | 14 | use App\Models\ChannelFailover; |
@@ -417,32 +416,6 @@ public static function getTableActions(): array |
417 | 416 | ->hiddenLabel() |
418 | 417 | ->disabled(fn (Model $record) => $record->is_custom) |
419 | 418 | ->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'), |
446 | 419 | Action::make('play') |
447 | 420 | ->tooltip('Play Channel') |
448 | 421 | ->action(function ($record, $livewire) { |
|
0 commit comments