Explorar el Código

Improved episode image discovery

LukePulverenti Luke Pulverenti luke pulverenti hace 13 años
padre
commit
30bb12ed30
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      MediaBrowser.Controller/Providers/TV/EpisodeXmlParser.cs

+ 4 - 0
MediaBrowser.Controller/Providers/TV/EpisodeXmlParser.cs

@@ -16,6 +16,10 @@ namespace MediaBrowser.Controller.Providers.TV
 
                         if (!string.IsNullOrWhiteSpace(filename))
                         {
+                            // Strip off everything but the filename. Some metadata tools like MetaBrowser v1.0 will have an 'episodes' prefix
+                            // even though it's actually using the metadata folder.
+                            filename = Path.GetFileName(filename);
+
                             string seasonFolder = Path.GetDirectoryName(item.Path);
                             item.PrimaryImagePath = Path.Combine(seasonFolder, "metadata", filename);
                         }