소스 검색

fix moviedb find by external id

Luke Pulverenti 8 년 전
부모
커밋
59d3b8853d
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs
  2. 1 1
      MediaBrowser.Providers/TV/TheMovieDb/MovieDbSeriesProvider.cs

+ 5 - 0
MediaBrowser.MediaEncoding/Encoder/EncodingUtils.cs

@@ -45,6 +45,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
         /// <returns>System.String.</returns>
         private static string GetFileInputArgument(string path)
         {
+            if (path.IndexOf("://") != -1)
+            {
+                return string.Format("\"{0}\"", path);
+            }
+
             // Quotes are valid path characters in linux and they need to be escaped here with a leading \
             path = NormalizePath(path);
 

+ 1 - 1
MediaBrowser.Providers/TV/TheMovieDb/MovieDbSeriesProvider.cs

@@ -443,7 +443,7 @@ namespace MediaBrowser.Providers.TV
 
         private async Task<RemoteSearchResult> FindByExternalId(string id, string externalSource, CancellationToken cancellationToken)
         {
-            var url = string.Format("https://api.themoviedb.org/3/tv/find/{0}?api_key={1}&external_source={2}",
+            var url = string.Format("https://api.themoviedb.org/3/find/{0}?api_key={1}&external_source={2}",
                 id,
                 MovieDbProvider.ApiKey,
                 externalSource);