mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-13 02:07:12 -07:00
Fixed: MediaCover endpoint
This commit is contained in:
parent
8f98fb6c4e
commit
0981260887
2 changed files with 4 additions and 2 deletions
|
@ -52,6 +52,7 @@ namespace Lidarr.Http.Frontend.Mappers
|
||||||
resourceUrl = resourceUrl.ToLowerInvariant();
|
resourceUrl = resourceUrl.ToLowerInvariant();
|
||||||
|
|
||||||
return !resourceUrl.StartsWith("/content") &&
|
return !resourceUrl.StartsWith("/content") &&
|
||||||
|
!resourceUrl.StartsWith("/mediacover") &&
|
||||||
!resourceUrl.Contains(".") &&
|
!resourceUrl.Contains(".") &&
|
||||||
!resourceUrl.StartsWith("/login");
|
!resourceUrl.StartsWith("/login");
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using NLog;
|
using NLog;
|
||||||
|
@ -42,7 +43,7 @@ namespace Lidarr.Http.Frontend.Mappers
|
||||||
|
|
||||||
public override bool CanHandle(string resourceUrl)
|
public override bool CanHandle(string resourceUrl)
|
||||||
{
|
{
|
||||||
return resourceUrl.StartsWith("/MediaCover");
|
return resourceUrl.StartsWith("/MediaCover", StringComparison.InvariantCultureIgnoreCase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue