209 Commits

Author SHA1 Message Date
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
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
FourTOne5
bf119937ff
MangaDex Cover Qulity Setting (#8268)
* Update MDConstants.kt

* Update MangaDex.kt

* Update MangaDexHelper.kt

* Update build.gradle

* Update MangaDex.kt

* Update MangaDexHelper.kt

* Update MangaDexHelper.kt

* Update MDConstants.kt
2021-07-26 06:40:18 -04:00
lord-ne
233746b94d
MangaDex: Make chapter URLs deeplink to series page in Tachiyomi (#8205)
* MangaDex: Chapter URLs deeplink to series page in Tachiyomi

* Changes to getMangaIdFromChapterId:
* Remove FORCE_NETWORK from request
* Decode to ChapterDto instead of manually parsing json
* Make exception on unsuccessful response more verbose

* Use constant instead of "manga" literal
2021-07-21 11:20:09 -04:00
Carlos
5a8287c1fa
Fix latest mangadex order, and missing manga, and follows users default content rating (#8161)
* Fix latest mangadex order, and missing manga, and follows users default prefs for content rating

* update gradle
2021-07-17 15:45:28 -04:00
Jared Irwin
955c0891f8
Make MangaDex load images more consistently (#8102)
* Make fetching the md@h url less likely to break

* import TimeUnit
2021-07-13 19:35:35 -04:00
Carlos
1cc39ff6e0
fix mangadex titles having "" (#8037) 2021-07-09 18:04:08 -04:00
Carlos
b3aaf136c2
MangaDex fix deeplinking, parsing, clean up dto's, add latest chapter (#8035)
* MangaDex fix deeplinking, parsing, clean up dto's, add latest chapter

* change wording for sort
2021-07-09 16:39:34 -04:00
animusfracto
84f2e19495
Add in error handling to handle malformed responses from the aggregate endpoint. addresses #7697 and #7678 (#7709) 2021-06-17 18:18:02 -04:00
Alessandro Jean
6991d96d59
Remove last Gson usage at MangaDex (#7656)
* Remove last Gson usage at MangaDex.

* Use ImageReportDto instead of buildJsonObject.
2021-06-15 11:11:03 -04:00
Carlos
761e467896
update to use includes to reduce api calls (#7603) 2021-06-10 21:11:54 -04:00
Carlos
49c930d622
MangaDex: Switch to serialization, use lang descriptions if available, fix open in webview, fix publication status, possibly fix md@home retry (#7540)
* switch to kotlinx

* use baseurl in referer

* remove default sort cause we don't use at this time
update build.gradle

* Use correct field when parsing manga pub status

* Use current language if available in description map.

* potentially fix md@host refresh issue

* add default sort back since that's by number of follows

* use work around for webview credit @Nar1n

Co-authored-by: animusfracto <50589737+animusfracto@users.noreply.github.com>
Co-authored-by: Alessandro Jean <alessandrojean@gmail.com>
2021-06-08 20:58:56 -04:00
Alessandro Jean
2fb79d4a2c
Fix referer in MangaDex. (#7397) 2021-06-02 19:48:15 -04:00
Alessandro Jean
d191a78d97
Add Referer header to MangaDex. (#7393) 2021-06-02 16:28:31 -04:00
Carlos
6822315dfd
use dex covers for everything (#7291) 2021-05-29 20:26:29 -04:00
Carlos
5f10f155d9
MangaDex use translatedLanguage and an alt cover source(#7180)
* fix locales, add back bone for covers, use alt cover url

* dont change url

* update gradle
2021-05-22 11:16:31 -04:00
Baptiste Leduc
cffc0157a6
Use correct field name for MD@H report endpoint (#7066)
* Use correct field name for MD@H report endpoint

* Bump build.gradle version
2021-05-17 14:09:10 -04:00
Carlos
56d9d913f3
update mangadex at home reporting (#7038)
* fix reporting for md@home

* dont show safe rating

* dont show safe rating

* update gradle
2021-05-15 20:08:28 -04:00
INSANEMODE
85bf0c87d9
[Mangadex]fix crossdressing tag id (#6954)
* fix crossdressing tag id

the crossdressing id was using the ninja tag id "489dd859-9b61-4c37-af75-5b18e88daafc" when it should be "9ab53f92-3eed-4e9b-903a-917c86035ee3", as seen in https://api.mangadex.org/manga/tag

* Match tag names, and remove ecchi

spelling of tag names have been changed to match the api.
ecchi has been removed.

* Update build.gradle
2021-05-11 18:27:55 -04:00
Carlos
185a0b4c37
Mangadex bug fixes and remove piedpiperfb (#6928)
* fix ongoing typo
fix original language filtering
fix filipino language

* remove piedpiperfb

* add chapter sort order

* add volume to the sort also
2021-05-09 19:07:06 -04:00
Carlos
86d0c8eb12
update to new ssl variable (#6917)
update wording for content rating prefs
2021-05-08 21:00:38 -04:00
Carlos
deec443983
More Dex Updates (#6900)
* MangaDex: remove empty tag, fix genre typo

- remove empty tag caused by null/empty publicationDemographic/other from nonGenres if its null/empty
- fix typo genre uuid

* better method removing empty tag

Co-Authored-By: Carlos <2092019+CarlosEsco@users.noreply.github.com>

* revert pt-br changes

Changing it to pt-br instead of pt-BR changed the id of the source and made the Mangadex in Brazilian Portuguese to be separed from the other Brazilian extensions (that uses pt-BR as lang)

Co-Authored-By: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>

* Update build.gradle

* String updates to support standard HTTPS in MD@H node selection

* Code updates to only use nodes with standard HTTPS in MD@H node selection

* Update build.grade to indicate new version

* fix preferences and langs

* low md@home to refresh host sooner

* add content rating by default preferences(defaults to safe and suggestive)

* throw error for page list parsing instead of trying to continue

* clean up string

Co-authored-by: Riztard <riyanluqman@gmail.com>
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
Co-authored-by: fourquestionmarksokay <83817943+fourquestionmarksokay@users.noreply.github.com>
2021-05-08 07:27:08 -04:00
Carlos
9a45dc2f8e
Dex fixes (#6856)
* fix some langs

* dex bug fixes

* add temp cover

* local for languages, clean and capitalize demo/rating, fix tags not showing
2021-05-06 00:11:51 -04:00
Carlos
715bdcccc1
Dex V5 (note: their are no covers currently, you will need to migrate from dex to dex) (#6843)
* initial v5 stuff

* more v5 stuff

* slight changes

* add search

* clean up search some

* change athome parsing
clean up filters

* add Status options for search

* update to use batch author endpoint

* add more filters

* small fixes

* more fixes

* change error message
2021-05-05 19:55:50 -04:00