1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 20:12:41 +02:00

Fixed MediaCover endpoint.

This commit is contained in:
Taloth Saldono 2017-12-13 20:18:29 +01:00 committed by Leonardo Galli
parent 72a12a73af
commit efbb587290
2 changed files with 4 additions and 2 deletions

View File

@ -52,6 +52,7 @@ public override bool CanHandle(string resourceUrl)
resourceUrl = resourceUrl.ToLowerInvariant();
return !resourceUrl.StartsWith("/content") &&
!resourceUrl.StartsWith("/mediacover") &&
!resourceUrl.Contains(".") &&
!resourceUrl.StartsWith("/login");
}

View File

@ -1,3 +1,4 @@
using System;
using System.IO;
using System.Text.RegularExpressions;
using NLog;
@ -42,7 +43,7 @@ public override string Map(string resourceUrl)
public override bool CanHandle(string resourceUrl)
{
return resourceUrl.StartsWith("/MediaCover");
return resourceUrl.StartsWith("/MediaCover", StringComparison.InvariantCultureIgnoreCase);
}
}
}
}