Skip to content
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

Merged
merged 13 commits into from
Jul 19, 2020

Conversation

Musi13
Copy link
Contributor

@Musi13 Musi13 commented May 17, 2020

This PR contains a few improvements to the AniList providers:

Screenshots

AniListSearchResults

@Musi13 Musi13 changed the title Various Anilist improvements Various AniList Improvements & Bugfixes May 17, 2020
@Musi13 Musi13 closed this May 17, 2020
@Musi13
Copy link
Contributor Author

Musi13 commented May 17, 2020

Closed and reopened because I hit create before I was done editing 😅

@Musi13 Musi13 reopened this May 17, 2020
@@ -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
Copy link
Contributor Author

@Musi13 Musi13 May 17, 2020

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;
Copy link
Contributor Author

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;
Copy link
Contributor Author

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.

Copy link
Member

@Bond-009 Bond-009 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing braces

@Bond-009 Bond-009 self-requested a review July 19, 2020 20:28
@Bond-009 Bond-009 merged commit 7159ed1 into jellyfin-archive:master Jul 19, 2020
@Musi13 Musi13 deleted the anilist-improvements branch July 19, 2020 21:36
@trin94 trin94 mentioned this pull request Apr 19, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants