Commit Graph

46 Commits

Author SHA1 Message Date
1c5c370c12 Avoid unnecessary string creation when sorting 2021-12-24 10:26:24 -05:00
3ea3b0bf2e Add UnmeteredSource interface
To be included in extension-lib 1.3 (or whatever it's going to be). This applies to sources like Komga or Lanragi, where large numbers of update/download aren't of concern since they're (usually) self-hosted.
2021-11-28 14:41:03 -05:00
10ddeeb799 Fix local source cover changing (#6252)
* fix local source cover changing

* Remove unnecessary check for `exists()`

* fix for when there is no thumbnail_url in the db
2021-11-27 12:49:26 -05:00
46a4b0e0b6 Partially migrate LocalSource to 1.x methods 2021-11-19 16:42:19 -05:00
9ebbfb2d90 Clean up local source chapter name cleaning (closes #5969) 2021-10-30 18:36:23 -04:00
f0a5557e60 Fix storing covers for local manga (#6127)
getCoverFile only returns a cover if it already exists, meaning
the block of code to write it from the inputstream never executes.
If getCoverFile returns null, then use previous behaviour of setting
it to cover.jpg so that if the file doesn't exist it's created
2021-10-30 12:16:29 -04:00
2d1404d155 Fix Local and Other lang sources showing up in seperate Other Categories (#6024)
* group LocalSource and Other lang source together

* use better kotlin syntactic sugar

* add lang "other" to local

* remove duplicate LocalSource entries in Browse

* linting

* revert unnecessary linting

was a manually adding change

* Revert previous two commit but not the most recent

This reverts commit 30250f2f82fc5e38a1b30c7b55c445efec23a114
This also reversts commit 359ed5a8cda91577216b593a4138280e971e0126

* better way to avoid duplicate Local Sources

* more linting by plugin

* `""` lang is no longer used anywhere
2021-10-09 11:01:22 -04:00
2e127dff1f Replace Timber with Square Logcat and make logging configurable (#6062)
* Replace Timber with Square Logcat

* Configurable logger
2021-10-07 22:12:55 -04:00
d7d46f4447 Minor cleanup 2021-09-18 16:13:14 -04:00
3664195c71 rewrite getFormat the kotlin way (#5930) 2021-09-18 15:15:38 -04:00
e942b8a402 Read from streams for local source manga details and legacy backups 2021-09-06 11:54:00 -04:00
1ef7722504 Support more image formats for covers (#5524)
* Add TachiyomiImageDecoder for Coil

Is currently used to decode AVIF and JPEG XL images.

* LocalSource: Check against file name for cover

This allows file with all supported formats to be set as cover

* TachiyomiImageDecoder: Handle HEIF on Android 7 and older
2021-07-10 15:44:34 -04:00
3854995ef2 Address some Kotlin language warnings 2021-06-01 17:53:51 -04:00
179cb8eb50 Make some strings in LocalSource translatable (closes #5178) 2021-05-24 16:50:07 -04:00
d1c2eaf6d5 Update URL for Local Manga guide (#4641) 2021-03-13 11:38:06 -05:00
560f0bba5c Use more up-to-date fork of junrar 2020-12-07 22:13:53 -05:00
76f6fe4601 Use Kolinter Gradle plugin for linting instead of ktlint directly 2020-09-13 18:48:20 -04:00
fe7c7e72f5 Filter out hidden directories for local source (closes #3706) 2020-08-22 17:33:04 -04:00
64bdfabbd8 Revert ktlint update, unrevert Gradle and PR build workflow reverts (#3681) 2020-08-15 16:44:46 -04:00
4a136ef2aa Automatic linting fixes 2020-08-13 09:02:15 -04:00
d749e309f8 Minor optimizations for local source dir lookups 2020-07-25 14:20:47 -04:00
573f3a392a Null check for local source cover parent dir 2020-05-12 09:18:18 -04:00
eb3fff6c51 Alternative way of reading local manga JSON file 2020-05-06 22:59:54 -04:00
305ee3c12e Pull basic manga/chapter metadata from EPUB files. (#2962)
* Fill manga and chapter metadata with EPUB metadata where appropriate.

* Use fuzzy-match to remove manga titles from chapter names.

This allows removing manga titles from the metadata title of local EPUB chapters with characters that can't be in the manga directory's name due to filesystem limitations.

* Use more standard way of parsing EPUB dates.

* Use date format compatible with lower Android versions for EPUBs.
2020-04-27 22:49:06 -04:00
3f63b320c4 Linting fixes 2020-04-25 14:24:45 -04:00
a95ac8ad83 Add links to local source guide (closes #2896) 2020-04-25 11:56:24 -04:00
415df2357c JDK8, lint fixing (#2888)
* Use Kotlin JDK8

* Satisfy a ton of lints

* Run res/layout files (and manifest) through reformatter
2020-04-18 14:47:22 -04:00
0f2d480036 More linting fixes 2020-02-26 18:12:44 -05:00
043e3784e8 Run linter 2020-02-26 18:03:34 -05:00
3ecc883944 Run default Android Studio formatter on code 2020-02-17 17:23:37 -05:00
47f5ea881f Reorganize other util files 2020-02-02 22:22:54 -05:00
9f9de27a57 Reorganize some util files 2020-02-02 22:04:11 -05:00
13ea1342fb Optimize imports 2020-01-28 22:47:57 -05:00
1b37c61b5a JSON metadata for local manga (#1658)
* JSON metadata for local manga

* Simplification

* Lazy load local data
2020-01-11 15:59:43 -05:00
2ebaacfc89 Replace dependency for case insensitive natural sorting (#2389)
Replace dependency for case insensitive natural sorting
2019-12-27 07:18:30 -05:00
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
88d1f29fe2 Move page indicator to bottom center, and use a shadow instead of a background. Other category in catalogue list is now placed at the end 2017-11-18 14:09:38 +01:00
4ae00c80ca Fix many compilation warnings 2017-10-28 19:12:17 +02:00
ff4a015baa Added regex to strip local manga chapter names (#983)
* added regex to strip non-alphanumeric characters in local filenames
2017-09-18 11:20:34 +02:00
len
74a7e2a17e Fix local source not working if english was disabled. Closes #848 2017-06-17 12:46:34 +02:00
len
c8e3375248 Rar/cbr support 2017-02-08 22:12:00 +01:00
len
aeef8c02d8 Basic epub support 2017-02-05 12:01:58 +01:00
dd8cab4562 improve local manga chapter sorting (#672) 2017-02-04 12:03:54 +01:00
len
772bef05fc Fix #661 2017-01-30 21:04:56 +01:00
len
e8912c5dc9 Local chapter url relative. Other minor changes 2017-01-29 20:51:11 +01:00
2b73a9d2a4 Local manga in zip/cbz/folder format (#648)
* add local source

* small fixes

* change Chapter to SChapter and and Manga to SManga in ChapterRecognition.
Use ChapterRecognition.parseChapterNumber() to recognize chapter numbers.

* use thread poll

* update isImage()

* add isImage() function to DiskUtil

* improve cover handling

* Support external SD cards

* use R.string.app_name as root folder name
2017-01-29 20:48:55 +01:00