fix: links to series from monitor list row
This commit is contained in:
@@ -19,6 +19,19 @@ class MonitorExtension
|
||||
return $types[$type] ?? '-';
|
||||
}
|
||||
|
||||
#[AsTwigFilter('as_download_type')]
|
||||
public function monitorTypeToDownloadType(string $type)
|
||||
{
|
||||
$types = [
|
||||
'tvshows' => 'tvshows',
|
||||
'tvseason' => 'tvshows',
|
||||
'tvepisode' => 'tvshows',
|
||||
'movie' => 'movies',
|
||||
];
|
||||
|
||||
return $types[$type] ?? '-';
|
||||
}
|
||||
|
||||
#[AsTwigFilter('monitor_media_id')]
|
||||
public function mediaId(Monitor $monitor)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user