Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from Mihon #1863

Open
wants to merge 84 commits into
base: main
Choose a base branch
from
Open

Merge from Mihon #1863

wants to merge 84 commits into from

Conversation

Secozzi
Copy link
Contributor

@Secozzi Secozzi commented Jan 1, 2025

Last commit merged: mihonapp/mihon@d592ab2

AntsyLich and others added 30 commits January 1, 2025 10:46
(cherry picked from commit 76dcf903403d565056f44c66d965c1ea8affffc3)
Fixes #1398

(cherry picked from commit 06efc3b25c5af51f42448af27a269ee459d9093d)
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/as/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/eo/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/es/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/hi/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/hr/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/it/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/nl/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/sa/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon-plurals/zh_Hant/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/as/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/bn/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ca/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/cv/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/de/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/el/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/es/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/fil/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/fr/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/hi/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/hr/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/id/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/it/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ja/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/kk/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/lt/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ml/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/nb_NO/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ne/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/nl/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ro/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/ru/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/sc/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/sq/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/th/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/tr/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/vi/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/mihon/mihon/zh_Hant/
Translation: Mihon/Mihon
Translation: Mihon/Mihon Plurals

Co-authored-by: Ajeje Brazorf <[email protected]>
Co-authored-by: Akhil Raj <[email protected]>
Co-authored-by: Allan Nordhøy <[email protected]>
Co-authored-by: AntsyLich <[email protected]>
Co-authored-by: C201 <[email protected]>
Co-authored-by: Chiro-kun <[email protected]>
Co-authored-by: Dexroneum <[email protected]>
Co-authored-by: Eduard Ereza Martínez <[email protected]>
Co-authored-by: Eji-san <[email protected]>
Co-authored-by: Eren Eroğlu <[email protected]>
Co-authored-by: Fadhil Muhammad <[email protected]>
Co-authored-by: FateXBlood <[email protected]>
Co-authored-by: Fordas <[email protected]>
Co-authored-by: Frosted <[email protected]>
Co-authored-by: Giorgio Sanna <[email protected]>
Co-authored-by: HDYOU <[email protected]>
Co-authored-by: Homura Akemi <[email protected]>
Co-authored-by: Infy's Tagalog Translations <[email protected]>
Co-authored-by: Itsmechinmoy <[email protected]>
Co-authored-by: Kryptox <[email protected]>
Co-authored-by: Leandro Cândido <[email protected]>
Co-authored-by: Lyfja <[email protected]>
Co-authored-by: Marco Espinoza <[email protected]>
Co-authored-by: Milihraim <[email protected]>
Co-authored-by: Milo Ivir <[email protected]>
Co-authored-by: N. Hao <[email protected]>
Co-authored-by: NGB-Was-Taken <[email protected]>
Co-authored-by: Nguyễn Trung Đức <[email protected]>
Co-authored-by: Noah Kenzie Rodriguez-Beus <[email protected]>
Co-authored-by: Pitpe11 <[email protected]>
Co-authored-by: SBS1313 <[email protected]>
Co-authored-by: Saft Octavian <[email protected]>
Co-authored-by: Siebrenvde <[email protected]>
Co-authored-by: Swyter <[email protected]>
Co-authored-by: Valerio Marini <[email protected]>
Co-authored-by: ZerOriSama <[email protected]>
Co-authored-by: abc0922001 <[email protected]>
Co-authored-by: altinat <[email protected]>
Co-authored-by: altinat <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: gekka <[email protected]>
Co-authored-by: orkan gökçe alaz aşina <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: ɴᴇᴋᴏ <[email protected]>
Co-authored-by: 赤星悠太 <[email protected]>

(cherry picked from commit 79e711efc20855f42cb544697edc124963506414)
(cherry picked from commit ee134fce587a83b27aea5b97e1e621a032008d6d)
(cherry picked from commit bb4d9fc81a043ac4f2d0105f19c09974ae2f7201)
Co-authored-by: AntsyLich <[email protected]>
(cherry picked from commit 2ca2cec02b818d85c73885fadc23f8480e62a0af)
(cherry picked from commit a5349a881b650c15de57ba39e4e121a26918f913)
(cherry picked from commit 261bbef99754588128dbb613cd1744a76e361311)
(cherry picked from commit ef7992f9121828af9efa7a66ed1d2d731793d6b5)
(cherry picked from commit cb2b0464d036496d7b029468a9a3efc2e95151d9)
(cherry picked from commit 9580a00aa674edd66c6a22ea127e6317f5d85498)
(cherry picked from commit 3cfc2be104c2820eccbaa9d3a68b3df0ed37e39c)
(cherry picked from commit 6159bc36368910c024682ad5d0d2b298bc4fb17f)
(cherry picked from commit 3a648e4fa50fa9c6cf8703b74062d67db237be1c)
…1450)

(cherry picked from commit 9df21583dc1da6da4041709a6d059848c6c9bda0)
(cherry picked from commit d1a970e3f3c9a2cfea2567a2e86245fc8a169c68)
(cherry picked from commit 39982c406351c93610dedda75ac5199d29b3d6a5)
(cherry picked from commit 01067505031ca9e4553c1541db786aec99d9b81e)
(cherry picked from commit e332590b1bbe3eaea76763db0761e9690ae684e2)
(cherry picked from commit 5a91d5c611faacacf5cf6fa135e93863c0332475)
(cherry picked from commit 36d5ee0763be2b0bcc65f9d061961d86359fe6f6)
This reverts commit bb4d9fc81a043ac4f2d0105f19c09974ae2f7201.

(cherry picked from commit 1909126921ac78309f7f7c7c2aa85606611531b8)
Closes #1460

(cherry picked from commit e6d96bd348ea5d18a005d6465222ad5f5123103e)
Closes #1436
Closes #1486

(cherry picked from commit dcddac5daaff3ec89c8507c35dc13d345ffdb6d7)
AntsyLich and others added 2 commits January 1, 2025 12:18
This reverts commit 1909126921ac78309f7f7c7c2aa85606611531b8

(cherry picked from commit c5655e8803bc32d0931657f0b7bc6afeab70feaf)
@Secozzi Secozzi changed the title Mihonmerge Merge from Mihon Jan 1, 2025
Secozzi and others added 25 commits February 2, 2025 21:26
* Update GitHub Actions

* Downgrade softprops/action-gh-release

---------

Co-authored-by: AntsyLich <[email protected]>
(cherry picked from commit 19af85ab614151f72846be56e5ad7eb687a44e35)
…have a cover set (#1618)

* Fix MAL manga cover nullability

If a manga doesn't have a cover, MAL doesn't provide the
`main_picture` element in the API response at all.

Co-authored-by: MajorTanya <[email protected]>
Co-authored-by: AntsyLich <[email protected]>
(cherry picked from commit 1617f8eb49a210808326bc46b536b87d62095658)
(cherry picked from commit d9a550b9350a6fb46bac783833b54c4b199e719b)
…0.0 (#1628)

(cherry picked from commit 3a3abc6854c8035e0d489750a04fba8400ef2c84)
(cherry picked from commit 2c5f28f2773783f8fb9554679e3617589f661815)
(cherry picked from commit 1fe4d6cbd41f38676cb3cd858974ac105d272786)
(cherry picked from commit ae9753a1ea72b9e8d3271d56ed6cc202b8973ca2)
(cherry picked from commit c01e9f3e92b9b2aa92aa50af5e3066affed419ad)
…0.1 (#1630)

(cherry picked from commit 5a9367603beb82aac350c47c9ea2a6c343be0c1e)
(cherry picked from commit 4bc593861cd4ff7d8782097acd91e68350136093)
* add per Extension Incognito Mode

* migrate incognito sources when extension is updated

* remove incognito sources when extension is uninstalled

* remove not used variable

* address change requests

address change requests

* Rebase and cleanup code

---------

Co-authored-by: AntsyLich <[email protected]>
Co-authored-by: sdaqo <[email protected]>
…0.2 (#1647)

(cherry picked from commit e59d2d381d2c105cae41918d30cc215ab3317551)
(cherry picked from commit 9c81f2486cd8db6dbdb68e6e273cc8587814b21d)
(cherry picked from commit 643f95f046e98d7403daedf06ff01d0c9708249d)
… logcat output (#1672)

* Add zoned date & time to debug info & logs

This should help distinguish log entries that happened recently and
may be related to crashes from older entries that occurred before now.

* Change logcat date and time output format

After some discussion, it was decided to adjust the logcat date and
time display to include the year and the timezone in the logcat
output. This results in a line start like this:

`2025-01-27 18:37:46.662 +0100`

which follows the following DateTimeFormatter pattern:

`yyyy-MM-dd HH:mm:ss.SSS Z`

* Add CHANGELOG.md entry

Co-authored-by: MajorTanya <[email protected]>
* Fix Bangumi tracking losing track of login state

kotlinx.serialization does NOT serialize default values (like
createdAt in BGMOAuth.kt), so every time the Bangumi tracker
deserialized the tracker OAuth, createdAt was set to the time of the
read, not the time of issuance.

Separately, BangumiInterceptor did correctly fetch new OAuth
credentials upon detected expiry of the stored credentials and saved
them, but did not use them for the current request (the new
credentials were used for all subsequent requests only). This led to
401 errors from Bangumi because the expired access_token was provided.
 A subsequent request using the newly acquired access_token would end
 up being successful.

* Add CHANGELOG.md entry

(cherry picked from commit dce6aacf02d07f3f123b19b1b74cbbe18c28852b)
* Add missing @EncodeDefault annotation to MALOAuth

Similar to the situation with Bangumi, the missing annotation means
kotlinx.serialization would _provide_ the default value upon
instantiation but not serialise it to disk. This means the isExpired()
calculation would effectively rarely/never do its job correctly,
leading to Mihon sending expired tokens to MAL and causing problems
for everyone involved.

Overall, this change _could_ (should) lead to a drastic reduction in
MAL requests failing, leading to users having to relink their MAL
accounts.

Also switched createdAt to be in seconds instead of milliseconds as
all other trackers use seconds for timestamps (except for AniList,
which uses milliseconds but doesn't use a createdAt timestamp anyway).

* Add CHANGELOG.md entry

(cherry picked from commit 29ec7c125a3f1a1f39a90f8eba2d3e39b5af9797)
* Add Infinix system app to list of invalid browsers

`com.transsion.resolver` being picked by the system as a suitable
browser caused a Mihon user with an Infinix device to be unable to
open any links in browsers, including tracker login and opening a
WebView page in a real browser.

Co-authored-by: AntsyLich <[email protected]>

* Add docstring to DeviceUtil.invalidDefaultBrowsers

---------

Co-authored-by: AntsyLich <[email protected]>

(cherry picked from commit bfc8320aa4720dc3b908aab1b8a1ffb99d43193b)
(cherry picked from commit 34efa8d9017f58001a93db4e53b4ca03a0ab2660)
(cherry picked from commit 9d6ed93daaa91217fc82fb856e6d3d4eedd0092a)
(cherry picked from commit d592ab2e8712d13169942a7e7f53ef0c29a77a7b)
@Secozzi Secozzi marked this pull request as ready for review February 2, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants