Comments (4)
Actually looking at the documentation again for this query, my previous statement saying that the whole list is returned with the proposed query is not true. The limit is just a lot bigger, it returns 500 entries per chunk. So to retrieve the whole list we would still need to go through these chunks, the updated query would then look like this:
query ($status: MediaListStatus, $userId: Int, $chunk: Int, $chunkSize: Int) {
MediaListCollection(userId: $userId, status: $status, chunk: $chunk, perChunk: $chunkSize, type: ANIME) {
hasNextChunk
lists {
entries {
media {
siteUrl
}
completedAt {
day
month
year
}
progress
}
}
}
}
We would then use hasNextChunk
to check if we have fetched every chunk. While incrementing the chunk
value like the current page
value.
Although slower than previously thought it would still speed the process of retrieving the anime list up and result in less queries.
from jellyfin-ani-sync.
Great, thanks for investigating this. I'll make the change and see how I get on, I'll probably also increase the thread sleep time to 2 seconds since this is supposed to work in the background and it shouldn't matter how long it takes.
I'll also look into adding some re-attempt logic. If we get back a 429 we can attempt the call again after a certain amount of time.
from jellyfin-ani-sync.
I have created a PR for the fixes related to this, are you able to test it locally? I have tested it and all seems to be working fine but it always helps to get a second input.
The 429 handling isn't included in the PR because I didn't think it was directly related to this issue, but I am planning on working on it separately.
You can either build it using docker or simply build it manually by pulling it down. I can also build it for you and send a binary if it helps. Thanks.
from jellyfin-ani-sync.
That PR has been merged now, if you wanted to run the latest version of the plugin you will want to either build it yourself or docker can build it for you. These fixes will be included in the next version of the plugin but I'm not sure when that will be released, there are a few other changes I want to add before creating a new release.
from jellyfin-ani-sync.
Related Issues (20)
- Shikimori provider resets score HOT 2
- NPE during status update with Shikimori provider
- Unable to access auth callback URL, given a 400 error "One or more validation errors occurred." HOT 6
- Manual Sync (Jellyfin -> Provider) not respecting "Libraries to check" HOT 12
- Update documentation to include adding "Callback Redirect URL" HOT 14
- Support for Jellyfin 10.9 Unstable Support HOT 7
- Support for shokofin's VFS HOT 1
- Read Anidb ID from the season before trying to use the season offset from Tvdb HOT 4
- AniList timeout issue HOT 7
- Jellyfin 10.9 released HOT 3
- Can't open select a provider HOT 6
- Jellyfin 10.9 - "Not Supported" with v3.2 HOT 2
- TVDB Episode translation to MAL or Anilist HOT 2
- Settings seem to be lost on refresh HOT 3
- AniSync 3.2.0.0 Status: NotSupported HOT 3
- Sync not working for anime with proper mappings in anime-offline-database
- Unable to authorise MAL login HOT 2
- Episodes not being logged after previously working. HOT 2
- shikimori does not create an application with a redirect to http HOT 5
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 jellyfin-ani-sync.