Komet / MediaElch

Media Manager for Kodi
https://mediaelch.github.io/mediaelch-doc/about.html
GNU Lesser General Public License v3.0
832 stars 93 forks source link

IMDBTV Episdoe thumbnail wont scrape on Custom TV Scraper if no image #1725

Closed kolbdog323 closed 5 months ago

kolbdog323 commented 7 months ago

Scrapers that don't work:

Details which are wrong / not loaded: When you scrape a episode using the Custom Tv Scraper and have iIMDBtv selected for epiosde thumbnail the image wont scrape if there is no image to replace if there is one on TMDB as a subsitute. But if there is an image it will work. The imdbtv scraper will grabe the episode thumbnail but on custom if no image on tmdb it wont grab it.

MediaElch Version:

Operating System:

Additional context: Add any other context about the problem here.

kolbdog323 commented 7 months ago

An example is if episode 6 doesnt have a thumbnail for the episdoe on tmdb the custom scraper wont scrape an image from imdb for the same episdoe you have to use the imdbtv scraper first then custom scraper to keep the image. Its very annoying.

bugwelle commented 6 months ago

Thanks for reporting! I will have a look soon.

kolbdog323 commented 5 months ago

Any luck on this as well. Also I will try the nightly build tomorrow to try out the missing overview and see if it's fixed.

bugwelle commented 5 months ago

Thank you very much for reporting this issue. I've found few other bugs (one crash) that I've now also fixed.

Your bug was a copy&paste error. I looked at the TV show settings when loading episodes. The fix is trivial:

--- a/src/scrapers/tv_show/custom/CustomEpisodeScrapeJob.cpp
+++ b/src/scrapers/tv_show/custom/CustomEpisodeScrapeJob.cpp
@@ -46,7 +46,7 @@ void CustomEpisodeScrapeJob::onTmdbLoaded(EpisodeScrapeJob* job)
     copyDetailsToEpisode(episode(), job->episode(), job->config().details);
     job->deleteLater();

-    const QStringList scrapersToUse = m_customConfig.scraperForShowDetails.values();
+    const QStringList scrapersToUse = m_customConfig.scraperForEpisodeDetails.values();
     const bool loadImdb = episode().imdbId().isValid() && scrapersToUse.contains(ImdbTv::ID);

     m_loadCounter = 1;

It will be fixed shortly. Note that there are currently issues with our Nightly-build pipeline for Windows. It may take another day for a Nightly to appear.