MediaElch
MediaElch copied to clipboard
2nd scraper search (or IMDB search) doesn't find anything if the year is included in the search
Describe the bug When searching the Movie for the scraper, the first search works but the search for the second scraper doesn't find anything until the year is removed. (I'm not sure if this new behavior of having two searches is an intended feature or a bug)
To Reproduce Steps to reproduce the behavior:
- Go to Movies
- Click on "Load information" or cmd+f
- Click on the search result
- Window reappears with the second scraper written in Bold (very subtle hint if one doesn't know what's happening here)
- No search results
- remove the year from the search, now the movie will appear in the search result
Expected behavior Should only need one search, but in case this is an intended feature, it should at least find the movie with the year included in the search
Screenshots
MediaElch Version:
- [x] 2.10.2 stable
Operating System:
- [x] macOS
Additional context In 2.10.0 only one search was needed, and it gave search results just like the first search in 2.10.2 does.
Hi,
thanks for reporting. This is kind of between "intended" and "missing feature".
With v2.10.0, movie scrapers were rewritten to allow parallel downloads and other features such as a preview window in the future. Also, the universal movie scraper is now no longer hard-coded to IMDb + TMDB, but works with all scrapers available. That had the side effect that the IMDb ID from the TMDB search result is no longer used.
Regarding the year in the IMDb search: It's always difficult to tell whether something is a year or part of the title. I will have to figure something out. I think I will do something like this:
- remove the year from the original search query if it is IMDb
- if the search query was modified, do not remove the year, even when scraping for IMDb (e.g. for movies that have a year in their title)