chore update

This commit is contained in:
xjasonlyu
2022-05-29 18:03:18 +08:00
parent 0748511ea0
commit f8eed3efc9
3 changed files with 5 additions and 3 deletions

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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.