204 Commits

Author SHA1 Message Date
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
nicki
269cc90c89
Add Tamil and Kazakh chapter language support (#12756) 2022-07-27 14:12:19 -03:00
nicki
a552234fd3
MangaDex: Add Sort by Rating (#12204)
* Add Sort by Rating to MangaDex Browse

* Increment mangadex.extVersionCode

* Add Portuguese translations for "Rating"

Co-authored-by: Alessandro Jean
<14254807+alessandrojean@users.noreply.github.com>
2022-06-15 11:12:11 -03:00
nicki
a07efca470
MangaDex: Readme update, Add Latin, and Search sort (#12144)
* Arrange code as used in FilterList

just to improve readability
also kept related things together (like OriginalLanguage related methods)

* Match default Sort with what frontend uses

Searching on the website uses /manga?order[relevance]=desc
This commit matches to that

* Arrange lang sources alphabetically

atleast makes it a bit easy to see if a language exists

* Remove MangaDex (Other)

its been throwing HTTP Forbidden Error since locale checks were added
for translatedLanguages. There are no plans to actually support them in
the future nor are there users using it (since there were no reports)

* Add MangaDex (Latin)

newly created chapter language
has only two (April Fools) translated chapters for now

* Add a section on Manga Status in MangaDex Readme

* Increment mangadex.extVersionCode
2022-06-09 19:21:22 -03:00
Alessandro Jean
b197d624f9
Tweak MangaDex status handling to match Neko and SY behavior. (#12123) 2022-06-07 21:47:10 -03:00
arkon
26e64a36fe
Fix URL handler activities (#12093) 2022-06-06 18:45:48 -04:00
FlaminSarge
d74e4708d7
[Mangadex] Fix uploader username handling (#12096) 2022-06-06 13:25:31 -03:00
arkon
93e6774da0
Refactor to use app-provided rate limiting interceptors (#12088) 2022-06-05 17:24:05 -04:00
arkon
86d04b11b7
[skip ci] Address some compiler deprecation warnings (#12086) 2022-06-05 16:07:57 -04:00
Alessandro Jean
cb9a898787
Add support to i18n in MangaDex (#11901)
* Add support to i18n in MangaDex.

* Update the filters and lint some stuff.

* Reword 'tags' into 'tags mode' in the filter
2022-05-21 19:47:24 -03:00
Alessandro Jean
ec31b66c98
[skip ci] Fix missing text on extension README docs. (#11361) 2022-04-07 13:34:20 -04:00
arkon
5db3e03d15
Stop using internal OkHttp APIs (#11172) 2022-03-18 22:27:30 -04:00
jopejoe1
2b5359ca26
Mangadex: Add support for MDLists url intent (#11024)
* Update build.gradle

* Added list support

* Add error message for empty list

* Update AndroidManifest.xml
2022-03-06 09:48:27 -05:00
jopejoe1
41a1d83cd0
Added url intent for author and uploader to managadex (#11015)
* Update build.gradle

* Added Support for author and uploader url intended
2022-03-05 04:50:16 -05:00
nicki
a60274e18b
MangaDex: Remove wildcard deeplinking (#10688)
* move more regexes into companion object

* Remove wildcard domain intent

too many issues. Might as well have the extension only support
mangadex.org links

* Increment mangadex.extVersionCode
2022-02-04 18:13:01 -05:00
nicki
81e98ae6ae
MangaDex: Clean manga descriptions (#10674)
* MangaDex: Clean manga descriptions

Closes #10610

* Incrememnt mangadex.extVersionCode

* Remove bbcode cleanup utility

Since bbcode has been replaced with markdown. So, this is no longer
required

* Don't forgot to unescape html characters

bbcode might be gone but &hearts still need to be converted to ♥

* Update `cleanString` method description

* Remove trailing newlines

Using Trim takes cares of whitespace too

* Move regex to companion object

so that they dont get instantiated everytime

* Revert "Incrememnt mangadex.extVersionCode"

This reverts commit 73c89933cc36cb41fd6691641c75acf0b6f49c45.
Will be added back in a separate minor PR
2022-02-04 05:26:31 -05:00
FourTOne5
47591d528c
Fix broken links. (#10570) 2022-01-24 13:04:17 -05:00
Andreas
ca9645288f
Add extension fields for hasReadme and hasChangelog (#10469)
* Add extension fields for hasReadme and hasChangelog

* Dump Komga extVersionCode
2022-01-22 09:48:52 -05:00
nicki
a84a3e275f
MangaDex: Add Slug to Share url, Prefer jp-ro titles and Verify host link intents (#10539)
* Add slug to Share URL

cleans up the title and adds it as a slug to the end of the url that can
then be shared without any issues

Co-authored-by: Henrik <22085664+henrik9999@users.noreply.github.com>

* Check for Japanese Romanized titles

ko-ro and zh-ro also exist but arent that readable compared to ja-ro
personally. And those have a confirmed en title (or fallbacks) anyways

* Increment mangadex.extversioncode

* Linting by Android Studio build process

* Actually use the correct lang code

it's `ja-ro` not `jp-ro`

* Support verified deeplinks (A12+)

* Replace intent host to wildcard hosts

helps with A12 link verify
Ref https://github.com/tachiyomiorg/tachiyomi-extensions/pull/9993

Co-authored-by: funkyhippo <52957110+funkyhippo@users.noreply.github.com>

* Make `titleToSlug` more idiomatic

perhaps java.text.Normalizer could have helped but didnt want to add an
import just for that :d

Co-authored-by: Henrik <22085664+henrik9999@users.noreply.github.com>
Co-authored-by: funkyhippo <52957110+funkyhippo@users.noreply.github.com>
2022-01-21 14:13:43 -05:00
nicki
60751ea39a
MangaDex: Group Blocking improvements (#10481)
* Replace "Abandoned" with "Cancelled"

was replaced in the Api few months back as well

* Refactor externalURL filtering to use pages attr

* Add mangahot to list of external linked groups

* Refactor group blocking

- Block external linked groups separately
  This block is now only done in Latest section (uses /chapter) since
  filtering them out in /manga/ID/feed is done by `createChapter` helper
  already
- No default UUIDs set in groupBlock setting - external linked groups
  and their UUIDs arent exposed to Users

* Increment mangadex.extversioncode

* Remove unneeded empty string check for ch.attr.externalUrl

Co-authored-by: Mitchell Syer <Mitchellptbo@gmail.com>

Co-authored-by: Mitchell Syer <Mitchellptbo@gmail.com>
2022-01-17 10:07:02 -05:00
nicki
b38bcd4f0b
MangaDex: Block Uploaders (#10433)
* Add uploader block to Dex extension

* Sort the list to aid Varnish Caching

"For sake of caching, sort User configurable input query params.
Varnish caching cannot know that it's a list that's safe to re-sort etc.
Use like alphabetical UUID sorting"

* Bump MangaDex.extVersionCode
2022-01-12 13:02:04 -05:00
nicki
97458d6998
MangaDex: Scanlation Group blocking (#10376)
* Add (somewhat) working group blocking

blocks an input scanlator group
doesn't seem to block official/external-link groups

* Fine tuning adjustments*

 - sanitise inputs as much as possible
 - add to summary a bit more
 - `setDefaultValue` looks to set once and never again. So even if
   EditText receives an empty String, it is still valid...
   Not sure if I could do it better

* Increment mangadex.extversioncode
2022-01-06 13:59:49 -05:00
Alessandro Jean
aa98af8907
Add a new filter and fix missing Bilibili chapters in MD. (#10253) 2021-12-27 14:17:14 -05:00
nicki
1f9be45238
Mangadex: Use updated /at-home/server/ endpoint for pages (#10221)
* Move chapter images data to atHome Response

Updates ChapterDto and AtHomeDto as per Deprecation notice

* Use new atHome response to fetch chapter pages

this commit does the following:
 - updates the Dtos as per deprecation notice
 - creates a call to `/at-home/server/` in `pageListRequest`
 - made sure to track of how old chapter token is as was previous
   practice
 - `pageListParse` no longer has the 204 response. Instead we get a 404
   response (not sure about the 504 response for /at-home/server too but
   have to check again. If its not used now, then it could be removed
 - since `atHomeRequestUrl` was necessary for `getValidImageUrlForPage`,
   tried to fetch it from the response. As per their docs and our
   usecase, it should be fine hopefully
   Ref:
   https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/request/
 - since /chapter/ no longer has `data` attribute, the additional
   check for external chapters was removed
 - tested on 0.12.3 (on Mi A2, running Android12): read few
   chapter/oneshots without issues

* Increment mangadex.extVersionCode

essentially a Christmas present from MD (for its servers :d)

* remove redundant isSuccessful check

essentially dead code since the check is done by `fetchPageList` before
it calls `pageListParse`
2021-12-25 10:52:17 -05:00
nicki
b210902b2c
Mangadex: View all Manga by a Group (+handle group links) (#10060)
* search Manga from a group using their id

* add group deeplink support

* linting

* increment mangadex.extVersionCode

* respect `dexLang`

eg: MangaDex (EN) needn't show a group's non-EN releases

* you cannot use filters on chapter endpoint

fixes HTTP 400 while trying to filter on chapter endpoint

* rewrite to use /manga endpoint instead of /chapter

ends up removing a lot of stuff I had previously but that's a good thing

* add check for valid UUID

if a UUID wasn't being provided, then the group queryParameter wouldn't
work and end up throwing Error 400. Might as well prevent that
2021-12-13 14:08:33 -05:00
FlaminSarge
bc39d9ae8f
[Mangadex] Fallback to uploader name for uploads that are missing group info entirely (#10023)
This also filters out the legacy MDv3 'no group' entity
2021-12-09 06:59:52 -05:00
nicki
3f884c8248
Mangadex: Filter Popular to show only Manga TLd in that particular lang (#10033)
* show only manga TLd in `dexLang` in Popular

* increment mangadex.versioncode
2021-12-08 05:55:20 -05:00
nicki
8f22b785d6
Mangadex: Add nepali and forgotten Other (#10002)
* add the forgotten `Other`

* add nepali to mangadex factory

* bump mangadex.extVersionCode
2021-12-05 12:20:54 -05:00
FlaminSarge
55b2eac827
[Mangadex] Update originalLanguage pref to use MultiSelectListPreference (#9671)
The zh-hk workaround is done during query param building rather than being stored in the preference value
2021-10-30 12:29:30 -04:00
FlaminSarge
f3b3995174
[Mangadex] Update content rating to use MultiSelectListPref (#9670) 2021-10-30 09:56:35 -04:00
Alessandro Jean
31e563c9ab
Fix wrong language in originalLanguage tag. (#9600) 2021-10-24 13:39:21 -04:00
FlaminSarge
b143713590
[Mangadex] Handle empty title case, where title is romaji-only (ja) or otherwise missing, by picking whatever value is in title field as a last resort (#9598) 2021-10-23 07:37:24 -04:00
arkon
6a75de9261
Remove usage of @Nsfw annotation in favor of extension-level flagging (#9368) 2021-10-04 16:44:32 -04:00
Ivan Iskandar
f92453cdcf
MangaDex: Title fetching improvement (#9238)
Some manga somehow has romaji title tagged as "jp" language. So also use
altTitles list and use extension language as the base language when
searching while keeping english as fallback.

This reduces the possibility of this extension returning empty title.
2021-09-26 08:23:14 -04:00
TheOneMaster
965aecc006
Changed mangadex default sort to most follows (#9155)
Co-authored-by: nayan <TheOneMaster@users.noreply.github.com>
2021-09-20 17:37:16 -04:00
Johannes Joens
d8bcdd11c7
Mangadex: add missing sort options (#9043)
* added Missing sort options

* Update build.gradle

* Improved latestUpdatesRequest

latestUpdatesRequest does not require the previous work around anymore as latestUploadedChapter sort order was added to the api

* Fixed Typo
2021-09-16 09:28:59 -04:00
loocool2
62af1c06ab
MangaDex: Turned off including Upcoming Future Updates in the Latest feed (#9048)
* Turned off including Future Updates

* fixed tags not showing up in MangaDex
2021-09-13 11:20:51 -04:00
nicki
fb87b363e6
Update Mangadex to new chapterListDto and MangaListDto following deprecation (#9046)
* update chapterListDto

* update MangaListDto

* increment md.extvercode
2021-09-12 15:19:57 -04:00
loocool2
bc8b461ab7
Fixed erotica and porn not showing in latest (#9039) 2021-09-11 15:03:54 -04:00
loocool2
df42ef37cc
changed originLang filtering to filter at request time and moved relationships (#9036) 2021-09-11 13:07:06 -04:00
TheOneMaster
fc204bd93a
Fixed Mangadex sorting issues when filtering (#9020)
* fixed sorting issues

Fixed "Sort by Most Follows" since it was no longer the default, and added relevance sorting to the list of possible sorts

* Fixed Mangadex sorting when browsing

* Changed default sort to Most Followed manga

* Fixed it so that the "Number of follows" is the default sorting filter selected instead of "Manga created at"

* When sorting by ascending for Number of follows, returns manga with the fewest follows instead of default search with no sort

Co-authored-by: nayan <TheOneMaster@users.noreply.github.com>
2021-09-11 07:15:53 -04:00
arkon
2a3d88cea0
Target SDK 31 (#9022) 2021-09-09 18:25:46 -04:00
arkon
bc7d8c8672
Default libVersion to 1.2 (#9014) 2021-09-09 08:58:17 -04:00
loocool2
75bdb0bec5
Added support for OriginLanguage filtering in latest and browse, fixed porn chapters too (#8993)
* Added originalLanguage filters

* add content preference in chapter list

* Remove zero width space

* change default originLanguagepref to false

* made originLang work in browse too

* actually fixed nsfw chapter list maybe

* added new MangaDex icons

* filter all chapters with external links

* change browse sort to followCount

* add origin language filtering to browse and properly set default filter values

* add all contentRating queries to the actual chapterlist request no matter what
2021-09-08 15:38:29 -04:00
loocool2
465b6e05af
Filtered comikey chapters (#8888) 2021-08-30 08:04:16 -04:00
loocool2
f77b170e45
Properly process chapters without a group name (#8785)
* Fixed MangaDex content rating preferences being swapped

* Properly process anonymous chapters

* Remembered to account for empty string
2021-08-24 10:55:26 -04:00
loocool2
4d1bc517f2
Fixed MangaDex content rating preferences being swapped (#8784) 2021-08-24 06:42:31 -04:00