Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted
This commit is contained in:
1 parent
d10b6d71f7
commit
b8b92cf60b
5 files changed
+18
-5
No files matched your search
@@ -197,13 +197,14 @@ namespace Jellyfin.Plugin.Kinopoisk
|
||||
}
|
||||
|
||||
public static MediaUrl ToMediaUrl(this VideoResponse_trailers src) {
|
||||
if (src is null)
|
||||
if (src is null || !"YOUTUBE".Equals(src.Site))
|
||||
return null;
|
||||
|
||||
return new MediaUrl
|
||||
{
|
||||
Name = src.Name,
|
||||
Url = src.Url
|
||||
.Replace("https://youtu.be/", "https://www.youtube.com/watch?v=") // Jellyfin web currently don't recognize youtu.be links
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name: "КиноПоиск"
|
||||
guid: "0c136f8a-ff77-4f2b-ade5-13462cae6216"
|
||||
imageUrl: "https://kinopoisk.userecho.com/s/attachments/28876/0/1/25f8c0315e6ccb2aa6c2642e48f2c9e9.png"
|
||||
version: "10.7.0.4"
|
||||
version: "10.7.0.5"
|
||||
targetAbi: "10.7.0"
|
||||
framework: "net5.0"
|
||||
owner: "linfor"
|
||||
@@ -15,4 +15,4 @@ artifacts:
|
||||
- "KinopoiskUnofficialInfo.ApiClient.dll"
|
||||
- "Newtonsoft.Json.dll"
|
||||
changelog: >
|
||||
Added person info, person image, trailers fetching
|
||||
Added trailers filtering: jellyfin-web can only play youtube trailers, not kinopoisk-hosted
|
||||
Reference in new issue
Block a user