Commit graph

617 commits

Author SHA1 Message Date
inorichi
cccb56bda1 Change default update priorization 2019-06-09 14:35:24 +02:00
Harsh Parekh
5d8dc241d8 Update ranking (#1772)
* Add LibraryUpdateRanker

This class provides various functions to generate Comparators that can 
be used to order the manga to update.

One such ordering is by relevance:
It prioritises manga that were updated more recently.

Another Ordering is by lexicographic order:
This is the default behaviour.

* Use relevanceRanking scheme

Instead of default(noRanking/lex ranking) now mangaList is sorted with 
relevanceRanking.

* Add UI and associated variables & strings for Update Ranking.

* Use user preferences to determine update ranking scheme.

* Refactor relevanceRanking to latestFirstranking.

This name seems to better reflect the ranking scheme and frees up the 
name relevanceRanking for future use.

* Set latestFirst scheme as default.

(Changing over from lexicographic scheme)

* Fix 1

[Convert LibraryUpdateRanker to a object.](./files/82f263749f0ae775385b23dd919f1865360db969#r287513539)

[Nitpick: Add lines](./files/82f263749f0ae775385b23dd919f1865360db969#r287540256)

[Replace Java comparator](./files/82f263749f0ae775385b23dd919f1865360db969#r287539976)

[Nitpick: Add local variable](./files/82f263749f0ae775385b23dd919f1865360db969#r287514805)

* Fix 2

[Weird import](./files/82f263749f0ae775385b23dd919f1865360db969#r287513709)

[Default value](./files/82f263749f0ae775385b23dd919f1865360db969#r287540064)

[Use existing Strings](./files/82f263749f0ae775385b23dd919f1865360db969#r287514476)

[Use Library update order](./files/82f263749f0ae775385b23dd919f1865360db969#r287540204)
2019-06-09 14:32:12 +02:00
MCAxiaz
9ba7312caf Make MAL Tracking Slightly Less Shitty (#2042)
* * fix cookieManager not clearing cookies properly
* manually clear tracking prefs when !isLogged (e.g. cookies were cleared)

* use full url for removing cookies

* add interceptor for all non-login network calls
* attempt auto login if cookies are missing
* move handling of csrf token to interceptor

* * move methods around to improve readability
* fix TrackSearchAdapter not updating other fields if cover_url is missing
* revert accidental removal of feature in https://github.com/inorichi/tachiyomi/issues/65
* avoid login if credentials are missing

* fix eol

* *separate login flow from rxjava for reuse in sync

* *use less expensive method of finding manga

* *move variable declaration

* formatting

* set total chapters in remote track
2019-06-09 14:31:19 +02:00
Harsh Parekh
8ebda219c4 Fix the category selection bug (#2052)
Fixes #2051
2019-05-26 11:37:47 +02:00
Harsh Parekh
47f14e8555 Long click to manage categories (#2045) 2019-05-25 13:47:53 +02:00
Eugene
974a24d03b Add help link to nav drawer (#2049) 2019-05-25 13:46:42 +02:00
Jannis Becker
15f225537e Update tracking sites after finishing chapter (#2044)
* Added second updateTrackLastChapterRead() called whenever a chapter has been read in the reader

* Removed old updateTrackLastChapterRead() so that it's not called twice.
2019-05-25 13:46:20 +02:00
Harsh Parekh
a32572fc96 Ignore case while sorting Library (#2048)
* Ignore case while sorting Library

* Simplify code

As suggested by @arkon
2019-05-24 09:57:05 +02:00
Pavka
003dca9d45 Bugfix. Sharing images with very long name (#1999)
* Fix sharing with very long images name

* Fix dropLast to take
2019-05-07 11:06:38 +02:00
Deumiankio
021dde66eb Add color filter blend modes (#2013)
* Add color filter blend modes

* Only show modes supported by currently used API level.

* Fix arrays.xml for API level <=27.
2019-04-29 19:32:49 +02:00
Pavka
5840a3e1e2 Shikomori -> Shikimori. Fix update chapters (#1996)
* Shikomori -> Shikimori. Fix update chapters

* Removed logs and format code
2019-04-29 18:40:26 +02:00
FlaminSarge
7c6478fe6b Force Migration to display titles from source rather than from local DB, and update local titles when migrated (#1670) 2019-04-29 18:38:59 +02:00
Eugene
68aca55e6f Add options to open catalogue in browser/webview (#1979) 2019-04-16 17:34:52 +02:00
inorichi
3533359fae Use single task activity 2019-04-13 13:09:01 +02:00
inorichi
0a988d1c69 Enable new translations 2019-04-12 19:19:35 +02:00
inorichi
56195434e7 Add intent filter for external queries 2019-04-12 18:40:04 +02:00
inorichi
ba2194f435 Load urls inside webview 2019-04-12 17:29:02 +02:00
inorichi
e7df172da1 Provide default web view client so that redirections work 2019-04-08 10:13:58 +02:00
inorichi
e7606e6dca Add option to open manga details in a WebView 2019-04-08 02:08:40 +02:00
inorichi
8d4c0f505c Fix shared files not deleted from internal cache 2019-04-07 14:58:40 +02:00
Amine A
8f2878a841 Added search intent handler and Google Search Action, for the global search (#1787)
* Added search intent handler

* Added support for Google Search actions
2019-04-03 10:25:52 +02:00
Carlos
77296348a0 add option to skip chapters marked read (#1791) 2019-04-03 10:22:32 +02:00
Pavka
a62a7d5330 Feature/shikomori track (#1905)
* Add shikomori track

* Fix char 'M'

* Fix date in search
2019-04-03 10:14:37 +02:00
inorichi
f1f6a2b341 Test solving Cloudflare's challenge with WebView 2019-04-01 17:20:13 +02:00
Deumiankio
e47dd3d587 Add 32-bit color mode to reader settings (#1941)
* add ARGB_8888 mode to reader settings

* Only show option on Oreo or later.
Only show option in settings screen.
2019-03-30 14:21:35 +01:00
inorichi
08cdac968d Fix strings and add new languages 2019-03-25 14:52:07 +01:00
inorichi
f12d5ba689 Storio imported from Jitpack. Also fix an issue with the progress bar animation on the reader 2019-03-22 23:06:05 +01:00
inorichi
3f2d375a53 Reduce priority of jcenter repository 2019-03-14 17:32:08 +01:00
inorichi
d79e141fe5 Fix issue with center zoom position 2018-11-17 16:23:03 +01:00
Chris Allan
3186661420 Filter local manga as downloaded (#1674)
* Filter local manga as downloaded

* Filter local manga chapters as downloaded
2018-10-27 19:33:43 +02:00
inorichi
2c4fd340c8 Restore dark blue theme. Closes #1302 2018-10-27 19:10:11 +02:00
inorichi
23e99a3ed8 Add new translations to settings 2018-10-09 16:13:26 +02:00
inorichi
788cb843fc Minor fixes when updating the manga viewer 2018-10-09 14:27:00 +02:00
inorichi
790e0908a3 Better page transition text alignment 2018-10-09 13:46:44 +02:00
inorichi
7a45cd5b56 Don't use full-width page sheet on big landscape screens 2018-10-09 13:46:27 +02:00
FlaminSarge
3611f67fb4 Handle manga info fetch errors in the same way as chapter fetch errors (#1541)
(Using a toast)
2018-09-21 09:51:37 +02:00
FlaminSarge
353ccbd444 For migration, put the selected source at the top of the search list instead of excluding it (#1542)
* For migration, put the selected source at the top of the search list rather than excluding it

* Indicate which source is currently selected during migration

Currently uses ▶
2018-09-21 09:51:10 +02:00
inorichi
da8b870670 Update image decoder library. Remove deprecated ask update tracking setting 2018-09-17 14:50:44 +02:00
inorichi
7afd224aff Fix volume keys intercepted even if the setting was off 2018-09-12 17:08:31 +02:00
inorichi
62e7bead73 Show menu when there's no next chapter 2018-09-09 17:43:06 +02:00
inorichi
116f7d1c4a Several reader fixes 2018-09-08 12:46:36 +02:00
inorichi
18f89cc341
New reader (#1550)
* Delete old reader

* Add utility methods

* Update dependencies

* Add new reader

* Update tracking services. Extract transition strings into resources

* Restore delete read chapters

* Documentation and some minor changes

* Remove content providers for compressed files, they are not needed anymore

* Update subsampling. New changes allow to parse magic numbers and decode tiles with a single stream. Drop support for custom image decoders. Other minor fixes
2018-09-01 17:12:59 +02:00
inorichi
515289134e Only include URL in the share functionality 2018-06-30 20:02:04 +02:00
inorichi
3d1afe7cf2 Show manga with no installed source. Based on PR #1345 2018-06-30 19:55:46 +02:00
inorichi
10f36f40d6 Bugfix on save instance state. Also improve initial page loading on Kissmanga 2018-05-23 13:16:11 +02:00
inorichi
9d5cf9163a Release v0.7.4 2018-05-13 11:56:24 +02:00
Jozef Hollý
9abce0cca3 Vanity url (#1408)
* vanity url

* vanity url

* vanity url
2018-05-13 11:36:08 +02:00
inorichi
263198dd89 Minor fix 2018-05-05 15:29:08 +02:00
inorichi
345f96055d Fix indonesian language. Closes #1387 2018-05-05 14:23:34 +02:00
Ken Swenson
51144aa45e Implement Anilist API v2 (closes #1159) (#1383)
* Implement Anilist API v2 (closes #1159)

Switches to using the Anilist v2 API.
Login is now done by implicit grant and tokens are good for one year.
Users will need to login again after token expiration.
"clientId" on line 289 of AnilistApi.kt should be changed to Tachiyomi's
own client ID number.

* Code style formatting

Revert to kotlin 1.2.30
Use correct client ID
Rename AnilistApi.login to AnilistApi.createOAuth to reflect changed implementation
Rename json mimetype variable from json to jsonMime for clarity
Don't read response if it's ignored
Remove unused parameters from api requests

* Close netResponse after read

* Refactor remote_id into media_id and library_id

* DB: Refactor RemoteId

Refactor RemoteId into library_id and media_id
Implement function to fetch library_id if user is migrating rom APIv1

* Remove logging interceptor

* Compatability and sql simplification

* Fix score and minor improvements

* Revert changes to Kitsu API
2018-05-05 14:05:02 +02:00