From 166b1ee371da6a4cebd7dfd061406e46b173d633 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Wed, 3 Sep 2025 10:32:24 +0800 Subject: [PATCH] fix(kobo): update default kobo resources Closes: #2066 --- .../komga/infrastructure/kobo/KoboProxy.kt | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt index 850bc4643..67e628f29 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt @@ -161,6 +161,7 @@ class KoboProxy( "audiobook_subscription_tiers": "https://www.kobo.com/{region}/{language}/checkoutoption/21C6D938-934B-4A91-B979-E14D70B2F280", "authorproduct_recommendations": "https://storeapi.kobo.com/v1/products/books/authors/recommendations", "autocomplete": "https://storeapi.kobo.com/v1/products/autocomplete", + "bam": "https://storeapi.kobo.com/v2/activity/bam/success", "blackstone_header": { "key": "x-amz-request-payer", "value": "requester" @@ -173,6 +174,7 @@ class KoboProxy( "browse_history": "https://storeapi.kobo.com/v1/user/browsehistory", "categories": "https://storeapi.kobo.com/v1/categories", "categories_page": "https://www.kobo.com/ebooks/categories", + "categoriesv2": "https://storeapi.kobo.com/api/v2/Categories/Top", "category": "https://storeapi.kobo.com/v1/categories/{CategoryId}", "category_featured_lists": "https://storeapi.kobo.com/v1/categories/{CategoryId}/featured", "category_products": "https://storeapi.kobo.com/v1/categories/{CategoryId}/products", @@ -180,6 +182,7 @@ class KoboProxy( "client_authd_referral": "https://authorize.kobo.com/api/AuthenticatedReferral/client/v1/getLink", "configuration_data": "https://storeapi.kobo.com/v1/configuration", "content_access_book": "https://storeapi.kobo.com/v1/products/books/{ProductId}/access", + "contributorsv2": "https://storeapi.kobo.com/v2/contributors/author", "customer_care_live_chat": "https://v2.zopim.com/widget/livechat.html?key=Y6gwUmnu4OATxN3Tli4Av9bYN319BTdO", "daily_deal": "https://storeapi.kobo.com/v1/products/dailydeal", "deals": "https://storeapi.kobo.com/v1/deals", @@ -190,14 +193,19 @@ class KoboProxy( "device_refresh": "https://storeapi.kobo.com/v1/auth/refresh", "dictionary_host": "https://ereaderfiles.kobo.com", "discovery_host": "https://discovery.kobobooks.com", + "display_accessibility_enabled": "False", + "display_parental_controls_enabled": "True", "dropbox_link_account_poll": "https://authorize.kobo.com/{region}/{language}/LinkDropbox", "dropbox_link_account_start": "https://authorize.kobo.com/LinkDropbox/start", + "ereaderdevices": "https://storeapi.kobo.com/v2/products/EReaderDeviceFeeds", "eula_page": "https://www.kobo.com/termsofuse?style=onestore", "exchange_auth": "https://storeapi.kobo.com/v1/auth/exchange", "external_book": "https://storeapi.kobo.com/v1/products/books/external/{Ids}", - "facebook_sso_page": "https://authorize.kobo.com/signin/provider/Facebook/login?returnUrl=http://kobo.com/", + "facebook_sso_page": "https://authorize.kobo.com/signin/provider/Facebook/login?returnUrl=https://kobo.com/", "featured_list": "https://storeapi.kobo.com/v1/products/featured/{FeaturedListId}", "featured_lists": "https://storeapi.kobo.com/v1/products/featured", + "featuredlist2": "https://storeapi.kobo.com/v2/products/list/featured", + "fixed_layout_page_cache_enabled": "True", "free_books_page": { "EN": "https://www.kobo.com/{region}/{language}/p/free-ebooks", "FR": "https://www.kobo.com/{region}/{language}/p/livres-gratuits", @@ -207,6 +215,7 @@ class KoboProxy( }, "fte_feedback": "https://storeapi.kobo.com/v1/products/ftefeedback", "funnel_metrics": "https://storeapi.kobo.com/v1/funnelmetrics", + "geography_data": "https://storeapi.kobo.com/v2/configuration/geography/country", "get_download_keys": "https://storeapi.kobo.com/v1/library/downloadkeys", "get_download_link": "https://storeapi.kobo.com/v1/library/downloadlink", "get_tests_request": "https://storeapi.kobo.com/v1/analytics/gettests", @@ -214,10 +223,13 @@ class KoboProxy( "giftcard_redeem_url": "https://www.kobo.com/{storefront}/{language}/redeem", "googledrive_link_account_start": "https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive", "gpb_flow_enabled": "False", - "help_page": "http://www.kobo.com/help", + "help_page": "https://www.kobo.com/help", "image_host": "//cdn.kobo.com/book-images/", "image_url_quality_template": "https://cdn.kobo.com/book-images/{ImageId}/{Width}/{Height}/{Quality}/{IsGreyscale}/image.jpg", "image_url_template": "https://cdn.kobo.com/book-images/{ImageId}/{Width}/{Height}/false/image.jpg", + "instapaper_enabled": "True", + "instapaper_env_url": "https://www.instapaper.com/api/kobo", + "instapaper_link_account_start": "https://authorize.kobo.com/{region}/{language}/linkinstapaper", "kobo_audiobooks_credit_redemption": "True", "kobo_audiobooks_enabled": "True", "kobo_audiobooks_orange_deal_enabled": "True", @@ -244,7 +256,8 @@ class KoboProxy( "love_dashboard_page": "https://www.kobo.com/{region}/{language}/kobosuperpoints", "love_points_redemption_page": "https://www.kobo.com/{region}/{language}/KoboSuperPointsRedemption?productId={ProductId}", "magazine_landing_page": "https://www.kobo.com/emagazines", - "more_sign_in_options": "https://authorize.kobo.com/signin?returnUrl=http://kobo.com/#allProviders", + "more_sign_in_options": "https://authorize.kobo.com/signin?returnUrl=https://kobo.com/#allProviders", + "morebyauthor": "https://storeapi.kobo.com/v2/products/recommendations/morebyauthor", "notebooks": "https://storeapi.kobo.com/api/internal/notebooks", "notifications_registration_issue": "https://storeapi.kobo.com/v1/notifications/registration", "oauth_host": "https://oauth.kobo.com", @@ -258,9 +271,13 @@ class KoboProxy( "product_prices": "https://storeapi.kobo.com/v1/products/{ProductIds}/prices", "product_recommendations": "https://storeapi.kobo.com/v1/products/{ProductId}/recommendations", "product_reviews": "https://storeapi.kobo.com/v1/products/{ProductIds}/reviews", + "productbyid": "https://storeapi.kobo.com/v2/products/itemDetailById/{ProductType}/{Id}", + "productbyslug": "https://storeapi.kobo.com/v2/products/itemDetail/{ProductType}/{Slug}", "products": "https://storeapi.kobo.com/v1/products", + "productstatebyid": "https://storeapi.kobo.com/v2/products/itemStateById/{ProductType}/{Id}", + "productstatebyslug": "https://storeapi.kobo.com/v2/products/itemState/{ProductType}/{Slug}", "productsv2": "https://storeapi.kobo.com/v2/products", - "provider_external_sign_in_page": "https://authorize.kobo.com/ExternalSignIn/{providerName}?returnUrl=http://kobo.com/", + "provider_external_sign_in_page": "https://authorize.kobo.com/ExternalSignIn/{providerName}?returnUrl=https://kobo.com/", "purchase_buy": "https://www.kobo.com/checkoutoption/", "purchase_buy_templated": "https://www.kobo.com/{region}/{language}/checkoutoption/{ProductId}", "quickbuy_checkout": "https://storeapi.kobo.com/v1/store/quickbuy/{PurchaseId}/checkout", @@ -270,7 +287,9 @@ class KoboProxy( "reading_services_host": "https://readingservices.kobo.com", "reading_state": "https://storeapi.kobo.com/v1/library/{Ids}/state", "redeem_interstitial_page": "https://www.kobo.com", - "registration_page": "https://authorize.kobo.com/signup?returnUrl=http://kobo.com/", + "reflowable_page_cache_enabled": "True", + "registration_page": "https://authorize.kobo.com/signup?returnUrl=https://kobo.com/", + "related": "https://storeapi.kobo.com/v2/products/recommendations/related", "related_items": "https://storeapi.kobo.com/v1/products/{Id}/related", "remaining_book_series": "https://storeapi.kobo.com/v1/products/books/series/{SeriesId}", "rename_tag": "https://storeapi.kobo.com/v1/library/tags/{TagId}", @@ -293,14 +312,19 @@ class KoboProxy( "tags": "https://storeapi.kobo.com/v1/library/tags", "taste_profile": "https://storeapi.kobo.com/v1/products/tasteprofile", "terms_of_sale_page": "https://authorize.kobo.com/{region}/{language}/terms/termsofsale", + "topproducts": "https://storeapi.kobo.com/v2/products/list/topproducts", + "tracking": "https://storeapi.kobo.com/v2/tracking/searchperformed", "update_accessibility_to_preview": "https://storeapi.kobo.com/v1/library/{EntitlementIds}/preview", "use_one_store": "True", + "user_currencyconversion": "https://storeapi.kobo.com/v1/user/currency/convert", "user_loyalty_benefits": "https://storeapi.kobo.com/v1/user/loyalty/benefits", "user_platform": "https://storeapi.kobo.com/v1/user/platform", "user_profile": "https://storeapi.kobo.com/v1/user/profile", "user_ratings": "https://storeapi.kobo.com/v1/user/ratings", "user_recommendations": "https://storeapi.kobo.com/v1/user/recommendations", "user_reviews": "https://storeapi.kobo.com/v1/user/reviews", + "user_tasteprofile_complete": "https://storeapi.kobo.com/v2/user/tasteprofile/complete", + "user_tasteprofile_genre": "https://storeapi.kobo.com/v2/user/tasteprofile/genre", "user_wishlist": "https://storeapi.kobo.com/v1/user/wishlist", "userguide_host": "https://ereaderfiles.kobo.com", "wishlist_page": "https://www.kobo.com/{region}/{language}/account/wishlist"