Git Product home page Git Product logo

Comments (4)

justchokingaround avatar justchokingaround commented on August 24, 2024 1

so i've looked further into it, and tried to see if it could be done through matching the author's name, but neither anilist nor kitsu's api have that info, so this is all i was able to do, if that helps:

import requests

query = '''
query ($id: Int, $search: String) {
  Page(page: 1, perPage: 10) {
      pageInfo {
        total
        perPage
        }
    media(id: $id, search: $search, format: MANGA) {
        id
        idMal
        format
        title {
            romaji
            english
            native
            userPreferred
        }
    }
  }
}
'''

variables = {
    'search': 'Death Note',
}

url = 'https://graphql.anilist.co'

response = requests.post(url, json={'query': query, 'variables': variables})

print(response.json())

but then again, it'll come down to Levenshtein distance

from mangal.

EKYS12 avatar EKYS12 commented on August 24, 2024 1

The android application Tachiyomi, which can be found here, solves this issue by adding a sync setting per series in the saved library of a user. After connecting your anilist to tachiyomi, when you open a series page in the app there is a tracker that you can set for anilist (or which ever tracking catalogue service you use, like MAL), and then it will do a query in Anilist with the title of series. You can even edit the query as well. This query will show all the results that anilist pulls up, and you the user can manually set which series it should link to.
Screenshot_20220619-233754
Screenshot_20220619-233803

from mangal.

metafates avatar metafates commented on August 24, 2024

That's a cool idea! I think I'll be able to make it. But I'm not sure how to handle situations where manga found on Anilist does not match the one selected in Mangal

Example
Screenshot 2022-06-18 at 12 23 40

I think I could check if two titles are "similar" by using something like Levenshtein distance 🤔 but still this is kinda unreliable.

Or there could some sort of prompt before reading like "Mark %manga_found_on_anilist% %chapter% as read?"

from mangal.

metafates avatar metafates commented on August 24, 2024

Thanks for sharing, that's a nice solution! I'll think about it

from mangal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.