Comments (4)
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.
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.
from mangal.
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
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.
Thanks for sharing, that's a nice solution! I'll think about it
from mangal.
Related Issues (20)
- Mangadex doesn't list all chapters given the language HOT 7
- Cannot install HOT 2
- [minor] packages shouldn't install in local
- Add support JPEG XL
- error
- curl: option -sfLo: is badly used here HOT 1
- Empty volume folders when downloading cbz files HOT 1
- Add download directory option and output file name option to Inline mode
- Volume directories are not created correctly when config "create_volume_dir" is true HOT 1
- New Chapters not getting updated HOT 5
- Trending or recent Section for each manga source HOT 1
- Long pages get cut wrongly
- panic: runtime error: index out of range
- Empty results from running querying for manga on Manganato HOT 2
- Support X.X chapter numbering. HOT 1
- Mangasee scraper does not find new chapter HOT 1
- mangadex's default content rating filters HOT 1
- Not getting updated chapters from Mangapill HOT 3
- mangal not listing all chapters HOT 3
- Mangal native FreeBSD support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mangal.