mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Fix: handle empty trailer in Jellyfin (#422)
This commit is contained in:
@@ -123,9 +123,11 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
|
||||
result.Item.SetPid(Name, m.Provider, m.Id, pid.Position);
|
||||
|
||||
// Set trailer url.
|
||||
result.Item.SetTrailerUrl(!string.IsNullOrWhiteSpace(m.PreviewVideoUrl)
|
||||
var trailerUrl = !string.IsNullOrWhiteSpace(m.PreviewVideoUrl)
|
||||
? m.PreviewVideoUrl
|
||||
: m.PreviewVideoHlsUrl);
|
||||
: m.PreviewVideoHlsUrl;
|
||||
if (!string.IsNullOrWhiteSpace(trailerUrl))
|
||||
result.Item.SetTrailerUrl(trailerUrl);
|
||||
|
||||
// Set community rating.
|
||||
if (Configuration.EnableRatings)
|
||||
|
||||
Reference in New Issue
Block a user