An app for manga and anime
Find a file
Secozzi af7471e446
Fix DelayedTrackingUpdateJob spam on update errors
* Fix DelayedTrackingUpdateJob spam on update errors

DelayedTrackingUpdateJob would start spamming when it encountered an
error (e.g. a tracker has an issue) and never stop.
This seems to stem from a circular dependency between the Job's
`doWork` and TrackChapter's `await`.

TrackChapter sets up a completely new instance of the
DelayedTrackingUpdateJob if any Exception was thrown during the track
update.

This causes the Job to get replaced (as per the WorkManager's set
ExistingWorkPolicy).

Because of this, the guard clause at the start of doWork would never
trigger, as all instances of the Job would report being the 0th try
(because they were completely new instances).

This simple fix introduces a boolean `isRetry` parameter to
TrackChapter's await method, which is set to `false` by default.
DelayedTrackingUpdateJob however sets this parameter to `true`, which
means TrackChapter won't try to set up the Job again.

* Rename isRetry parameter to setupJobOnFailure

This also inverts the logic, so true & false were swapped.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-06-06 00:56:22 +02:00
.github [skip ci] Add Dependencies label to Renovate Dependencies 2024-06-05 14:53:12 +02:00
.idea Merge upstream up to d4dfa9a2c2 2023-11-27 23:09:14 +01:00
app Fix DelayedTrackingUpdateJob spam on update errors 2024-06-06 00:56:22 +02:00
buildSrc Merge branch 'master' of https://github.com/Secozzi/aniyomi into mihonmerge 2024-06-02 16:11:36 +02:00
config/detekt Tweak detekt config 2024-06-06 00:48:45 +02:00
core/common Don't copy archives to temp files when opening 2024-06-05 14:45:53 +02:00
core-metadata Adding Type-safe project accessors (#194) 2024-05-14 10:17:59 +02:00
data Move :core to :core:common 2024-06-05 11:21:41 +02:00
domain Move :core to :core:common 2024-06-05 11:21:41 +02:00
gradle Update dependency androidx.test.ext:junit-ktx to v1.2.0-alpha03 2024-06-05 14:59:15 +02:00
i18n Translations update from Hosted Weblate (#269) 2024-06-05 11:39:56 +02:00
macrobenchmark Merge upstream up to d4dfa9a2c2 2023-11-27 23:09:14 +01:00
presentation-core Move :core to :core:common 2024-06-05 11:21:41 +02:00
presentation-widget Move :core to :core:common 2024-06-05 11:21:41 +02:00
source-api Move :core to :core:common 2024-06-05 11:21:41 +02:00
source-local Fix extracting ComicInfo.xml files in local source 2024-06-05 14:49:26 +02:00
.editorconfig Merge upstream up to d4dfa9a2c2 2023-11-27 23:09:14 +01:00
.gitattributes Mark JAR as binary too 2020-01-11 16:13:08 -05:00
.gitignore Merge upstream up to d4dfa9a2c2 2023-11-27 23:09:14 +01:00
build.gradle.kts Adding Detekt in the project 2024-06-02 15:15:05 +02:00
CODE_OF_CONDUCT.md Update to Contributor Covenant 2.1 (#5697) 2021-08-10 13:30:54 -04:00
CONTRIBUTING.md Merge upstream up to d4dfa9a2c2 2023-11-27 23:09:14 +01:00
gradle.properties Update gradle.properties 2024-06-06 00:43:41 +02:00
gradlew Merge upstream up to d4dfa9a2c2 2023-11-27 23:09:14 +01:00
gradlew.bat Update dependency gradle to v7.6 (#8630) 2022-11-26 21:36:46 -05:00
LICENSE Remove License Appendix That Should Have Been Removed Initially (#4158) 2020-12-19 18:41:02 -05:00
README.md fix: Fix README issues (#1589) 2024-05-29 14:25:20 +02:00
settings.gradle.kts Move :core to :core:common 2024-06-05 11:21:41 +02:00

Build Preview Release Codefactor Stable Translate Aniyomi Discord Server
CI latest preview build CodeFactor stable release Translation status Discord

app iconAniyomi

Aniyomi is a video player and image viewer for Android 8.0 and above.

Features

Features include:

  • Watching videos
  • View images
  • Local reading/watching of downloaded content
  • A configurable reader with multiple viewers, reading directions and other settings.
  • A configurable player built on mpv-android with multiple options and settings
  • Tracker support: MyAnimeList, AniList, Kitsu, MangaUpdates, Shikimori, and Bangumi
  • Categories to organize your library
  • Light and dark themes
  • Create backups locally to read/watch offline or to your desired cloud service

Download

Get the app from the releases page.

If you want to try new features before they get to the stable release, you can download the preview version here.

Issues, Feature Requests and Contributing

Please make sure to read the full guidelines. Your issue may be closed without warning if you do not.

Issues
  1. Before reporting a new issue, take a look at the already opened and closed issues, and recent release version changes.
  2. If you are unsure, ask on Discord: Discord
Bugs
  • Include version (More → About → Version)
    • If not latest, try updating, it may have already been solved
    • Preview version is equal to the number of commits as seen on the main page
  • Include steps to reproduce (if not obvious from description)
  • Include screenshot (if needed)
  • If it could be device-dependent, try reproducing on another device (if possible)
  • Don't group unrelated requests into one issue
Feature Requests
  • Write a detailed issue, explaining what it should do or how. Avoid writing just "like X app does"
  • Include screenshot (if needed)

Source requests should be created at https://github.com/aniyomiorg/aniyomi-extensions, they do not belong in this repository.

Contributing

See CONTRIBUTING.md.

Code of Conduct

See CODE_OF_CONDUCT.md.

License

Copyright 2015 Javier Tomás

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Disclaimer

The developer of this application does not have any affiliation with the content providers available.