Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Fix) Search by tmdb 0 to find missing tmdbs #4584

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions app/DTO/TorrentSearchFiltersDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,12 @@ final public function toMeilisearchFilter(): array
if ($this->tmdbId !== null) {
if ($this->tmdbId === 0) {
$filters[] = [
'tmdb_movie_id IS NULL AND tmdb_tv_id IS NOT NULL',
'tmdb_tv_id IS NULL AND tmdb_movie_id IS NOT NULL',
'tmdb_movie_id = 0 AND tmdb_tv_id != 0',
'tmdb_tv_id = 0 AND tmdb_movie_id != 0',
'tmdb_movie_id IS NULL',
'tmdb_movie_id = 0',
];
$filters[] = [
'tmdb_tv_id IS NULL',
'tmdb_tv_id = 0',
];
} else {
$filters[] = [
Expand Down