250 Commits

Author SHA1 Message Date
stevenyomi
b57f7d72d4
MangaDex: remove MD@Home reporting (#10250) 2025-10-02 23:59:04 +01:00
FlaminSarge
8a9231c5af
Mangadex: Handle missing isUnavailable chapter field (#9301)
* Mangadex: Handle missing isUnavailable chapter field

* Update build.gradle

* Switch from nullable bool to bool for isUnavailable, with default false

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

---------

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
2025-07-25 05:47:27 +01:00
FlaminSarge
66f2a0ed6e
MangaDex: Add setting to include unavailable chapters in chapter list (#9208)
* MangaDex: Add setting to include unavailable chapters in chapter list

* Remove redundant isUnavailable check
2025-07-25 05:47:24 +01:00
Vetle Ledaal
44a4f517d2
Remove remaining usage of network.client (#8153)
* Explicitly use `network.cloudflareClient` instead of `super.client`

... but only if the parent is `HttpSource` or `ParsedHttpSource`

* Remove use of `network.client`

... replaced with `network.cloudflareClient` or `super.client` if the
parent class sets `client` to `network.cloudflareClient` already.
2025-03-27 00:02:34 +00:00
AwkwardPeak7
060473aedf
use Preferences functions from utils (#7757)
* import all temporarily

* use `getPreferencesLazy()`

regex: lazy\s*\{\s*Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?\s*\}

* use `getPreferences()`

regex: Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?

* `getPreferences` and `getPreferencesLazy` with migration

regex to find: getPreferences\(\)\s*\.

* preferences edge cases

* run lint

* why kotlinter not add newline

* bruh

* bump

* unused import not caught by kotlinter

* review suggestions on all files

* bump after merge main

* review

* reduce usage of
2025-03-27 00:02:28 +00:00
spicemace
6e7fcda20c
Mangadex markdown cleanup removes --- only with newline (#7282)
* Update MangaDexHelper.kt

* Update build.gradle

* Update build.gradle
2025-02-23 21:31:14 +00:00
AwkwardPeak7
0658c1926c
revert kotlin 2.1.0 and deps for now (#7468)
generated serializers seem to be missing in final apk, need further investigation
2025-02-23 21:31:11 +00:00
DokterKaj
07c6de7cf6
MangaDex: Show final chapter in description (#7314)
* Show final chapter in description

* Make it a preference
2025-02-23 21:26:49 +00:00
Matthias Ahouansou
ac8b118d90
mangadex: add option to use source language for title (#6471)
* mangadex: add option to use source language for title

closes #5747

* use 'extension' instead of 'source' for variable names & translations

* simplify title selection
2024-12-14 06:55:46 +00:00
AwkwardPeak7
155a2d34a4
MangaDex: new languages (#6097) 2024-12-14 06:55:41 +00:00
AwkwardPeak7
0af3536837
Mangadex: fix potential anr and remove ua pref (#4935)
* Mangadex: fix potential anr and remove ua pref

* remove unused stuff

* don't remove tachi ua
2024-09-15 20:23:10 +01:00
AwkwardPeak7
8ac86c6e8e MangaDex: set Origin header (#3082)
* MangaDex: set `Origin` header

* standard origin header without trailing slash
2024-06-03 05:44:44 +01:00
5c8cb75e9a come up to date with keiyoushi builds
All checks were successful
CI / Prepare job (push) Successful in 3s
CI / Build multisrc modules (push) Successful in 8m10s
CI / Build individual modules (push) Successful in 38s
CI / Publish repo (push) Successful in 1m39s
2024-01-22 21:19:41 +00:00
AwkwardPeak7
c5f82e6aeb Move plugin section to common.gradle (#281)
* move apply plugins to common.gradle

* update CONTRIBUTING.md

* remove whitespace

* move common.gradle apply above in multisrc

* move kotlinter

* newlines
2024-01-16 02:49:40 +00:00
AwkwardPeak7
205e138dd2 upgrade AGP to 8.2.1 (#255)
* upgrade AGP

* bump to java 17 in ci
2024-01-16 02:42:39 +00:00
33f80ae4c6 re-add removed extensions 2024-01-09 00:40:47 +00:00
arkon
51f35d8d75 Remove sources as per request by Kakao Entertainment 2024-01-05 12:32:29 -05:00
Alessandro Jean
ae81ee5ded
Remove the try-catch wrapping in MangaDex. (#18716) 2023-10-25 16:05:10 -03:00
bapeey
10f75db080
MangaDex: Fix fallback url (#18685)
* Fix fallback url

* Use chain.proceed instead newCall

* Use dropWhile

* Handle data-saver
2023-10-23 23:07:16 -03:00
nicki
fc7598bdcf
more QoL fixes for MangaDex (#18672)
* fix spelling for villainess in en translations

* custom user agent + more md@h logging

adds a custom user agent setting primarily intended for testing
do note that spoofing to be a different browser might fetch you trouble
as MangaDex's new hotlink/bot abusers can kick in action

also add logging to figure out which MD@H node users are hitting
as currently, the fallback was not observed to be changing even after
a while; leading to user's keep failing to fetch images

* more improvements

make the `Extra` header more verbose
use a `customUserAgent` sharedpreferences variable so that code looks
cleaner
move the useragent logic into an interceptor so that there is no
need for restarting the app after every useragent change

* completely switch to useragent interceptor

removes builder header modification
remove additional logging while testing (didn't really work as
expected since I kept hitting uploads.mangadex.org anyhow,
+ the interceptor logs weren't useful otherwise)
switch to hardcoding version code in header since it wasn't working
as expected...
add linting from android studio gradle release build

* increment extVersionCode

* oopsie be careful of comments

* properly close unsuccessful requests to mdah node

need to ensure this so that it doesn't crash (which has happened before)

inb4 this is why the fallback url never works....
2023-10-23 13:45:32 -03:00
nicki
1c8478fcca
Don't think of mangadex chapter names as markdown (#18434)
* fix an edge case on chapter name cleaner

maybe closes https://github.com/tachiyomiorg/tachiyomi-extensions/issues/18407

* forgot about alt titles

* update javadoc to match the function usage
2023-10-08 18:47:05 -03:00
Alessandro Jean
9579b5f145
Minor improvements to the MangaDex code (#17573)
* Some minor improvements to the MangaDex code.

* Change capitalization of some other tags.
2023-08-19 11:56:14 -03:00
arkon
2a7801e876
Move package namespace declarations out of manifests (#17581) 2023-08-18 08:58:52 -04:00
nicki
d19e67ed2d
MangaDex: Add filtering to list search (#17460)
* increment extVersionCode

closes https://github.com/tachiyomiorg/tachiyomi-extensions/issues/17456

* add filtering to `list:`

* prefer using the constant instead

* revert to fallback url if MD@H node fails

* handle edge case in accessing list entries

mostly just to ensure the Retry message doesn't happen

* finish off TODO as manga redirects work fine nowadays

* linting

* add missing headers

this helps add the necessary tachiyomi ua and other stuff

* fix getMangaUrl
2023-08-11 14:59:21 -03:00
Alessandro Jean
7b48737ba8
Fix original language filter in MangaDex (#17369)
* Fix original language filter in MangaDex.

* Add new languages.
2023-08-05 10:30:45 -03:00
beerpsi
c367e3b126
Add a new lib-i18n to make message translation easier (#17336)
* Add support to better internationalization with a new lib.

* Add info about `lib-i18n` in the contributing guide.

* Use lib-i18n in M+ as well.

* Change properties files to UTF-8.

* use the assets/ folder instead of the res/ folder

files under assets/ are addressible by name

* mangadex: add string invalid_manga_id

* M+: Add translations for Vietnamese

* m+: Add Vietnamese to list of available languages

* mangadex: remove duplicate declarations

---------

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
2023-08-02 14:52:00 -03:00
Alessandro Jean
a59ef3a817
Refactor the MangaDex code a bit (#17267)
* Refactor the MangaDex code a bit.

* Bump the extension version.
2023-07-26 16:18:12 -03:00
Alessandro Jean
dd0a128de0
Revert lib-i18n addition (#16990)
* Revert "Add a new `lib-i18n` to make message translation easier (#16942)"

This reverts commit 4e17c228cad1e789ca74ad592924d8bed6d925ea.

* Bump the versions.
2023-07-02 18:42:03 -03:00
Alessandro Jean
4e17c228ca
Add a new lib-i18n to make message translation easier (#16942)
* Add support to better internationalization with a new lib.

* Add info about `lib-i18n` in the contributing guide.

* Use lib-i18n in M+ as well.

* Change properties files to UTF-8.
2023-07-02 17:38:41 -03:00
Alessandro Jean
c0e01e8dac
Translate some missing strings on MangaDex (#16841)
* Translate some missing strings on MangaDex.

* Use bullet points in the list.
2023-06-23 17:36:03 -03:00
FlaminSarge
0e8aad3b9f
[Mangadex] Call removeEntitiesAndMarkdown on desc before appending altTitles to it (#16711)
* [Mangadex] Call removeEntitiesAndMarkdown on desc before appending altTitles to it

* Bump extVersionCode
2023-06-11 08:14:00 -04:00
FlaminSarge
812d904979
[Mangadex] Add setting to show alternative titles in manga description (#16607)
* [Mangadex] Add setting to show alternative titles in manga description

Uses same-language and romanized titles only

* [Mangadex] Bump build.gradle for previous

* Only include romanized version of originalLanguage
2023-06-07 05:17:23 -04:00
Ivan Iskandar
ceedb73104
MangaDex: Fix popular-latest (#16435) 2023-05-14 09:00:12 -04:00
arkon
7964dc4613
Upgrade OkHttp (#15320) 2023-02-11 17:30:31 -05:00
arkon
baaee5cf21
Update linter (#15317) 2023-02-11 14:21:03 -05:00
Alessandro Jean
5093e6a5fa
Update to extensions-lib 1.4 (#15298)
* Update to extensions-lib 1.4.

* Fix a syntax error in NM.

* Add UpdateStrategy to Nana as well.
2023-02-11 10:44:48 -03:00
Alessandro Jean
ecdaaf98d0
Refactor the MangaDex code a bit. (#14902) 2023-01-11 16:59:30 -03:00
nicki
26ed286526
Refactor title selection logic (#14649)
most data in dex should be more stable than when this code was written
this is also how their Front-end does it

next refactor will be when the alt-title/title rework
2022-12-23 17:08:59 -05:00
nicki
9aa3d12aff
Support canary.mangadex.dev/* links to open in extension (#14631)
because mangadex beta testers can also be using tachi
2022-12-23 17:08:18 -05:00
Alessandro Jean
bd4faa01d9
Update MangaDex to use API v5.7.5 (#14087)
* Update MangaDex to use API v5.7.5.

* Remove unused line.

* Fix list type string.

* Make usage of `authorOrArtist` in deeplink.

* Use proper custom serializer for `LocalizedString`.

* Use actual enums for manga properties.

* Fix list search not working.

Co-authored-by: nicki <72807749+curche@users.noreply.github.com>

Co-authored-by: nicki <72807749+curche@users.noreply.github.com>
2022-11-03 11:32:36 -03:00
Alessandro Jean
b8d7a9dd6e
Add INKR to default blocked groups on MangaDex (#14065)
* Add Inkr to default blocked groups on MangaDex.

* Update MangaDex Readme file.
2022-10-31 18:43:11 -03:00
Alessandro Jean
c3a716a2b4
Temporary fix for empty filter list in MangaDex. (#14046) 2022-10-30 12:47:41 -03:00
Alessandro Jean
9a0c04c679
Fix first volume cover preference in MangaDex. (#14044) 2022-10-30 10:35:12 -03:00
Alessandro Jean
eaa7b15bae
Add option to attempt to use first volume cover on MangaDex (#14031)
* Add option to attempt to use first volume cover on MangaDex.

* Fix missing first volume covers and remove logical symbols.

* Reinforce isOneShot check and reword preference.
2022-10-29 22:59:22 -03:00
nicki
0c6ff5bab9
MangaDex i18n: Add Russian and Spanish translations (#13733)
* Mangadex Spanish translations start

* MangaDex Spanish translations: Settings done

* MangaDex Spanish translation: Content, Format, Genre, Theme done

* MangaDex Spanish translation: rest of setting done

includes Tag Mode, Sort, hasAvailableChapters, unable to process chapter
request, uploaded by $users, and no group

* Android Studio: replace deprecated `capitalize`

uses `replaceFirstChar` as a replacement (honestly suprising how Android
Studio managed that refactor all by itself)

* Add template to fill in Russian translations

* Added MangaDex Russian Translation

* Adding missing Spanish translation for Sort by Rating

and also co-author credit for all the other Spanish translations as well
Co-authored-by: kouyo <46226504+kouyo-quotient@users.noreply.github.com>

* Add missing Russian translation for `intl.sortRating`

Also, add co-author credit for all Russian translations
Co-authored-by: Grannix1337 <115176186+Grannix1337@users.noreply.github.com>

* increment MangaDex.extVersionCode

Co-authored-by: kouyo <46226504+kouyo-quotient@users.noreply.github.com>
Co-authored-by: Grannix1337 <115176186+Grannix1337@users.noreply.github.com>

Co-authored-by: kouyo <46226504+kouyo-quotient@users.noreply.github.com>
Co-authored-by: Grannix1337 <115176186+Grannix1337@users.noreply.github.com>
2022-10-07 09:33:55 -04:00
stevenyomi
806856965e
MangaDex: replace matchEntire with matches (#13743) 2022-10-07 06:59:39 -04:00
Alessandro Jean
c8adaa2f2a
Refactor the MangaDex code a bit. (#13703) 2022-10-03 18:35:21 -03:00
stevenyomi
a062cfaeca
MangaDex: use matchEntire to match UUID (#13600) 2022-09-27 11:27:48 -03:00
Alessandro Jean
c5bd48adc5
Validate UUID preferences and fix images loading on MangaDex (#13597)
* Validate UUIDs on preferences.

* Make the MD@H report call asynchronous.
2022-09-26 22:15:52 -03:00
stevenyomi
024b8c6667
Remove all custom rate limit interceptors (#13394) 2022-09-08 07:50:23 -04:00