Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyRacer1337 committed Dec 4, 2020
1 parent f77b981 commit 99c8d5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion Jellyfin.Plugin.PhoenixAdult/Core/ImageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class ImageProvider : IRemoteImageProvider
ImageType.Backdrop,
};

[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Temporal solution")]
#if __EMBY__
public async Task<IEnumerable<RemoteImageInfo>> GetImages(BaseItem item, LibraryOptions libraryOptions, CancellationToken cancellationToken)
#else
Expand Down
2 changes: 0 additions & 2 deletions Jellyfin.Plugin.PhoenixAdult/Core/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public Provider(

public string Name => Plugin.Instance.Name;

[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Temporal solution")]
public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(MovieInfo searchInfo, CancellationToken cancellationToken)
{
List<RemoteSearchResult> result = new List<RemoteSearchResult>();
Expand Down Expand Up @@ -165,7 +164,6 @@ public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(MovieInfo se
return result;
}

[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Temporal solution")]
public async Task<MetadataResult<Movie>> GetMetadata(MovieInfo info, CancellationToken cancellationToken)
{
var result = new MetadataResult<Movie>
Expand Down
7 changes: 5 additions & 2 deletions Jellyfin.Plugin.PhoenixAdult/Helpers/Actors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ public static List<PersonInfo> Cleanup(MetadataResult<Movie> scene)
{
var newPeople = new PersonInfo
{
Type = people.Type,
ImageUrl = people.ImageUrl,
};

if (newPeople.Type == null)
if (newPeople.Type != null)
{
newPeople.Type = people.Type;
}
else
{
newPeople.Type = PersonType.Actor;
}
Expand Down
1 change: 0 additions & 1 deletion Jellyfin.Plugin.PhoenixAdult/Helpers/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ public static string GetSiteNameFromTitle(string searchTitle)
return searchTitle;
}

[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Dirty hack for https://github.com/dotnet/corefx/issues/30793")]
public static byte[] ConvertFromBase64String(string input)
{
if (string.IsNullOrWhiteSpace(input))
Expand Down

0 comments on commit 99c8d5e

Please sign in to comment.