-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various AniList Improvements & Bugfixes #70
Various AniList Improvements & Bugfixes #70
Conversation
…a, Improve code styling
Closed and reopened because I hit create before I was done editing 😅 |
@@ -16,7 +16,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniList | |||
/// Based on the new API from AniList | |||
/// 🛈 This code works with the API Interface (v2) from AniList | |||
/// 🛈 https://anilist.gitbooks.io/anilist-apiv2-docs | |||
/// 🛈 THIS IS AN UNOFFICAL API INTERFACE FOR EMBY | |||
/// 🛈 THIS IS AN UNOFFICAL API INTERFACE FOR JELLYFIN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of changes in this file:
- Fixed indentation (mostly in graphql)
- Moved some functions to be methods of the Media object
- Add more attributes to graphql call
- Update comments
@@ -0,0 +1,107 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is basically a copy of SeriesProvider with sed s/Series/Movie/
@@ -1,6 +1,12 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this file is serialization setup for the JSON parser, attributes come from the AniList API Docs and mostly the API v2 GraphQL Docs. There's also methods added to convert values from AniList's representation to Jellyfin's.
The idea is you use Media/MediaSearchResult internally (to the plugin) and convert it to the relevant Jellyfin object type through ToMovie and ToSeries, that way both providers can share most of the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing braces
Co-authored-by: Bond-009 <[email protected]>
This PR contains a few improvements to the AniList providers:
Screenshots