refactor: split tmdb into movie_id and tv_id

Step 2 in cleaner meta fetching code.
This commit is contained in:
Roardom
2025-03-13 21:27:46 +00:00
parent 09f8404ada
commit 32cf8da4db
61 changed files with 1062 additions and 708 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ class ProcessTvJob implements ShouldQueue
Recommendation::upsert($tvScraper->getRecommendations(), ['recommendation_tv_id', 'tv_id']);
Torrent::query()
->where('tmdb', '=', $this->id)
->where('tv_id', '=', $this->id)
->whereRelation('category', 'tv_meta', '=', true)
->searchable();
}