mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Fix cover paths
This commit is contained in:
@@ -550,11 +550,11 @@ if (! function_exists('getReleaseCover')) {
|
||||
}
|
||||
|
||||
if ($coverType && $coverId) {
|
||||
if ($coverType === 'tvshows') {
|
||||
return url("/covers/{$coverType}/{$coverId}.jpg");
|
||||
if (in_array($coverType, ['movies', 'anime'], true)) {
|
||||
return url("/covers/{$coverType}/{$coverId}-cover.jpg");
|
||||
}
|
||||
|
||||
return url("/covers/{$coverType}/{$coverId}-cover.jpg");
|
||||
return url("/covers/{$coverType}/{$coverId}.jpg");
|
||||
}
|
||||
|
||||
// Return placeholder image if no cover type/ID found
|
||||
|
||||
Reference in New Issue
Block a user