mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Improved episode image discovery
This commit is contained in:
parent
215853fee2
commit
30bb12ed30
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(filename))
|
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);
|
string seasonFolder = Path.GetDirectoryName(item.Path);
|
||||||
item.PrimaryImagePath = Path.Combine(seasonFolder, "metadata", filename);
|
item.PrimaryImagePath = Path.Combine(seasonFolder, "metadata", filename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue