From d05f42b3b8054c889dfb1a436e8b229a83de1dc1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 1 Feb 2021 19:27:48 +0100 Subject: [PATCH] (Windows) Fixed a scraping issue caused by the idiotic file locking on this OS. --- es-app/src/scrapers/Scraper.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/es-app/src/scrapers/Scraper.cpp b/es-app/src/scrapers/Scraper.cpp index b1470b906..0669ce43a 100644 --- a/es-app/src/scrapers/Scraper.cpp +++ b/es-app/src/scrapers/Scraper.cpp @@ -18,6 +18,10 @@ #include "Settings.h" #include "SystemData.h" +#if defined(_WIN64) +#include "views/ViewController.h" +#endif + #include #include @@ -211,6 +215,10 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result, mediaFileInfo.existingMediaFile = search.game->getVideoPath(); mediaFileInfo.resizeFile = false; scrapeFiles.push_back(mediaFileInfo); + #if defined(_WIN64) + // Required due to the idiotic file locking that exists on this operating system. + ViewController::get()->onStopVideo(); + #endif } for (auto it = scrapeFiles.cbegin(); it != scrapeFiles.cend(); it++) {