mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-07-17 03:50:42 +08:00
chore update
This commit is contained in:
@@ -18,7 +18,7 @@ public class ActorExternalId : IExternalId
|
||||
#endif
|
||||
public string Key => Constant.JavTube;
|
||||
|
||||
public string UrlFormatString => "{0}";
|
||||
public string UrlFormatString => Plugin.Instance.Configuration.Server+"/r/{0}";
|
||||
|
||||
public bool Supports(IHasProviderIds item)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ public class MovieExternalId : IExternalId
|
||||
#endif
|
||||
public string Key => Constant.JavTube;
|
||||
|
||||
public string UrlFormatString => "{0}";
|
||||
public string UrlFormatString => Plugin.Instance.Configuration.Server+"/r/{0}";
|
||||
|
||||
public bool Supports(IHasProviderIds item)
|
||||
{
|
||||
|
||||
@@ -66,13 +66,15 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
|
||||
},
|
||||
HasMetadata = true
|
||||
};
|
||||
|
||||
// Set ProviderIdModel.
|
||||
result.Item.SetProviderIdModel(Constant.JavTube, new ProviderIdModel
|
||||
{
|
||||
Provider = m.Provider,
|
||||
Id = m.Id
|
||||
});
|
||||
|
||||
// Set official score.
|
||||
// Set movie rating.
|
||||
result.Item.CommunityRating = m.Score > 0 ? m.Score * 2 : null;
|
||||
|
||||
// Set studios: maker > publisher.
|
||||
|
||||
Reference in New Issue
Block a user