Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Add Book Dock, matching against every source, book requests with release picking, and magic link sign-in for BookOrbit servers

Barnabas0479d8b18eef
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 2ee740d7..f1e60e73 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -874,6 +874,574 @@
}
}
},
+ "bookDockBadgePending": "Pending",
+ "bookDockBadgeExtracting": "Reading file",
+ "bookDockBadgeFetching": "Looking up",
+ "bookDockBadgeError": "Error",
+ "bookDockNeedsReview": "Needs review",
+ "bookDockNoMatch": "No match",
+ "bookDockApplied": "Applied",
+ "bookDockNotApplied": "Found details not used",
+ "bookDockNoDestination": "No destination set",
+ "bookDockNoAuthor": "No author yet",
+ "bookDockLookUpAgain": "Look up again",
+ "bookDockLookingUp": "Looking up details again",
+ "bookDockLookUpFailed": "Couldn't look up details",
+ "bookDockProposedChanges": "Proposed changes",
+ "bookDockNoChanges": "No details found online yet",
+ "bookDockStillReading": "The server is still reading this file",
+ "bookDockRoleBook": "Book",
+ "bookDockRoleCover": "Cover",
+ "bookDockRoleMetadata": "Metadata",
+ "bookDockRoleExtra": "Extra",
+ "bookDockFieldTitle": "Title",
+ "bookDockFieldSubtitle": "Subtitle",
+ "bookDockFieldAuthors": "Authors",
+ "bookDockFieldSeries": "Series",
+ "bookDockFieldPublisher": "Publisher",
+ "bookDockFieldYear": "Year",
+ "bookDockFieldLanguage": "Language",
+ "bookDockFieldIsbn": "ISBN",
+ "bookDockMatch": "{percent}% match",
+ "@bookDockMatch": {
+ "placeholders": {
+ "percent": {
+ "type": "int"
+ }
+ }
+ },
+ "bookDockFileCount": "{count, plural, =1{1 file} other{{count} files}}",
+ "@bookDockFileCount": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bookDockGoesTo": "Goes to {library}",
+ "@bookDockGoesTo": {
+ "placeholders": {
+ "library": {
+ "type": "String"
+ }
+ }
+ },
+ "bookDockChangedFields": "{count, plural, =1{1 field} other{{count} fields}}",
+ "@bookDockChangedFields": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bookDockFilesInEntry": "{count, plural, =1{File in this entry} other{{count} files in this entry}}",
+ "@bookDockFilesInEntry": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bookDockAdded": "Added {date}",
+ "@bookDockAdded": {
+ "placeholders": {
+ "date": {
+ "type": "String"
+ }
+ }
+ },
+ "bookDockAddToLibrary": "Add to library",
+ "bookDockUseFound": "Use found details",
+ "bookDockRemoveTitle": "Remove from Book Dock?",
+ "bookDockRemoveFailed": "Couldn't remove this file",
+ "bookDockPickLibrary": "Add to which library?",
+ "bookDockNoLibraries": "Your account can't add books to a library",
+ "bookDockFileFailed": "Couldn't add this file to the library",
+ "bookDockDuplicateBody": "A file with this name is already in that library. Remove it from Book Dock?",
+ "bookDockDetailsUpdated": "Details updated",
+ "bookDockUseFoundFailed": "No found details to use",
+ "bookDockRemoveBody": "This deletes {title} from the server.",
+ "@bookDockRemoveBody": {
+ "placeholders": {
+ "title": {
+ "type": "String"
+ }
+ }
+ },
+ "bookDockRemoved": "Removed {title} from Book Dock",
+ "@bookDockRemoved": {
+ "placeholders": {
+ "title": {
+ "type": "String"
+ }
+ }
+ },
+ "bookDockFiled": "Added {title} to {library}",
+ "@bookDockFiled": {
+ "placeholders": {
+ "title": {
+ "type": "String"
+ },
+ "library": {
+ "type": "String"
+ }
+ }
+ },
+ "bookDockFileFailedReason": "Couldn't add this file: {reason}",
+ "@bookDockFileFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "bookDockDuplicateTitle": "Already in {library}",
+ "@bookDockDuplicateTitle": {
+ "placeholders": {
+ "library": {
+ "type": "String"
+ }
+ }
+ },
+ "bomatchSearchAll": "Search all sources",
+ "bomatchSearching": "Searching...",
+ "bomatchSearchFailed": "Couldn't search for matches. Check your connection and try again.",
+ "bomatchNoResults": "No matches found",
+ "bomatchStrong": "Strong matches",
+ "bomatchPossible": "Possible matches",
+ "bomatchSourceTimeout": "timed out",
+ "bomatchSourceBusy": "busy",
+ "bomatchSourceFailed": "failed",
+ "bomatchLinked": "Linked",
+ "bomatchSameIsbn": "Same ISBN",
+ "bomatchFewDetails": "Few details",
+ "bomatchBack": "All results",
+ "bomatchFillEmpty": "Fill empty",
+ "bomatchTakeAll": "Take all",
+ "bomatchOnlyDifferences": "Only differences",
+ "bomatchNow": "Now",
+ "bomatchEmpty": "Empty",
+ "bomatchKindNew": "New",
+ "bomatchKindChange": "Change",
+ "bomatchKindSmall": "Small change",
+ "bomatchKindSame": "Same",
+ "bomatchKindNone": "Not in result",
+ "bomatchKeep": "Keep",
+ "bomatchUse": "Use",
+ "bomatchMerge": "Merge",
+ "bomatchReplace": "Replace",
+ "bomatchUseThis": "Use this",
+ "bomatchChosen": "Chosen",
+ "bomatchOther": "{count, plural, =1{1 other book} other{{count} other books}}",
+ "@bomatchOther": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bomatchChanged": "{count, plural, =1{1 change} other{{count} changes}}",
+ "@bomatchChanged": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bomatchNew": "{count, plural, =1{1 new} other{{count} new}}",
+ "@bomatchNew": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bomatchApply": "{count, plural, =0{Apply} =1{Apply 1 change} other{Apply {count} changes}}",
+ "@bomatchApply": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bomatchOtherSources": "{count, plural, =1{1 other source} other{{count} other sources}}",
+ "@bomatchOtherSources": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "bomatchFrom": "From {source}",
+ "@bomatchFrom": {
+ "placeholders": {
+ "source": {
+ "type": "String"
+ }
+ }
+ },
+ "breqTitle": "Book requests",
+ "breqTabRequest": "Request a book",
+ "breqTabMine": "My requests",
+ "breqTabAll": "All requests",
+ "breqNoAccess": "Your account can't request books on this server.",
+ "breqTitleHint": "Book title",
+ "breqAuthorHint": "Author",
+ "breqKindAudiobook": "Audiobook",
+ "breqKindEbook": "E-book",
+ "breqKindComic": "Comic",
+ "breqSearch": "Search",
+ "breqSearching": "Searching...",
+ "breqSearchFailed": "Couldn't search. Check your connection and try again.",
+ "breqSearchPrompt": "Search for a book the library does not have yet to request it.",
+ "breqNoResults": "No matching books found",
+ "breqInLibrary": "In your library",
+ "breqYouAsked": "You requested this",
+ "breqSomeoneAsked": "Already requested by someone else",
+ "breqView": "View",
+ "breqRequest": "Request",
+ "breqRequested": "Requested",
+ "breqAddMeToo": "Add me too",
+ "breqLibrary": "Library",
+ "breqLibraryApprover": "Let the approver decide",
+ "breqLibraryChoose": "Choose a library",
+ "breqNote": "Note for the approver",
+ "breqNoteHint": "Anything worth knowing about this request",
+ "breqAutoApproved": "Your requests are approved right away.",
+ "breqSubmitted": "Request submitted",
+ "breqJoined": "Added you to the existing request",
+ "breqFailed": "Couldn't send the request",
+ "breqStatusPending": "Pending",
+ "breqStatusApproved": "Approved",
+ "breqStatusRejected": "Rejected",
+ "breqStatusCancelled": "Cancelled",
+ "breqStatusSearching": "Searching",
+ "breqStatusGrabbed": "Release found",
+ "breqStatusDownloading": "Downloading",
+ "breqStatusImporting": "Importing",
+ "breqStatusNeedsReview": "Needs review",
+ "breqStatusAvailable": "Available",
+ "breqStatusFailed": "Failed",
+ "breqWaitingApproval": "Waiting for approval",
+ "breqWaitingRelease": "Waiting for a release to be picked",
+ "breqLookingForRelease": "Looking for a release",
+ "breqStartingDownload": "Starting the download",
+ "breqAddingToLibrary": "Adding to the library",
+ "breqWaitingCheck": "Waiting for a manual check",
+ "breqReady": "Ready in your library",
+ "breqSomethingWrong": "Something went wrong",
+ "breqShowHidden": "Show hidden",
+ "breqHidden": "Hidden",
+ "breqMineEmpty": "You haven't requested any books yet.",
+ "breqAllEmpty": "No requests yet.",
+ "breqLoadFailed": "Couldn't load requests.",
+ "breqLoadMore": "Load more",
+ "breqApprove": "Approve",
+ "breqReject": "Reject",
+ "breqCancel": "Cancel request",
+ "breqHide": "Hide from my list",
+ "breqUnhide": "Show in my list",
+ "breqLeave": "Leave request",
+ "breqDelete": "Delete request",
+ "breqOpenBook": "Open book",
+ "breqCancelConfirm": "Cancel this request? A download in progress stops too.",
+ "breqDeleteConfirm": "Delete this request? This can't be undone.",
+ "breqRejectTitle": "Reject request",
+ "breqRejectReason": "Reason (optional)",
+ "breqApproveTitle": "Approve request",
+ "breqApproveLibraryNeeded": "Choose the library this book goes into.",
+ "breqApprovedToast": "Request approved",
+ "breqRejectedToast": "Request rejected",
+ "breqCancelledToast": "Request cancelled",
+ "breqHiddenToast": "Hidden from your list",
+ "breqRestoredToast": "Back on your list",
+ "breqDeletedToast": "Request deleted",
+ "breqLeftToast": "You left this request",
+ "breqActionFailed": "Couldn't update the request",
+ "breqFactRequestedBy": "Requested by",
+ "breqFactRequestedOn": "Requested on",
+ "breqFactLibrary": "Library",
+ "breqFactDecidedBy": "Decided by",
+ "breqFactNote": "Note from the requester",
+ "breqFactDecisionNote": "Decision note",
+ "breqFactAlsoWanted": "Also wanted by",
+ "breqLibraryCta": "Request a book",
+ "breqSettingsSubtitle": "Ask for books the library does not have yet",
+ "navHoldBookRequests": "Book requests",
+ "breqLibraryDefault": "Default ({library})",
+ "@breqLibraryDefault": {
+ "placeholders": {
+ "library": {
+ "type": "String"
+ }
+ }
+ },
+ "breqFailedReason": "Couldn't send the request: {reason}",
+ "@breqFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqDownloadingPercent": "Downloading, {percent}%",
+ "@breqDownloadingPercent": {
+ "placeholders": {
+ "percent": {
+ "type": "int"
+ }
+ }
+ },
+ "breqAddedTo": "Added to {library}",
+ "@breqAddedTo": {
+ "placeholders": {
+ "library": {
+ "type": "String"
+ }
+ }
+ },
+ "breqRejectedWithNote": "Rejected: {note}",
+ "@breqRejectedWithNote": {
+ "placeholders": {
+ "note": {
+ "type": "String"
+ }
+ }
+ },
+ "breqFailedWithReason": "Failed: {reason}",
+ "@breqFailedWithReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqRequestedBy": "Requested by {name}",
+ "@breqRequestedBy": {
+ "placeholders": {
+ "name": {
+ "type": "String"
+ }
+ }
+ },
+ "breqActionFailedReason": "Couldn't update the request: {reason}",
+ "@breqActionFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqFooterCta": "Request \"{query}\"",
+ "@breqFooterCta": {
+ "placeholders": {
+ "query": {
+ "type": "String"
+ }
+ }
+ },
+ "breqCount": "{count, plural, =0{No requests} =1{1 request} other{{count} requests}}",
+ "@breqCount": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "breqFindRelease": "Find a release",
+ "breqTryAnotherRelease": "Try another release",
+ "breqApproveAndFind": "Approve and find a release",
+ "breqReviewButton": "Review download",
+ "breqStopDownload": "Stop download",
+ "breqStopDownloadConfirm": "Stop this download? The request goes back to approved so another release can be picked.",
+ "breqDiscardImport": "Discard download",
+ "breqDiscardConfirm": "Discard this download? The request is marked failed and can be tried again with another release.",
+ "breqFileAnyway": "Add to library",
+ "breqFiledToast": "Added to the library",
+ "breqDiscardedToast": "Download discarded",
+ "breqStoppedToast": "Download stopped",
+ "breqGrabTitle": "Download this release?",
+ "breqGrab": "Download",
+ "breqGrabbed": "Download started",
+ "breqGrabFailed": "Couldn't start that download",
+ "breqReleaseVipWarning": "This tracker only lets VIP accounts download it.",
+ "breqReleaseNoBookFile": "This release has no book file BookOrbit can add to a library.",
+ "breqReleaseCheckFailed": "Couldn't check what's in this release. Try again or pick another one.",
+ "breqCheckingRelease": "Checking the files...",
+ "breqSearchAgain": "Search again",
+ "breqSearchTerms": "Search terms",
+ "breqIsbnHint": "Leave empty to search by title and author",
+ "breqSearchingIndexers": "Searching your indexers. This can take up to a minute.",
+ "breqReleasesFailed": "Couldn't search for releases.",
+ "breqNoSourcesSetUp": "No search sources are set up in BookOrbit.",
+ "breqNoSourcesOn": "Every search source is switched off in BookOrbit.",
+ "breqNoSourceCarries": "None of your search sources carry this kind of book.",
+ "breqNoReleases": "No releases found. Try different search terms.",
+ "breqFromCache": "from a recent search",
+ "breqIndexerUnauthorized": "sign-in failed",
+ "breqIndexerThrottled": "busy",
+ "breqIndexerTimeout": "timed out",
+ "breqIndexerUnreachable": "unreachable",
+ "breqIndexerNoMedium": "does not carry this",
+ "breqIndexerError": "failed",
+ "breqSortBest": "Best match",
+ "breqSortSeeders": "Seeders",
+ "breqSortSize": "Size",
+ "breqSortNewest": "Newest",
+ "breqFreeleech": "Freeleech",
+ "breqVipOnly": "VIP only",
+ "breqAlreadyGrabbed": "Downloaded before",
+ "breqReasonIsbn": "ISBN",
+ "breqReasonTitle": "Title",
+ "breqReasonAuthor": "Author",
+ "breqReasonUnknownFormat": "Unknown format",
+ "breqReasonExpectedSize": "Size",
+ "breqReasonSuspiciousSize": "Unusual size",
+ "breqReasonFreeleech": "Freeleech",
+ "breqReasonSeveralBooks": "Several books",
+ "breqReviewTitle": "Download waiting for a check",
+ "breqReviewFailed": "Couldn't load the download details.",
+ "breqReviewDockGone": "The downloaded files are no longer in the Book Dock.",
+ "breqReviewNoLibrary": "This request has no library to add the book to.",
+ "breqGrabFailedReason": "Couldn't start that download: {reason}",
+ "@breqGrabFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReleaseCheckFailedReason": "Couldn't check what's in this release: {reason}",
+ "@breqReleaseCheckFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReleasesFailedReason": "Couldn't search for releases: {reason}",
+ "@breqReleasesFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReviewFailedReason": "Couldn't load the download details: {reason}",
+ "@breqReviewFailedReason": {
+ "placeholders": {
+ "reason": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReleaseCount": "{count, plural, =0{No releases} =1{1 release} other{{count} releases}}",
+ "@breqReleaseCount": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "breqFileCount": "{count, plural, =1{1 file} other{{count} files}}",
+ "@breqFileCount": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "breqReviewFiles": "{count, plural, =1{1 file} other{{count} files}}",
+ "@breqReviewFiles": {
+ "placeholders": {
+ "count": {
+ "type": "int"
+ }
+ }
+ },
+ "breqSeeders": "{seeders} seeders, {leechers} leechers",
+ "@breqSeeders": {
+ "placeholders": {
+ "seeders": {
+ "type": "int"
+ },
+ "leechers": {
+ "type": "int"
+ }
+ }
+ },
+ "breqScore": "Score {score}",
+ "@breqScore": {
+ "placeholders": {
+ "score": {
+ "type": "int"
+ }
+ }
+ },
+ "breqReasonPreferredFormat": "Preferred {format}",
+ "@breqReasonPreferredFormat": {
+ "placeholders": {
+ "format": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReasonFormat": "{format}",
+ "@breqReasonFormat": {
+ "placeholders": {
+ "format": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReasonSeeders": "{count} seeders",
+ "@breqReasonSeeders": {
+ "placeholders": {
+ "count": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReviewScore": "Match score {score}. Downloads scoring {threshold} or more are added on their own.",
+ "@breqReviewScore": {
+ "placeholders": {
+ "score": {
+ "type": "int"
+ },
+ "threshold": {
+ "type": "int"
+ }
+ }
+ },
+ "breqReviewRequested": "Requested: {value}",
+ "@breqReviewRequested": {
+ "placeholders": {
+ "value": {
+ "type": "String"
+ }
+ }
+ },
+ "breqReviewImported": "Downloaded: {value}",
+ "@breqReviewImported": {
+ "placeholders": {
+ "value": {
+ "type": "String"
+ }
+ }
+ },
+ "breqKindBoth": "Both",
+ "breqEbookLibrary": "E-book library",
+ "breqAudiobookLibrary": "Audiobook library",
+ "breqRequestBoth": "Request both",
+ "breqAddMeToBoth": "Add me to both",
+ "breqRequestEbook": "Request e-book",
+ "breqRequestAudiobook": "Request audiobook",
+ "breqAddMeEbook": "Add me to the e-book request",
+ "breqAddMeAudiobook": "Add me to the audiobook request",
+ "breqPairSubmitted": "Requested the e-book and the audiobook",
+ "breqPairOneJoined": "Requested both. One was already on its way, so you were added to that request",
+ "breqJoinedBoth": "Added you to both requests",
+ "breqJoinsOwned": "Requested. It will join the copy already in your library",
"speedBookmarkInControls": "Speed & bookmark in media controls",
"speedBookmarkOnSubtitle": "On - notification shows speed & bookmark; chapter skip stays in Android Auto",
"speedBookmarkOffSubtitle": "Off - notification shows chapter skip; speed & bookmark stay in Android Auto",
@@ -5211,6 +5779,7 @@
"keepScreenOnCarModeSubtitle": "The screen stays on while car mode is open",
"loginServerType": "Server type",
"authBookOrbitDefaultPassword": "This account still has its default password. Change it in BookOrbit, then sign in again.",
+ "authBookOrbitPasswordOff": "Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.",
"authServerIsBookOrbit": "This is a BookOrbit server. Choose BookOrbit above the server address.",
"authServerIsAudiobookshelf": "This is an Audiobookshelf server. Choose Audiobookshelf above the server address.",
"castNotAvailableBookOrbit": "Casting is not available with BookOrbit servers",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index f373f34f..4abbe0c0 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -3358,6 +3358,1596 @@ abstract class AppLocalizations {
/// **'{time} left'**
String nowPlayingTimeLeft(String time);
+ /// No description provided for @bookDockBadgePending.
+ ///
+ /// In en, this message translates to:
+ /// **'Pending'**
+ String get bookDockBadgePending;
+
+ /// No description provided for @bookDockBadgeExtracting.
+ ///
+ /// In en, this message translates to:
+ /// **'Reading file'**
+ String get bookDockBadgeExtracting;
+
+ /// No description provided for @bookDockBadgeFetching.
+ ///
+ /// In en, this message translates to:
+ /// **'Looking up'**
+ String get bookDockBadgeFetching;
+
+ /// No description provided for @bookDockBadgeError.
+ ///
+ /// In en, this message translates to:
+ /// **'Error'**
+ String get bookDockBadgeError;
+
+ /// No description provided for @bookDockNeedsReview.
+ ///
+ /// In en, this message translates to:
+ /// **'Needs review'**
+ String get bookDockNeedsReview;
+
+ /// No description provided for @bookDockNoMatch.
+ ///
+ /// In en, this message translates to:
+ /// **'No match'**
+ String get bookDockNoMatch;
+
+ /// No description provided for @bookDockApplied.
+ ///
+ /// In en, this message translates to:
+ /// **'Applied'**
+ String get bookDockApplied;
+
+ /// No description provided for @bookDockNotApplied.
+ ///
+ /// In en, this message translates to:
+ /// **'Found details not used'**
+ String get bookDockNotApplied;
+
+ /// No description provided for @bookDockNoDestination.
+ ///
+ /// In en, this message translates to:
+ /// **'No destination set'**
+ String get bookDockNoDestination;
+
+ /// No description provided for @bookDockNoAuthor.
+ ///
+ /// In en, this message translates to:
+ /// **'No author yet'**
+ String get bookDockNoAuthor;
+
+ /// No description provided for @bookDockLookUpAgain.
+ ///
+ /// In en, this message translates to:
+ /// **'Look up again'**
+ String get bookDockLookUpAgain;
+
+ /// No description provided for @bookDockLookingUp.
+ ///
+ /// In en, this message translates to:
+ /// **'Looking up details again'**
+ String get bookDockLookingUp;
+
+ /// No description provided for @bookDockLookUpFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t look up details'**
+ String get bookDockLookUpFailed;
+
+ /// No description provided for @bookDockProposedChanges.
+ ///
+ /// In en, this message translates to:
+ /// **'Proposed changes'**
+ String get bookDockProposedChanges;
+
+ /// No description provided for @bookDockNoChanges.
+ ///
+ /// In en, this message translates to:
+ /// **'No details found online yet'**
+ String get bookDockNoChanges;
+
+ /// No description provided for @bookDockStillReading.
+ ///
+ /// In en, this message translates to:
+ /// **'The server is still reading this file'**
+ String get bookDockStillReading;
+
+ /// No description provided for @bookDockRoleBook.
+ ///
+ /// In en, this message translates to:
+ /// **'Book'**
+ String get bookDockRoleBook;
+
+ /// No description provided for @bookDockRoleCover.
+ ///
+ /// In en, this message translates to:
+ /// **'Cover'**
+ String get bookDockRoleCover;
+
+ /// No description provided for @bookDockRoleMetadata.
+ ///
+ /// In en, this message translates to:
+ /// **'Metadata'**
+ String get bookDockRoleMetadata;
+
+ /// No description provided for @bookDockRoleExtra.
+ ///
+ /// In en, this message translates to:
+ /// **'Extra'**
+ String get bookDockRoleExtra;
+
+ /// No description provided for @bookDockFieldTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Title'**
+ String get bookDockFieldTitle;
+
+ /// No description provided for @bookDockFieldSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Subtitle'**
+ String get bookDockFieldSubtitle;
+
+ /// No description provided for @bookDockFieldAuthors.
+ ///
+ /// In en, this message translates to:
+ /// **'Authors'**
+ String get bookDockFieldAuthors;
+
+ /// No description provided for @bookDockFieldSeries.
+ ///
+ /// In en, this message translates to:
+ /// **'Series'**
+ String get bookDockFieldSeries;
+
+ /// No description provided for @bookDockFieldPublisher.
+ ///
+ /// In en, this message translates to:
+ /// **'Publisher'**
+ String get bookDockFieldPublisher;
+
+ /// No description provided for @bookDockFieldYear.
+ ///
+ /// In en, this message translates to:
+ /// **'Year'**
+ String get bookDockFieldYear;
+
+ /// No description provided for @bookDockFieldLanguage.
+ ///
+ /// In en, this message translates to:
+ /// **'Language'**
+ String get bookDockFieldLanguage;
+
+ /// No description provided for @bookDockFieldIsbn.
+ ///
+ /// In en, this message translates to:
+ /// **'ISBN'**
+ String get bookDockFieldIsbn;
+
+ /// No description provided for @bookDockMatch.
+ ///
+ /// In en, this message translates to:
+ /// **'{percent}% match'**
+ String bookDockMatch(int percent);
+
+ /// No description provided for @bookDockFileCount.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 file} other{{count} files}}'**
+ String bookDockFileCount(int count);
+
+ /// No description provided for @bookDockGoesTo.
+ ///
+ /// In en, this message translates to:
+ /// **'Goes to {library}'**
+ String bookDockGoesTo(String library);
+
+ /// No description provided for @bookDockChangedFields.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 field} other{{count} fields}}'**
+ String bookDockChangedFields(int count);
+
+ /// No description provided for @bookDockFilesInEntry.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{File in this entry} other{{count} files in this entry}}'**
+ String bookDockFilesInEntry(int count);
+
+ /// No description provided for @bookDockAdded.
+ ///
+ /// In en, this message translates to:
+ /// **'Added {date}'**
+ String bookDockAdded(String date);
+
+ /// No description provided for @bookDockAddToLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Add to library'**
+ String get bookDockAddToLibrary;
+
+ /// No description provided for @bookDockUseFound.
+ ///
+ /// In en, this message translates to:
+ /// **'Use found details'**
+ String get bookDockUseFound;
+
+ /// No description provided for @bookDockRemoveTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Remove from Book Dock?'**
+ String get bookDockRemoveTitle;
+
+ /// No description provided for @bookDockRemoveFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t remove this file'**
+ String get bookDockRemoveFailed;
+
+ /// No description provided for @bookDockPickLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Add to which library?'**
+ String get bookDockPickLibrary;
+
+ /// No description provided for @bookDockNoLibraries.
+ ///
+ /// In en, this message translates to:
+ /// **'Your account can\'t add books to a library'**
+ String get bookDockNoLibraries;
+
+ /// No description provided for @bookDockFileFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t add this file to the library'**
+ String get bookDockFileFailed;
+
+ /// No description provided for @bookDockDuplicateBody.
+ ///
+ /// In en, this message translates to:
+ /// **'A file with this name is already in that library. Remove it from Book Dock?'**
+ String get bookDockDuplicateBody;
+
+ /// No description provided for @bookDockDetailsUpdated.
+ ///
+ /// In en, this message translates to:
+ /// **'Details updated'**
+ String get bookDockDetailsUpdated;
+
+ /// No description provided for @bookDockUseFoundFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'No found details to use'**
+ String get bookDockUseFoundFailed;
+
+ /// No description provided for @bookDockRemoveBody.
+ ///
+ /// In en, this message translates to:
+ /// **'This deletes {title} from the server.'**
+ String bookDockRemoveBody(String title);
+
+ /// No description provided for @bookDockRemoved.
+ ///
+ /// In en, this message translates to:
+ /// **'Removed {title} from Book Dock'**
+ String bookDockRemoved(String title);
+
+ /// No description provided for @bookDockFiled.
+ ///
+ /// In en, this message translates to:
+ /// **'Added {title} to {library}'**
+ String bookDockFiled(String title, String library);
+
+ /// No description provided for @bookDockFileFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t add this file: {reason}'**
+ String bookDockFileFailedReason(String reason);
+
+ /// No description provided for @bookDockDuplicateTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Already in {library}'**
+ String bookDockDuplicateTitle(String library);
+
+ /// No description provided for @bomatchSearchAll.
+ ///
+ /// In en, this message translates to:
+ /// **'Search all sources'**
+ String get bomatchSearchAll;
+
+ /// No description provided for @bomatchSearching.
+ ///
+ /// In en, this message translates to:
+ /// **'Searching...'**
+ String get bomatchSearching;
+
+ /// No description provided for @bomatchSearchFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t search for matches. Check your connection and try again.'**
+ String get bomatchSearchFailed;
+
+ /// No description provided for @bomatchNoResults.
+ ///
+ /// In en, this message translates to:
+ /// **'No matches found'**
+ String get bomatchNoResults;
+
+ /// No description provided for @bomatchStrong.
+ ///
+ /// In en, this message translates to:
+ /// **'Strong matches'**
+ String get bomatchStrong;
+
+ /// No description provided for @bomatchPossible.
+ ///
+ /// In en, this message translates to:
+ /// **'Possible matches'**
+ String get bomatchPossible;
+
+ /// No description provided for @bomatchSourceTimeout.
+ ///
+ /// In en, this message translates to:
+ /// **'timed out'**
+ String get bomatchSourceTimeout;
+
+ /// No description provided for @bomatchSourceBusy.
+ ///
+ /// In en, this message translates to:
+ /// **'busy'**
+ String get bomatchSourceBusy;
+
+ /// No description provided for @bomatchSourceFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'failed'**
+ String get bomatchSourceFailed;
+
+ /// No description provided for @bomatchLinked.
+ ///
+ /// In en, this message translates to:
+ /// **'Linked'**
+ String get bomatchLinked;
+
+ /// No description provided for @bomatchSameIsbn.
+ ///
+ /// In en, this message translates to:
+ /// **'Same ISBN'**
+ String get bomatchSameIsbn;
+
+ /// No description provided for @bomatchFewDetails.
+ ///
+ /// In en, this message translates to:
+ /// **'Few details'**
+ String get bomatchFewDetails;
+
+ /// No description provided for @bomatchBack.
+ ///
+ /// In en, this message translates to:
+ /// **'All results'**
+ String get bomatchBack;
+
+ /// No description provided for @bomatchFillEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'Fill empty'**
+ String get bomatchFillEmpty;
+
+ /// No description provided for @bomatchTakeAll.
+ ///
+ /// In en, this message translates to:
+ /// **'Take all'**
+ String get bomatchTakeAll;
+
+ /// No description provided for @bomatchOnlyDifferences.
+ ///
+ /// In en, this message translates to:
+ /// **'Only differences'**
+ String get bomatchOnlyDifferences;
+
+ /// No description provided for @bomatchNow.
+ ///
+ /// In en, this message translates to:
+ /// **'Now'**
+ String get bomatchNow;
+
+ /// No description provided for @bomatchEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'Empty'**
+ String get bomatchEmpty;
+
+ /// No description provided for @bomatchKindNew.
+ ///
+ /// In en, this message translates to:
+ /// **'New'**
+ String get bomatchKindNew;
+
+ /// No description provided for @bomatchKindChange.
+ ///
+ /// In en, this message translates to:
+ /// **'Change'**
+ String get bomatchKindChange;
+
+ /// No description provided for @bomatchKindSmall.
+ ///
+ /// In en, this message translates to:
+ /// **'Small change'**
+ String get bomatchKindSmall;
+
+ /// No description provided for @bomatchKindSame.
+ ///
+ /// In en, this message translates to:
+ /// **'Same'**
+ String get bomatchKindSame;
+
+ /// No description provided for @bomatchKindNone.
+ ///
+ /// In en, this message translates to:
+ /// **'Not in result'**
+ String get bomatchKindNone;
+
+ /// No description provided for @bomatchKeep.
+ ///
+ /// In en, this message translates to:
+ /// **'Keep'**
+ String get bomatchKeep;
+
+ /// No description provided for @bomatchUse.
+ ///
+ /// In en, this message translates to:
+ /// **'Use'**
+ String get bomatchUse;
+
+ /// No description provided for @bomatchMerge.
+ ///
+ /// In en, this message translates to:
+ /// **'Merge'**
+ String get bomatchMerge;
+
+ /// No description provided for @bomatchReplace.
+ ///
+ /// In en, this message translates to:
+ /// **'Replace'**
+ String get bomatchReplace;
+
+ /// No description provided for @bomatchUseThis.
+ ///
+ /// In en, this message translates to:
+ /// **'Use this'**
+ String get bomatchUseThis;
+
+ /// No description provided for @bomatchChosen.
+ ///
+ /// In en, this message translates to:
+ /// **'Chosen'**
+ String get bomatchChosen;
+
+ /// No description provided for @bomatchOther.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 other book} other{{count} other books}}'**
+ String bomatchOther(int count);
+
+ /// No description provided for @bomatchChanged.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 change} other{{count} changes}}'**
+ String bomatchChanged(int count);
+
+ /// No description provided for @bomatchNew.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 new} other{{count} new}}'**
+ String bomatchNew(int count);
+
+ /// No description provided for @bomatchApply.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =0{Apply} =1{Apply 1 change} other{Apply {count} changes}}'**
+ String bomatchApply(int count);
+
+ /// No description provided for @bomatchOtherSources.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 other source} other{{count} other sources}}'**
+ String bomatchOtherSources(int count);
+
+ /// No description provided for @bomatchFrom.
+ ///
+ /// In en, this message translates to:
+ /// **'From {source}'**
+ String bomatchFrom(String source);
+
+ /// No description provided for @breqTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Book requests'**
+ String get breqTitle;
+
+ /// No description provided for @breqTabRequest.
+ ///
+ /// In en, this message translates to:
+ /// **'Request a book'**
+ String get breqTabRequest;
+
+ /// No description provided for @breqTabMine.
+ ///
+ /// In en, this message translates to:
+ /// **'My requests'**
+ String get breqTabMine;
+
+ /// No description provided for @breqTabAll.
+ ///
+ /// In en, this message translates to:
+ /// **'All requests'**
+ String get breqTabAll;
+
+ /// No description provided for @breqNoAccess.
+ ///
+ /// In en, this message translates to:
+ /// **'Your account can\'t request books on this server.'**
+ String get breqNoAccess;
+
+ /// No description provided for @breqTitleHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Book title'**
+ String get breqTitleHint;
+
+ /// No description provided for @breqAuthorHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Author'**
+ String get breqAuthorHint;
+
+ /// No description provided for @breqKindAudiobook.
+ ///
+ /// In en, this message translates to:
+ /// **'Audiobook'**
+ String get breqKindAudiobook;
+
+ /// No description provided for @breqKindEbook.
+ ///
+ /// In en, this message translates to:
+ /// **'E-book'**
+ String get breqKindEbook;
+
+ /// No description provided for @breqKindComic.
+ ///
+ /// In en, this message translates to:
+ /// **'Comic'**
+ String get breqKindComic;
+
+ /// No description provided for @breqSearch.
+ ///
+ /// In en, this message translates to:
+ /// **'Search'**
+ String get breqSearch;
+
+ /// No description provided for @breqSearching.
+ ///
+ /// In en, this message translates to:
+ /// **'Searching...'**
+ String get breqSearching;
+
+ /// No description provided for @breqSearchFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t search. Check your connection and try again.'**
+ String get breqSearchFailed;
+
+ /// No description provided for @breqSearchPrompt.
+ ///
+ /// In en, this message translates to:
+ /// **'Search for a book the library does not have yet to request it.'**
+ String get breqSearchPrompt;
+
+ /// No description provided for @breqNoResults.
+ ///
+ /// In en, this message translates to:
+ /// **'No matching books found'**
+ String get breqNoResults;
+
+ /// No description provided for @breqInLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'In your library'**
+ String get breqInLibrary;
+
+ /// No description provided for @breqYouAsked.
+ ///
+ /// In en, this message translates to:
+ /// **'You requested this'**
+ String get breqYouAsked;
+
+ /// No description provided for @breqSomeoneAsked.
+ ///
+ /// In en, this message translates to:
+ /// **'Already requested by someone else'**
+ String get breqSomeoneAsked;
+
+ /// No description provided for @breqView.
+ ///
+ /// In en, this message translates to:
+ /// **'View'**
+ String get breqView;
+
+ /// No description provided for @breqRequest.
+ ///
+ /// In en, this message translates to:
+ /// **'Request'**
+ String get breqRequest;
+
+ /// No description provided for @breqRequested.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested'**
+ String get breqRequested;
+
+ /// No description provided for @breqAddMeToo.
+ ///
+ /// In en, this message translates to:
+ /// **'Add me too'**
+ String get breqAddMeToo;
+
+ /// No description provided for @breqLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Library'**
+ String get breqLibrary;
+
+ /// No description provided for @breqLibraryApprover.
+ ///
+ /// In en, this message translates to:
+ /// **'Let the approver decide'**
+ String get breqLibraryApprover;
+
+ /// No description provided for @breqLibraryChoose.
+ ///
+ /// In en, this message translates to:
+ /// **'Choose a library'**
+ String get breqLibraryChoose;
+
+ /// No description provided for @breqNote.
+ ///
+ /// In en, this message translates to:
+ /// **'Note for the approver'**
+ String get breqNote;
+
+ /// No description provided for @breqNoteHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Anything worth knowing about this request'**
+ String get breqNoteHint;
+
+ /// No description provided for @breqAutoApproved.
+ ///
+ /// In en, this message translates to:
+ /// **'Your requests are approved right away.'**
+ String get breqAutoApproved;
+
+ /// No description provided for @breqSubmitted.
+ ///
+ /// In en, this message translates to:
+ /// **'Request submitted'**
+ String get breqSubmitted;
+
+ /// No description provided for @breqJoined.
+ ///
+ /// In en, this message translates to:
+ /// **'Added you to the existing request'**
+ String get breqJoined;
+
+ /// No description provided for @breqFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t send the request'**
+ String get breqFailed;
+
+ /// No description provided for @breqStatusPending.
+ ///
+ /// In en, this message translates to:
+ /// **'Pending'**
+ String get breqStatusPending;
+
+ /// No description provided for @breqStatusApproved.
+ ///
+ /// In en, this message translates to:
+ /// **'Approved'**
+ String get breqStatusApproved;
+
+ /// No description provided for @breqStatusRejected.
+ ///
+ /// In en, this message translates to:
+ /// **'Rejected'**
+ String get breqStatusRejected;
+
+ /// No description provided for @breqStatusCancelled.
+ ///
+ /// In en, this message translates to:
+ /// **'Cancelled'**
+ String get breqStatusCancelled;
+
+ /// No description provided for @breqStatusSearching.
+ ///
+ /// In en, this message translates to:
+ /// **'Searching'**
+ String get breqStatusSearching;
+
+ /// No description provided for @breqStatusGrabbed.
+ ///
+ /// In en, this message translates to:
+ /// **'Release found'**
+ String get breqStatusGrabbed;
+
+ /// No description provided for @breqStatusDownloading.
+ ///
+ /// In en, this message translates to:
+ /// **'Downloading'**
+ String get breqStatusDownloading;
+
+ /// No description provided for @breqStatusImporting.
+ ///
+ /// In en, this message translates to:
+ /// **'Importing'**
+ String get breqStatusImporting;
+
+ /// No description provided for @breqStatusNeedsReview.
+ ///
+ /// In en, this message translates to:
+ /// **'Needs review'**
+ String get breqStatusNeedsReview;
+
+ /// No description provided for @breqStatusAvailable.
+ ///
+ /// In en, this message translates to:
+ /// **'Available'**
+ String get breqStatusAvailable;
+
+ /// No description provided for @breqStatusFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Failed'**
+ String get breqStatusFailed;
+
+ /// No description provided for @breqWaitingApproval.
+ ///
+ /// In en, this message translates to:
+ /// **'Waiting for approval'**
+ String get breqWaitingApproval;
+
+ /// No description provided for @breqWaitingRelease.
+ ///
+ /// In en, this message translates to:
+ /// **'Waiting for a release to be picked'**
+ String get breqWaitingRelease;
+
+ /// No description provided for @breqLookingForRelease.
+ ///
+ /// In en, this message translates to:
+ /// **'Looking for a release'**
+ String get breqLookingForRelease;
+
+ /// No description provided for @breqStartingDownload.
+ ///
+ /// In en, this message translates to:
+ /// **'Starting the download'**
+ String get breqStartingDownload;
+
+ /// No description provided for @breqAddingToLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Adding to the library'**
+ String get breqAddingToLibrary;
+
+ /// No description provided for @breqWaitingCheck.
+ ///
+ /// In en, this message translates to:
+ /// **'Waiting for a manual check'**
+ String get breqWaitingCheck;
+
+ /// No description provided for @breqReady.
+ ///
+ /// In en, this message translates to:
+ /// **'Ready in your library'**
+ String get breqReady;
+
+ /// No description provided for @breqSomethingWrong.
+ ///
+ /// In en, this message translates to:
+ /// **'Something went wrong'**
+ String get breqSomethingWrong;
+
+ /// No description provided for @breqShowHidden.
+ ///
+ /// In en, this message translates to:
+ /// **'Show hidden'**
+ String get breqShowHidden;
+
+ /// No description provided for @breqHidden.
+ ///
+ /// In en, this message translates to:
+ /// **'Hidden'**
+ String get breqHidden;
+
+ /// No description provided for @breqMineEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'You haven\'t requested any books yet.'**
+ String get breqMineEmpty;
+
+ /// No description provided for @breqAllEmpty.
+ ///
+ /// In en, this message translates to:
+ /// **'No requests yet.'**
+ String get breqAllEmpty;
+
+ /// No description provided for @breqLoadFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t load requests.'**
+ String get breqLoadFailed;
+
+ /// No description provided for @breqLoadMore.
+ ///
+ /// In en, this message translates to:
+ /// **'Load more'**
+ String get breqLoadMore;
+
+ /// No description provided for @breqApprove.
+ ///
+ /// In en, this message translates to:
+ /// **'Approve'**
+ String get breqApprove;
+
+ /// No description provided for @breqReject.
+ ///
+ /// In en, this message translates to:
+ /// **'Reject'**
+ String get breqReject;
+
+ /// No description provided for @breqCancel.
+ ///
+ /// In en, this message translates to:
+ /// **'Cancel request'**
+ String get breqCancel;
+
+ /// No description provided for @breqHide.
+ ///
+ /// In en, this message translates to:
+ /// **'Hide from my list'**
+ String get breqHide;
+
+ /// No description provided for @breqUnhide.
+ ///
+ /// In en, this message translates to:
+ /// **'Show in my list'**
+ String get breqUnhide;
+
+ /// No description provided for @breqLeave.
+ ///
+ /// In en, this message translates to:
+ /// **'Leave request'**
+ String get breqLeave;
+
+ /// No description provided for @breqDelete.
+ ///
+ /// In en, this message translates to:
+ /// **'Delete request'**
+ String get breqDelete;
+
+ /// No description provided for @breqOpenBook.
+ ///
+ /// In en, this message translates to:
+ /// **'Open book'**
+ String get breqOpenBook;
+
+ /// No description provided for @breqCancelConfirm.
+ ///
+ /// In en, this message translates to:
+ /// **'Cancel this request? A download in progress stops too.'**
+ String get breqCancelConfirm;
+
+ /// No description provided for @breqDeleteConfirm.
+ ///
+ /// In en, this message translates to:
+ /// **'Delete this request? This can\'t be undone.'**
+ String get breqDeleteConfirm;
+
+ /// No description provided for @breqRejectTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Reject request'**
+ String get breqRejectTitle;
+
+ /// No description provided for @breqRejectReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Reason (optional)'**
+ String get breqRejectReason;
+
+ /// No description provided for @breqApproveTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Approve request'**
+ String get breqApproveTitle;
+
+ /// No description provided for @breqApproveLibraryNeeded.
+ ///
+ /// In en, this message translates to:
+ /// **'Choose the library this book goes into.'**
+ String get breqApproveLibraryNeeded;
+
+ /// No description provided for @breqApprovedToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Request approved'**
+ String get breqApprovedToast;
+
+ /// No description provided for @breqRejectedToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Request rejected'**
+ String get breqRejectedToast;
+
+ /// No description provided for @breqCancelledToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Request cancelled'**
+ String get breqCancelledToast;
+
+ /// No description provided for @breqHiddenToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Hidden from your list'**
+ String get breqHiddenToast;
+
+ /// No description provided for @breqRestoredToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Back on your list'**
+ String get breqRestoredToast;
+
+ /// No description provided for @breqDeletedToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Request deleted'**
+ String get breqDeletedToast;
+
+ /// No description provided for @breqLeftToast.
+ ///
+ /// In en, this message translates to:
+ /// **'You left this request'**
+ String get breqLeftToast;
+
+ /// No description provided for @breqActionFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t update the request'**
+ String get breqActionFailed;
+
+ /// No description provided for @breqFactRequestedBy.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested by'**
+ String get breqFactRequestedBy;
+
+ /// No description provided for @breqFactRequestedOn.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested on'**
+ String get breqFactRequestedOn;
+
+ /// No description provided for @breqFactLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Library'**
+ String get breqFactLibrary;
+
+ /// No description provided for @breqFactDecidedBy.
+ ///
+ /// In en, this message translates to:
+ /// **'Decided by'**
+ String get breqFactDecidedBy;
+
+ /// No description provided for @breqFactNote.
+ ///
+ /// In en, this message translates to:
+ /// **'Note from the requester'**
+ String get breqFactNote;
+
+ /// No description provided for @breqFactDecisionNote.
+ ///
+ /// In en, this message translates to:
+ /// **'Decision note'**
+ String get breqFactDecisionNote;
+
+ /// No description provided for @breqFactAlsoWanted.
+ ///
+ /// In en, this message translates to:
+ /// **'Also wanted by'**
+ String get breqFactAlsoWanted;
+
+ /// No description provided for @breqLibraryCta.
+ ///
+ /// In en, this message translates to:
+ /// **'Request a book'**
+ String get breqLibraryCta;
+
+ /// No description provided for @breqSettingsSubtitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Ask for books the library does not have yet'**
+ String get breqSettingsSubtitle;
+
+ /// No description provided for @navHoldBookRequests.
+ ///
+ /// In en, this message translates to:
+ /// **'Book requests'**
+ String get navHoldBookRequests;
+
+ /// No description provided for @breqLibraryDefault.
+ ///
+ /// In en, this message translates to:
+ /// **'Default ({library})'**
+ String breqLibraryDefault(String library);
+
+ /// No description provided for @breqFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t send the request: {reason}'**
+ String breqFailedReason(String reason);
+
+ /// No description provided for @breqDownloadingPercent.
+ ///
+ /// In en, this message translates to:
+ /// **'Downloading, {percent}%'**
+ String breqDownloadingPercent(int percent);
+
+ /// No description provided for @breqAddedTo.
+ ///
+ /// In en, this message translates to:
+ /// **'Added to {library}'**
+ String breqAddedTo(String library);
+
+ /// No description provided for @breqRejectedWithNote.
+ ///
+ /// In en, this message translates to:
+ /// **'Rejected: {note}'**
+ String breqRejectedWithNote(String note);
+
+ /// No description provided for @breqFailedWithReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Failed: {reason}'**
+ String breqFailedWithReason(String reason);
+
+ /// No description provided for @breqRequestedBy.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested by {name}'**
+ String breqRequestedBy(String name);
+
+ /// No description provided for @breqActionFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t update the request: {reason}'**
+ String breqActionFailedReason(String reason);
+
+ /// No description provided for @breqFooterCta.
+ ///
+ /// In en, this message translates to:
+ /// **'Request \"{query}\"'**
+ String breqFooterCta(String query);
+
+ /// No description provided for @breqCount.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =0{No requests} =1{1 request} other{{count} requests}}'**
+ String breqCount(int count);
+
+ /// No description provided for @breqFindRelease.
+ ///
+ /// In en, this message translates to:
+ /// **'Find a release'**
+ String get breqFindRelease;
+
+ /// No description provided for @breqTryAnotherRelease.
+ ///
+ /// In en, this message translates to:
+ /// **'Try another release'**
+ String get breqTryAnotherRelease;
+
+ /// No description provided for @breqApproveAndFind.
+ ///
+ /// In en, this message translates to:
+ /// **'Approve and find a release'**
+ String get breqApproveAndFind;
+
+ /// No description provided for @breqReviewButton.
+ ///
+ /// In en, this message translates to:
+ /// **'Review download'**
+ String get breqReviewButton;
+
+ /// No description provided for @breqStopDownload.
+ ///
+ /// In en, this message translates to:
+ /// **'Stop download'**
+ String get breqStopDownload;
+
+ /// No description provided for @breqStopDownloadConfirm.
+ ///
+ /// In en, this message translates to:
+ /// **'Stop this download? The request goes back to approved so another release can be picked.'**
+ String get breqStopDownloadConfirm;
+
+ /// No description provided for @breqDiscardImport.
+ ///
+ /// In en, this message translates to:
+ /// **'Discard download'**
+ String get breqDiscardImport;
+
+ /// No description provided for @breqDiscardConfirm.
+ ///
+ /// In en, this message translates to:
+ /// **'Discard this download? The request is marked failed and can be tried again with another release.'**
+ String get breqDiscardConfirm;
+
+ /// No description provided for @breqFileAnyway.
+ ///
+ /// In en, this message translates to:
+ /// **'Add to library'**
+ String get breqFileAnyway;
+
+ /// No description provided for @breqFiledToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Added to the library'**
+ String get breqFiledToast;
+
+ /// No description provided for @breqDiscardedToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Download discarded'**
+ String get breqDiscardedToast;
+
+ /// No description provided for @breqStoppedToast.
+ ///
+ /// In en, this message translates to:
+ /// **'Download stopped'**
+ String get breqStoppedToast;
+
+ /// No description provided for @breqGrabTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Download this release?'**
+ String get breqGrabTitle;
+
+ /// No description provided for @breqGrab.
+ ///
+ /// In en, this message translates to:
+ /// **'Download'**
+ String get breqGrab;
+
+ /// No description provided for @breqGrabbed.
+ ///
+ /// In en, this message translates to:
+ /// **'Download started'**
+ String get breqGrabbed;
+
+ /// No description provided for @breqGrabFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t start that download'**
+ String get breqGrabFailed;
+
+ /// No description provided for @breqReleaseVipWarning.
+ ///
+ /// In en, this message translates to:
+ /// **'This tracker only lets VIP accounts download it.'**
+ String get breqReleaseVipWarning;
+
+ /// No description provided for @breqReleaseNoBookFile.
+ ///
+ /// In en, this message translates to:
+ /// **'This release has no book file BookOrbit can add to a library.'**
+ String get breqReleaseNoBookFile;
+
+ /// No description provided for @breqReleaseCheckFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t check what\'s in this release. Try again or pick another one.'**
+ String get breqReleaseCheckFailed;
+
+ /// No description provided for @breqCheckingRelease.
+ ///
+ /// In en, this message translates to:
+ /// **'Checking the files...'**
+ String get breqCheckingRelease;
+
+ /// No description provided for @breqSearchAgain.
+ ///
+ /// In en, this message translates to:
+ /// **'Search again'**
+ String get breqSearchAgain;
+
+ /// No description provided for @breqSearchTerms.
+ ///
+ /// In en, this message translates to:
+ /// **'Search terms'**
+ String get breqSearchTerms;
+
+ /// No description provided for @breqIsbnHint.
+ ///
+ /// In en, this message translates to:
+ /// **'Leave empty to search by title and author'**
+ String get breqIsbnHint;
+
+ /// No description provided for @breqSearchingIndexers.
+ ///
+ /// In en, this message translates to:
+ /// **'Searching your indexers. This can take up to a minute.'**
+ String get breqSearchingIndexers;
+
+ /// No description provided for @breqReleasesFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t search for releases.'**
+ String get breqReleasesFailed;
+
+ /// No description provided for @breqNoSourcesSetUp.
+ ///
+ /// In en, this message translates to:
+ /// **'No search sources are set up in BookOrbit.'**
+ String get breqNoSourcesSetUp;
+
+ /// No description provided for @breqNoSourcesOn.
+ ///
+ /// In en, this message translates to:
+ /// **'Every search source is switched off in BookOrbit.'**
+ String get breqNoSourcesOn;
+
+ /// No description provided for @breqNoSourceCarries.
+ ///
+ /// In en, this message translates to:
+ /// **'None of your search sources carry this kind of book.'**
+ String get breqNoSourceCarries;
+
+ /// No description provided for @breqNoReleases.
+ ///
+ /// In en, this message translates to:
+ /// **'No releases found. Try different search terms.'**
+ String get breqNoReleases;
+
+ /// No description provided for @breqFromCache.
+ ///
+ /// In en, this message translates to:
+ /// **'from a recent search'**
+ String get breqFromCache;
+
+ /// No description provided for @breqIndexerUnauthorized.
+ ///
+ /// In en, this message translates to:
+ /// **'sign-in failed'**
+ String get breqIndexerUnauthorized;
+
+ /// No description provided for @breqIndexerThrottled.
+ ///
+ /// In en, this message translates to:
+ /// **'busy'**
+ String get breqIndexerThrottled;
+
+ /// No description provided for @breqIndexerTimeout.
+ ///
+ /// In en, this message translates to:
+ /// **'timed out'**
+ String get breqIndexerTimeout;
+
+ /// No description provided for @breqIndexerUnreachable.
+ ///
+ /// In en, this message translates to:
+ /// **'unreachable'**
+ String get breqIndexerUnreachable;
+
+ /// No description provided for @breqIndexerNoMedium.
+ ///
+ /// In en, this message translates to:
+ /// **'does not carry this'**
+ String get breqIndexerNoMedium;
+
+ /// No description provided for @breqIndexerError.
+ ///
+ /// In en, this message translates to:
+ /// **'failed'**
+ String get breqIndexerError;
+
+ /// No description provided for @breqSortBest.
+ ///
+ /// In en, this message translates to:
+ /// **'Best match'**
+ String get breqSortBest;
+
+ /// No description provided for @breqSortSeeders.
+ ///
+ /// In en, this message translates to:
+ /// **'Seeders'**
+ String get breqSortSeeders;
+
+ /// No description provided for @breqSortSize.
+ ///
+ /// In en, this message translates to:
+ /// **'Size'**
+ String get breqSortSize;
+
+ /// No description provided for @breqSortNewest.
+ ///
+ /// In en, this message translates to:
+ /// **'Newest'**
+ String get breqSortNewest;
+
+ /// No description provided for @breqFreeleech.
+ ///
+ /// In en, this message translates to:
+ /// **'Freeleech'**
+ String get breqFreeleech;
+
+ /// No description provided for @breqVipOnly.
+ ///
+ /// In en, this message translates to:
+ /// **'VIP only'**
+ String get breqVipOnly;
+
+ /// No description provided for @breqAlreadyGrabbed.
+ ///
+ /// In en, this message translates to:
+ /// **'Downloaded before'**
+ String get breqAlreadyGrabbed;
+
+ /// No description provided for @breqReasonIsbn.
+ ///
+ /// In en, this message translates to:
+ /// **'ISBN'**
+ String get breqReasonIsbn;
+
+ /// No description provided for @breqReasonTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Title'**
+ String get breqReasonTitle;
+
+ /// No description provided for @breqReasonAuthor.
+ ///
+ /// In en, this message translates to:
+ /// **'Author'**
+ String get breqReasonAuthor;
+
+ /// No description provided for @breqReasonUnknownFormat.
+ ///
+ /// In en, this message translates to:
+ /// **'Unknown format'**
+ String get breqReasonUnknownFormat;
+
+ /// No description provided for @breqReasonExpectedSize.
+ ///
+ /// In en, this message translates to:
+ /// **'Size'**
+ String get breqReasonExpectedSize;
+
+ /// No description provided for @breqReasonSuspiciousSize.
+ ///
+ /// In en, this message translates to:
+ /// **'Unusual size'**
+ String get breqReasonSuspiciousSize;
+
+ /// No description provided for @breqReasonFreeleech.
+ ///
+ /// In en, this message translates to:
+ /// **'Freeleech'**
+ String get breqReasonFreeleech;
+
+ /// No description provided for @breqReasonSeveralBooks.
+ ///
+ /// In en, this message translates to:
+ /// **'Several books'**
+ String get breqReasonSeveralBooks;
+
+ /// No description provided for @breqReviewTitle.
+ ///
+ /// In en, this message translates to:
+ /// **'Download waiting for a check'**
+ String get breqReviewTitle;
+
+ /// No description provided for @breqReviewFailed.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t load the download details.'**
+ String get breqReviewFailed;
+
+ /// No description provided for @breqReviewDockGone.
+ ///
+ /// In en, this message translates to:
+ /// **'The downloaded files are no longer in the Book Dock.'**
+ String get breqReviewDockGone;
+
+ /// No description provided for @breqReviewNoLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'This request has no library to add the book to.'**
+ String get breqReviewNoLibrary;
+
+ /// No description provided for @breqGrabFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t start that download: {reason}'**
+ String breqGrabFailedReason(String reason);
+
+ /// No description provided for @breqReleaseCheckFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t check what\'s in this release: {reason}'**
+ String breqReleaseCheckFailedReason(String reason);
+
+ /// No description provided for @breqReleasesFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t search for releases: {reason}'**
+ String breqReleasesFailedReason(String reason);
+
+ /// No description provided for @breqReviewFailedReason.
+ ///
+ /// In en, this message translates to:
+ /// **'Couldn\'t load the download details: {reason}'**
+ String breqReviewFailedReason(String reason);
+
+ /// No description provided for @breqReleaseCount.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =0{No releases} =1{1 release} other{{count} releases}}'**
+ String breqReleaseCount(int count);
+
+ /// No description provided for @breqFileCount.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 file} other{{count} files}}'**
+ String breqFileCount(int count);
+
+ /// No description provided for @breqReviewFiles.
+ ///
+ /// In en, this message translates to:
+ /// **'{count, plural, =1{1 file} other{{count} files}}'**
+ String breqReviewFiles(int count);
+
+ /// No description provided for @breqSeeders.
+ ///
+ /// In en, this message translates to:
+ /// **'{seeders} seeders, {leechers} leechers'**
+ String breqSeeders(int seeders, int leechers);
+
+ /// No description provided for @breqScore.
+ ///
+ /// In en, this message translates to:
+ /// **'Score {score}'**
+ String breqScore(int score);
+
+ /// No description provided for @breqReasonPreferredFormat.
+ ///
+ /// In en, this message translates to:
+ /// **'Preferred {format}'**
+ String breqReasonPreferredFormat(String format);
+
+ /// No description provided for @breqReasonFormat.
+ ///
+ /// In en, this message translates to:
+ /// **'{format}'**
+ String breqReasonFormat(String format);
+
+ /// No description provided for @breqReasonSeeders.
+ ///
+ /// In en, this message translates to:
+ /// **'{count} seeders'**
+ String breqReasonSeeders(String count);
+
+ /// No description provided for @breqReviewScore.
+ ///
+ /// In en, this message translates to:
+ /// **'Match score {score}. Downloads scoring {threshold} or more are added on their own.'**
+ String breqReviewScore(int score, int threshold);
+
+ /// No description provided for @breqReviewRequested.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested: {value}'**
+ String breqReviewRequested(String value);
+
+ /// No description provided for @breqReviewImported.
+ ///
+ /// In en, this message translates to:
+ /// **'Downloaded: {value}'**
+ String breqReviewImported(String value);
+
+ /// No description provided for @breqKindBoth.
+ ///
+ /// In en, this message translates to:
+ /// **'Both'**
+ String get breqKindBoth;
+
+ /// No description provided for @breqEbookLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'E-book library'**
+ String get breqEbookLibrary;
+
+ /// No description provided for @breqAudiobookLibrary.
+ ///
+ /// In en, this message translates to:
+ /// **'Audiobook library'**
+ String get breqAudiobookLibrary;
+
+ /// No description provided for @breqRequestBoth.
+ ///
+ /// In en, this message translates to:
+ /// **'Request both'**
+ String get breqRequestBoth;
+
+ /// No description provided for @breqAddMeToBoth.
+ ///
+ /// In en, this message translates to:
+ /// **'Add me to both'**
+ String get breqAddMeToBoth;
+
+ /// No description provided for @breqRequestEbook.
+ ///
+ /// In en, this message translates to:
+ /// **'Request e-book'**
+ String get breqRequestEbook;
+
+ /// No description provided for @breqRequestAudiobook.
+ ///
+ /// In en, this message translates to:
+ /// **'Request audiobook'**
+ String get breqRequestAudiobook;
+
+ /// No description provided for @breqAddMeEbook.
+ ///
+ /// In en, this message translates to:
+ /// **'Add me to the e-book request'**
+ String get breqAddMeEbook;
+
+ /// No description provided for @breqAddMeAudiobook.
+ ///
+ /// In en, this message translates to:
+ /// **'Add me to the audiobook request'**
+ String get breqAddMeAudiobook;
+
+ /// No description provided for @breqPairSubmitted.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested the e-book and the audiobook'**
+ String get breqPairSubmitted;
+
+ /// No description provided for @breqPairOneJoined.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested both. One was already on its way, so you were added to that request'**
+ String get breqPairOneJoined;
+
+ /// No description provided for @breqJoinedBoth.
+ ///
+ /// In en, this message translates to:
+ /// **'Added you to both requests'**
+ String get breqJoinedBoth;
+
+ /// No description provided for @breqJoinsOwned.
+ ///
+ /// In en, this message translates to:
+ /// **'Requested. It will join the copy already in your library'**
+ String get breqJoinsOwned;
+
/// No description provided for @speedBookmarkInControls.
///
/// In en, this message translates to:
@@ -16143,6 +17733,12 @@ abstract class AppLocalizations {
/// **'This account still has its default password. Change it in BookOrbit, then sign in again.'**
String get authBookOrbitDefaultPassword;
+ /// No description provided for @authBookOrbitPasswordOff.
+ ///
+ /// In en, this message translates to:
+ /// **'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.'**
+ String get authBookOrbitPasswordOff;
+
/// No description provided for @authServerIsBookOrbit.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index 83f3fdd5..b974c609 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -1826,6 +1826,981 @@ class AppLocalizationsDe extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls =>
'Geschwindigkeit & Lesezeichen in Mediensteuerung';
@@ -9488,6 +10463,10 @@ class AppLocalizationsDe extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dart
index 234f763a..c3a5e1a0 100644
--- a/lib/l10n/app_localizations_el.dart
+++ b/lib/l10n/app_localizations_el.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsEl extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsEl extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index 2c6c5019..e66fc1d3 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsEn extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsEn extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index f29ec0fe..d8ec6774 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -1808,6 +1808,981 @@ class AppLocalizationsEs extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9369,6 +10344,10 @@ class AppLocalizationsEs extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 91ea384a..edce1cf0 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -1831,6 +1831,981 @@ class AppLocalizationsFr extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls =>
'Vitesse et signet dans les contrôles des médias';
@@ -9420,6 +10395,10 @@ class AppLocalizationsFr extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index 2ace4b54..ef875b66 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsIt extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsIt extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index f95a1c21..ab39da7c 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsJa extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsJa extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dart
index 77585824..70176d7f 100644
--- a/lib/l10n/app_localizations_no.dart
+++ b/lib/l10n/app_localizations_no.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsNo extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsNo extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 086d57a1..5a573771 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsPt extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsPt extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dart
index 9c389c22..07ebe5c8 100644
--- a/lib/l10n/app_localizations_ro.dart
+++ b/lib/l10n/app_localizations_ro.dart
@@ -1806,6 +1806,981 @@ class AppLocalizationsRo extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9367,6 +10342,10 @@ class AppLocalizationsRo extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index 1cf3e4cf..4170eefc 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -1809,6 +1809,981 @@ class AppLocalizationsRu extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls =>
'Скорость и закладки в панели управления медиа';
@@ -9372,6 +10347,10 @@ class AppLocalizationsRu extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index eeccfdd8..c84f8437 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -1779,6 +1779,981 @@ class AppLocalizationsZh extends AppLocalizations {
return '$time left';
}
+ @override
+ String get bookDockBadgePending => 'Pending';
+
+ @override
+ String get bookDockBadgeExtracting => 'Reading file';
+
+ @override
+ String get bookDockBadgeFetching => 'Looking up';
+
+ @override
+ String get bookDockBadgeError => 'Error';
+
+ @override
+ String get bookDockNeedsReview => 'Needs review';
+
+ @override
+ String get bookDockNoMatch => 'No match';
+
+ @override
+ String get bookDockApplied => 'Applied';
+
+ @override
+ String get bookDockNotApplied => 'Found details not used';
+
+ @override
+ String get bookDockNoDestination => 'No destination set';
+
+ @override
+ String get bookDockNoAuthor => 'No author yet';
+
+ @override
+ String get bookDockLookUpAgain => 'Look up again';
+
+ @override
+ String get bookDockLookingUp => 'Looking up details again';
+
+ @override
+ String get bookDockLookUpFailed => 'Couldn\'t look up details';
+
+ @override
+ String get bookDockProposedChanges => 'Proposed changes';
+
+ @override
+ String get bookDockNoChanges => 'No details found online yet';
+
+ @override
+ String get bookDockStillReading => 'The server is still reading this file';
+
+ @override
+ String get bookDockRoleBook => 'Book';
+
+ @override
+ String get bookDockRoleCover => 'Cover';
+
+ @override
+ String get bookDockRoleMetadata => 'Metadata';
+
+ @override
+ String get bookDockRoleExtra => 'Extra';
+
+ @override
+ String get bookDockFieldTitle => 'Title';
+
+ @override
+ String get bookDockFieldSubtitle => 'Subtitle';
+
+ @override
+ String get bookDockFieldAuthors => 'Authors';
+
+ @override
+ String get bookDockFieldSeries => 'Series';
+
+ @override
+ String get bookDockFieldPublisher => 'Publisher';
+
+ @override
+ String get bookDockFieldYear => 'Year';
+
+ @override
+ String get bookDockFieldLanguage => 'Language';
+
+ @override
+ String get bookDockFieldIsbn => 'ISBN';
+
+ @override
+ String bookDockMatch(int percent) {
+ return '$percent% match';
+ }
+
+ @override
+ String bookDockFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockGoesTo(String library) {
+ return 'Goes to $library';
+ }
+
+ @override
+ String bookDockChangedFields(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count fields',
+ one: '1 field',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockFilesInEntry(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files in this entry',
+ one: 'File in this entry',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bookDockAdded(String date) {
+ return 'Added $date';
+ }
+
+ @override
+ String get bookDockAddToLibrary => 'Add to library';
+
+ @override
+ String get bookDockUseFound => 'Use found details';
+
+ @override
+ String get bookDockRemoveTitle => 'Remove from Book Dock?';
+
+ @override
+ String get bookDockRemoveFailed => 'Couldn\'t remove this file';
+
+ @override
+ String get bookDockPickLibrary => 'Add to which library?';
+
+ @override
+ String get bookDockNoLibraries =>
+ 'Your account can\'t add books to a library';
+
+ @override
+ String get bookDockFileFailed => 'Couldn\'t add this file to the library';
+
+ @override
+ String get bookDockDuplicateBody =>
+ 'A file with this name is already in that library. Remove it from Book Dock?';
+
+ @override
+ String get bookDockDetailsUpdated => 'Details updated';
+
+ @override
+ String get bookDockUseFoundFailed => 'No found details to use';
+
+ @override
+ String bookDockRemoveBody(String title) {
+ return 'This deletes $title from the server.';
+ }
+
+ @override
+ String bookDockRemoved(String title) {
+ return 'Removed $title from Book Dock';
+ }
+
+ @override
+ String bookDockFiled(String title, String library) {
+ return 'Added $title to $library';
+ }
+
+ @override
+ String bookDockFileFailedReason(String reason) {
+ return 'Couldn\'t add this file: $reason';
+ }
+
+ @override
+ String bookDockDuplicateTitle(String library) {
+ return 'Already in $library';
+ }
+
+ @override
+ String get bomatchSearchAll => 'Search all sources';
+
+ @override
+ String get bomatchSearching => 'Searching...';
+
+ @override
+ String get bomatchSearchFailed =>
+ 'Couldn\'t search for matches. Check your connection and try again.';
+
+ @override
+ String get bomatchNoResults => 'No matches found';
+
+ @override
+ String get bomatchStrong => 'Strong matches';
+
+ @override
+ String get bomatchPossible => 'Possible matches';
+
+ @override
+ String get bomatchSourceTimeout => 'timed out';
+
+ @override
+ String get bomatchSourceBusy => 'busy';
+
+ @override
+ String get bomatchSourceFailed => 'failed';
+
+ @override
+ String get bomatchLinked => 'Linked';
+
+ @override
+ String get bomatchSameIsbn => 'Same ISBN';
+
+ @override
+ String get bomatchFewDetails => 'Few details';
+
+ @override
+ String get bomatchBack => 'All results';
+
+ @override
+ String get bomatchFillEmpty => 'Fill empty';
+
+ @override
+ String get bomatchTakeAll => 'Take all';
+
+ @override
+ String get bomatchOnlyDifferences => 'Only differences';
+
+ @override
+ String get bomatchNow => 'Now';
+
+ @override
+ String get bomatchEmpty => 'Empty';
+
+ @override
+ String get bomatchKindNew => 'New';
+
+ @override
+ String get bomatchKindChange => 'Change';
+
+ @override
+ String get bomatchKindSmall => 'Small change';
+
+ @override
+ String get bomatchKindSame => 'Same';
+
+ @override
+ String get bomatchKindNone => 'Not in result';
+
+ @override
+ String get bomatchKeep => 'Keep';
+
+ @override
+ String get bomatchUse => 'Use';
+
+ @override
+ String get bomatchMerge => 'Merge';
+
+ @override
+ String get bomatchReplace => 'Replace';
+
+ @override
+ String get bomatchUseThis => 'Use this';
+
+ @override
+ String get bomatchChosen => 'Chosen';
+
+ @override
+ String bomatchOther(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other books',
+ one: '1 other book',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchChanged(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count changes',
+ one: '1 change',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchNew(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count new',
+ one: '1 new',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchApply(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: 'Apply $count changes',
+ one: 'Apply 1 change',
+ zero: 'Apply',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchOtherSources(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count other sources',
+ one: '1 other source',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String bomatchFrom(String source) {
+ return 'From $source';
+ }
+
+ @override
+ String get breqTitle => 'Book requests';
+
+ @override
+ String get breqTabRequest => 'Request a book';
+
+ @override
+ String get breqTabMine => 'My requests';
+
+ @override
+ String get breqTabAll => 'All requests';
+
+ @override
+ String get breqNoAccess =>
+ 'Your account can\'t request books on this server.';
+
+ @override
+ String get breqTitleHint => 'Book title';
+
+ @override
+ String get breqAuthorHint => 'Author';
+
+ @override
+ String get breqKindAudiobook => 'Audiobook';
+
+ @override
+ String get breqKindEbook => 'E-book';
+
+ @override
+ String get breqKindComic => 'Comic';
+
+ @override
+ String get breqSearch => 'Search';
+
+ @override
+ String get breqSearching => 'Searching...';
+
+ @override
+ String get breqSearchFailed =>
+ 'Couldn\'t search. Check your connection and try again.';
+
+ @override
+ String get breqSearchPrompt =>
+ 'Search for a book the library does not have yet to request it.';
+
+ @override
+ String get breqNoResults => 'No matching books found';
+
+ @override
+ String get breqInLibrary => 'In your library';
+
+ @override
+ String get breqYouAsked => 'You requested this';
+
+ @override
+ String get breqSomeoneAsked => 'Already requested by someone else';
+
+ @override
+ String get breqView => 'View';
+
+ @override
+ String get breqRequest => 'Request';
+
+ @override
+ String get breqRequested => 'Requested';
+
+ @override
+ String get breqAddMeToo => 'Add me too';
+
+ @override
+ String get breqLibrary => 'Library';
+
+ @override
+ String get breqLibraryApprover => 'Let the approver decide';
+
+ @override
+ String get breqLibraryChoose => 'Choose a library';
+
+ @override
+ String get breqNote => 'Note for the approver';
+
+ @override
+ String get breqNoteHint => 'Anything worth knowing about this request';
+
+ @override
+ String get breqAutoApproved => 'Your requests are approved right away.';
+
+ @override
+ String get breqSubmitted => 'Request submitted';
+
+ @override
+ String get breqJoined => 'Added you to the existing request';
+
+ @override
+ String get breqFailed => 'Couldn\'t send the request';
+
+ @override
+ String get breqStatusPending => 'Pending';
+
+ @override
+ String get breqStatusApproved => 'Approved';
+
+ @override
+ String get breqStatusRejected => 'Rejected';
+
+ @override
+ String get breqStatusCancelled => 'Cancelled';
+
+ @override
+ String get breqStatusSearching => 'Searching';
+
+ @override
+ String get breqStatusGrabbed => 'Release found';
+
+ @override
+ String get breqStatusDownloading => 'Downloading';
+
+ @override
+ String get breqStatusImporting => 'Importing';
+
+ @override
+ String get breqStatusNeedsReview => 'Needs review';
+
+ @override
+ String get breqStatusAvailable => 'Available';
+
+ @override
+ String get breqStatusFailed => 'Failed';
+
+ @override
+ String get breqWaitingApproval => 'Waiting for approval';
+
+ @override
+ String get breqWaitingRelease => 'Waiting for a release to be picked';
+
+ @override
+ String get breqLookingForRelease => 'Looking for a release';
+
+ @override
+ String get breqStartingDownload => 'Starting the download';
+
+ @override
+ String get breqAddingToLibrary => 'Adding to the library';
+
+ @override
+ String get breqWaitingCheck => 'Waiting for a manual check';
+
+ @override
+ String get breqReady => 'Ready in your library';
+
+ @override
+ String get breqSomethingWrong => 'Something went wrong';
+
+ @override
+ String get breqShowHidden => 'Show hidden';
+
+ @override
+ String get breqHidden => 'Hidden';
+
+ @override
+ String get breqMineEmpty => 'You haven\'t requested any books yet.';
+
+ @override
+ String get breqAllEmpty => 'No requests yet.';
+
+ @override
+ String get breqLoadFailed => 'Couldn\'t load requests.';
+
+ @override
+ String get breqLoadMore => 'Load more';
+
+ @override
+ String get breqApprove => 'Approve';
+
+ @override
+ String get breqReject => 'Reject';
+
+ @override
+ String get breqCancel => 'Cancel request';
+
+ @override
+ String get breqHide => 'Hide from my list';
+
+ @override
+ String get breqUnhide => 'Show in my list';
+
+ @override
+ String get breqLeave => 'Leave request';
+
+ @override
+ String get breqDelete => 'Delete request';
+
+ @override
+ String get breqOpenBook => 'Open book';
+
+ @override
+ String get breqCancelConfirm =>
+ 'Cancel this request? A download in progress stops too.';
+
+ @override
+ String get breqDeleteConfirm => 'Delete this request? This can\'t be undone.';
+
+ @override
+ String get breqRejectTitle => 'Reject request';
+
+ @override
+ String get breqRejectReason => 'Reason (optional)';
+
+ @override
+ String get breqApproveTitle => 'Approve request';
+
+ @override
+ String get breqApproveLibraryNeeded =>
+ 'Choose the library this book goes into.';
+
+ @override
+ String get breqApprovedToast => 'Request approved';
+
+ @override
+ String get breqRejectedToast => 'Request rejected';
+
+ @override
+ String get breqCancelledToast => 'Request cancelled';
+
+ @override
+ String get breqHiddenToast => 'Hidden from your list';
+
+ @override
+ String get breqRestoredToast => 'Back on your list';
+
+ @override
+ String get breqDeletedToast => 'Request deleted';
+
+ @override
+ String get breqLeftToast => 'You left this request';
+
+ @override
+ String get breqActionFailed => 'Couldn\'t update the request';
+
+ @override
+ String get breqFactRequestedBy => 'Requested by';
+
+ @override
+ String get breqFactRequestedOn => 'Requested on';
+
+ @override
+ String get breqFactLibrary => 'Library';
+
+ @override
+ String get breqFactDecidedBy => 'Decided by';
+
+ @override
+ String get breqFactNote => 'Note from the requester';
+
+ @override
+ String get breqFactDecisionNote => 'Decision note';
+
+ @override
+ String get breqFactAlsoWanted => 'Also wanted by';
+
+ @override
+ String get breqLibraryCta => 'Request a book';
+
+ @override
+ String get breqSettingsSubtitle =>
+ 'Ask for books the library does not have yet';
+
+ @override
+ String get navHoldBookRequests => 'Book requests';
+
+ @override
+ String breqLibraryDefault(String library) {
+ return 'Default ($library)';
+ }
+
+ @override
+ String breqFailedReason(String reason) {
+ return 'Couldn\'t send the request: $reason';
+ }
+
+ @override
+ String breqDownloadingPercent(int percent) {
+ return 'Downloading, $percent%';
+ }
+
+ @override
+ String breqAddedTo(String library) {
+ return 'Added to $library';
+ }
+
+ @override
+ String breqRejectedWithNote(String note) {
+ return 'Rejected: $note';
+ }
+
+ @override
+ String breqFailedWithReason(String reason) {
+ return 'Failed: $reason';
+ }
+
+ @override
+ String breqRequestedBy(String name) {
+ return 'Requested by $name';
+ }
+
+ @override
+ String breqActionFailedReason(String reason) {
+ return 'Couldn\'t update the request: $reason';
+ }
+
+ @override
+ String breqFooterCta(String query) {
+ return 'Request \"$query\"';
+ }
+
+ @override
+ String breqCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count requests',
+ one: '1 request',
+ zero: 'No requests',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String get breqFindRelease => 'Find a release';
+
+ @override
+ String get breqTryAnotherRelease => 'Try another release';
+
+ @override
+ String get breqApproveAndFind => 'Approve and find a release';
+
+ @override
+ String get breqReviewButton => 'Review download';
+
+ @override
+ String get breqStopDownload => 'Stop download';
+
+ @override
+ String get breqStopDownloadConfirm =>
+ 'Stop this download? The request goes back to approved so another release can be picked.';
+
+ @override
+ String get breqDiscardImport => 'Discard download';
+
+ @override
+ String get breqDiscardConfirm =>
+ 'Discard this download? The request is marked failed and can be tried again with another release.';
+
+ @override
+ String get breqFileAnyway => 'Add to library';
+
+ @override
+ String get breqFiledToast => 'Added to the library';
+
+ @override
+ String get breqDiscardedToast => 'Download discarded';
+
+ @override
+ String get breqStoppedToast => 'Download stopped';
+
+ @override
+ String get breqGrabTitle => 'Download this release?';
+
+ @override
+ String get breqGrab => 'Download';
+
+ @override
+ String get breqGrabbed => 'Download started';
+
+ @override
+ String get breqGrabFailed => 'Couldn\'t start that download';
+
+ @override
+ String get breqReleaseVipWarning =>
+ 'This tracker only lets VIP accounts download it.';
+
+ @override
+ String get breqReleaseNoBookFile =>
+ 'This release has no book file BookOrbit can add to a library.';
+
+ @override
+ String get breqReleaseCheckFailed =>
+ 'Couldn\'t check what\'s in this release. Try again or pick another one.';
+
+ @override
+ String get breqCheckingRelease => 'Checking the files...';
+
+ @override
+ String get breqSearchAgain => 'Search again';
+
+ @override
+ String get breqSearchTerms => 'Search terms';
+
+ @override
+ String get breqIsbnHint => 'Leave empty to search by title and author';
+
+ @override
+ String get breqSearchingIndexers =>
+ 'Searching your indexers. This can take up to a minute.';
+
+ @override
+ String get breqReleasesFailed => 'Couldn\'t search for releases.';
+
+ @override
+ String get breqNoSourcesSetUp => 'No search sources are set up in BookOrbit.';
+
+ @override
+ String get breqNoSourcesOn =>
+ 'Every search source is switched off in BookOrbit.';
+
+ @override
+ String get breqNoSourceCarries =>
+ 'None of your search sources carry this kind of book.';
+
+ @override
+ String get breqNoReleases => 'No releases found. Try different search terms.';
+
+ @override
+ String get breqFromCache => 'from a recent search';
+
+ @override
+ String get breqIndexerUnauthorized => 'sign-in failed';
+
+ @override
+ String get breqIndexerThrottled => 'busy';
+
+ @override
+ String get breqIndexerTimeout => 'timed out';
+
+ @override
+ String get breqIndexerUnreachable => 'unreachable';
+
+ @override
+ String get breqIndexerNoMedium => 'does not carry this';
+
+ @override
+ String get breqIndexerError => 'failed';
+
+ @override
+ String get breqSortBest => 'Best match';
+
+ @override
+ String get breqSortSeeders => 'Seeders';
+
+ @override
+ String get breqSortSize => 'Size';
+
+ @override
+ String get breqSortNewest => 'Newest';
+
+ @override
+ String get breqFreeleech => 'Freeleech';
+
+ @override
+ String get breqVipOnly => 'VIP only';
+
+ @override
+ String get breqAlreadyGrabbed => 'Downloaded before';
+
+ @override
+ String get breqReasonIsbn => 'ISBN';
+
+ @override
+ String get breqReasonTitle => 'Title';
+
+ @override
+ String get breqReasonAuthor => 'Author';
+
+ @override
+ String get breqReasonUnknownFormat => 'Unknown format';
+
+ @override
+ String get breqReasonExpectedSize => 'Size';
+
+ @override
+ String get breqReasonSuspiciousSize => 'Unusual size';
+
+ @override
+ String get breqReasonFreeleech => 'Freeleech';
+
+ @override
+ String get breqReasonSeveralBooks => 'Several books';
+
+ @override
+ String get breqReviewTitle => 'Download waiting for a check';
+
+ @override
+ String get breqReviewFailed => 'Couldn\'t load the download details.';
+
+ @override
+ String get breqReviewDockGone =>
+ 'The downloaded files are no longer in the Book Dock.';
+
+ @override
+ String get breqReviewNoLibrary =>
+ 'This request has no library to add the book to.';
+
+ @override
+ String breqGrabFailedReason(String reason) {
+ return 'Couldn\'t start that download: $reason';
+ }
+
+ @override
+ String breqReleaseCheckFailedReason(String reason) {
+ return 'Couldn\'t check what\'s in this release: $reason';
+ }
+
+ @override
+ String breqReleasesFailedReason(String reason) {
+ return 'Couldn\'t search for releases: $reason';
+ }
+
+ @override
+ String breqReviewFailedReason(String reason) {
+ return 'Couldn\'t load the download details: $reason';
+ }
+
+ @override
+ String breqReleaseCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count releases',
+ one: '1 release',
+ zero: 'No releases',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqFileCount(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqReviewFiles(int count) {
+ String _temp0 = intl.Intl.pluralLogic(
+ count,
+ locale: localeName,
+ other: '$count files',
+ one: '1 file',
+ );
+ return '$_temp0';
+ }
+
+ @override
+ String breqSeeders(int seeders, int leechers) {
+ return '$seeders seeders, $leechers leechers';
+ }
+
+ @override
+ String breqScore(int score) {
+ return 'Score $score';
+ }
+
+ @override
+ String breqReasonPreferredFormat(String format) {
+ return 'Preferred $format';
+ }
+
+ @override
+ String breqReasonFormat(String format) {
+ return '$format';
+ }
+
+ @override
+ String breqReasonSeeders(String count) {
+ return '$count seeders';
+ }
+
+ @override
+ String breqReviewScore(int score, int threshold) {
+ return 'Match score $score. Downloads scoring $threshold or more are added on their own.';
+ }
+
+ @override
+ String breqReviewRequested(String value) {
+ return 'Requested: $value';
+ }
+
+ @override
+ String breqReviewImported(String value) {
+ return 'Downloaded: $value';
+ }
+
+ @override
+ String get breqKindBoth => 'Both';
+
+ @override
+ String get breqEbookLibrary => 'E-book library';
+
+ @override
+ String get breqAudiobookLibrary => 'Audiobook library';
+
+ @override
+ String get breqRequestBoth => 'Request both';
+
+ @override
+ String get breqAddMeToBoth => 'Add me to both';
+
+ @override
+ String get breqRequestEbook => 'Request e-book';
+
+ @override
+ String get breqRequestAudiobook => 'Request audiobook';
+
+ @override
+ String get breqAddMeEbook => 'Add me to the e-book request';
+
+ @override
+ String get breqAddMeAudiobook => 'Add me to the audiobook request';
+
+ @override
+ String get breqPairSubmitted => 'Requested the e-book and the audiobook';
+
+ @override
+ String get breqPairOneJoined =>
+ 'Requested both. One was already on its way, so you were added to that request';
+
+ @override
+ String get breqJoinedBoth => 'Added you to both requests';
+
+ @override
+ String get breqJoinsOwned =>
+ 'Requested. It will join the copy already in your library';
+
@override
String get speedBookmarkInControls => 'Speed & bookmark in media controls';
@@ -9275,6 +10250,10 @@ class AppLocalizationsZh extends AppLocalizations {
String get authBookOrbitDefaultPassword =>
'This account still has its default password. Change it in BookOrbit, then sign in again.';
+ @override
+ String get authBookOrbitPasswordOff =>
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+
@override
String get authServerIsBookOrbit =>
'This is a BookOrbit server. Choose BookOrbit above the server address.';
diff --git a/lib/providers/auth_provider.dart b/lib/providers/auth_provider.dart
index 2005a789..84b1d247 100644
--- a/lib/providers/auth_provider.dart
+++ b/lib/providers/auth_provider.dart
@@ -803,6 +803,11 @@ class AuthProvider extends ChangeNotifier {
backend: backend,
);
+ if (result?['bookOrbitPasswordOff'] == true) {
+ _errorMessage = l?.authBookOrbitPasswordOff ??
+ 'Password sign-in is turned off on this server. Sign in with a magic link or single sign-on.';
+ return false;
+ }
if (result?['bookOrbitDefaultPassword'] == true) {
_errorMessage = l?.authBookOrbitDefaultPassword ??
'This account still has its default password. Change it in BookOrbit, then sign in again.';
diff --git a/lib/providers/library_provider.dart b/lib/providers/library_provider.dart
index d3552621..e0c59b4e 100644
--- a/lib/providers/library_provider.dart
+++ b/lib/providers/library_provider.dart
@@ -449,7 +449,8 @@ class LibraryProvider extends ChangeNotifier
// when merge is off, otherwise the player would be unreachable from the
// new library.
final merged = await PlayerSettings.getMergeAbsorbingLibraries();
- if (!merged) {
+ // The Book Dock is somewhere to sort new files, not a place to listen.
+ if (!merged && libraryId != ApiService.bookDockLibraryId) {
final wasPlaying = AudioPlayerService().isPlaying;
final wasCasting = ChromecastService().isPlaying;
if (wasPlaying) {
@@ -507,7 +508,8 @@ class LibraryProvider extends ChangeNotifier
/// Track the last non-podcast library so the Home/Library tabs know where
/// to return when leaving the dedicated Podcasts tab.
Future<void> _rememberBookLibrary(String libraryId) async {
- if (!isPodcastLibraryId(libraryId)) {
+ if (!isPodcastLibraryId(libraryId) &&
+ libraryId != ApiService.bookDockLibraryId) {
await ScopedPrefs.setString('last_book_library', libraryId);
}
}
diff --git a/lib/screens/app_shell.dart b/lib/screens/app_shell.dart
index be83636a..bf5ebe00 100644
--- a/lib/screens/app_shell.dart
+++ b/lib/screens/app_shell.dart
@@ -23,6 +23,7 @@ import 'dart:convert';
import 'admin_screen.dart';
import 'admin_api_keys_screen.dart';
import 'admin_rmab_screen.dart';
+import 'book_requests_screen.dart';
import '../widgets/rmab_config_sheet.dart'
show showRmabConfigSheet, kRmabBaseUrlKey, kRmabApiTokenKey, kRmabLegacyUrlKey;
import '../widgets/rmab_search_results_sheet.dart';
@@ -920,6 +921,7 @@ class _AppShellState extends State<AppShell>
bool _rmabConfigured = false;
bool _rmabWeb = false;
+ bool _bookRequests = false;
Future<void> _loadRmabAvailability() async {
final base = await ScopedPrefs.getString(kRmabBaseUrlKey);
@@ -930,6 +932,9 @@ class _AppShellState extends State<AppShell>
// The site opens from the legacy URL when there is one, otherwise the
// API base's origin - same rule the setup sheet's button uses.
_rmabWeb = (legacy?.isNotEmpty ?? false) || (base?.isNotEmpty ?? false);
+ if (!mounted) return;
+ final api = context.read<AuthProvider>().apiService;
+ _bookRequests = api != null && (await api.bookRequestAccess()).canRequest;
}
Future<void> _runNavHold(String tab) async {
@@ -946,7 +951,7 @@ class _AppShellState extends State<AppShell>
!navHoldIdAvailable(id,
isAdmin: isAdmin,
rmabConfigured: _rmabConfigured,
- rmabWeb: _rmabWeb)) {
+ rmabWeb: _rmabWeb, bookRequests: _bookRequests)) {
id = null;
}
if (id == null) {
@@ -1039,7 +1044,7 @@ class _AppShellState extends State<AppShell>
: navHoldIdAvailable(o.id,
isAdmin: isAdmin,
rmabConfigured: _rmabConfigured,
- rmabWeb: _rmabWeb)))
+ rmabWeb: _rmabWeb, bookRequests: _bookRequests)))
ActionPillData(
icon: o.icon,
label: navHoldLabel(o.id, l),
@@ -1075,14 +1080,14 @@ class _AppShellState extends State<AppShell>
navHoldDefaultMenu(
isAdmin: isAdmin,
rmabConfigured: _rmabConfigured,
- rmabWeb: _rmabWeb,
+ rmabWeb: _rmabWeb, bookRequests: _bookRequests,
);
return [
for (final id in ids)
if (navHoldIdAvailable(id,
isAdmin: isAdmin,
rmabConfigured: _rmabConfigured,
- rmabWeb: _rmabWeb))
+ rmabWeb: _rmabWeb, bookRequests: _bookRequests))
id,
];
}
@@ -1176,7 +1181,7 @@ class _AppShellState extends State<AppShell>
if ((lib['id'] as String?)?.isNotEmpty == true) lib['id'] as String,
],
rmabConfigured: _rmabConfigured,
- rmabWeb: _rmabWeb,
+ rmabWeb: _rmabWeb, bookRequests: _bookRequests,
).where((id) =>
id != 'menu' && id != 'none' && !ids.contains(id)).toList();
if (all.isEmpty) return null;
@@ -1333,6 +1338,8 @@ class _AppShellState extends State<AppShell>
isAdminContext: context.read<AuthProvider>().isAdmin);
case 'rmabWeb':
unawaited(_openRmabSite());
+ case 'bookRequests':
+ unawaited(BookRequestsScreen.open(context));
case 'none':
break;
}
diff --git a/lib/screens/book_edit_screen.dart b/lib/screens/book_edit_screen.dart
index a6b5ca32..f2b3a6e3 100644
--- a/lib/screens/book_edit_screen.dart
+++ b/lib/screens/book_edit_screen.dart
@@ -16,6 +16,7 @@ class BookEditScreen extends StatelessWidget {
final bool isEbookOnly;
final bool isAdmin;
final String? libraryId;
+ final bool isBookDock;
const BookEditScreen({
super.key,
@@ -29,6 +30,7 @@ class BookEditScreen extends StatelessWidget {
required this.isEbookOnly,
required this.isAdmin,
this.libraryId,
+ this.isBookDock = false,
});
@override
@@ -60,6 +62,7 @@ class BookEditScreen extends StatelessWidget {
isEbookOnly: isEbookOnly,
isAdmin: isAdmin,
libraryId: libraryId,
+ isBookDock: isBookDock,
),
);
}
diff --git a/lib/screens/book_request_release_screen.dart b/lib/screens/book_request_release_screen.dart
new file mode 100644
index 00000000..e8461b69
--- /dev/null
+++ b/lib/screens/book_request_release_screen.dart
@@ -0,0 +1,612 @@
+import 'package:cached_network_image/cached_network_image.dart';
+import 'package:flutter/material.dart';
+import 'package:intl/intl.dart';
+
+import '../l10n/app_localizations.dart';
+import '../services/api_service.dart';
+import '../services/book_requests.dart';
+import '../widgets/absorb_page_header.dart';
+import '../widgets/overlay_toast.dart';
+
+/// Picks a release by hand for a book request: BookOrbit asks its indexers,
+/// the releases come back ranked by its release profile, and the one picked
+/// goes to the download client. Pops with the updated request once grabbed.
+class BookRequestReleaseScreen extends StatefulWidget {
+ final ApiService api;
+ final BookRequest request;
+
+ const BookRequestReleaseScreen({super.key, required this.api, required this.request});
+
+ static Future<BookRequest?> open(BuildContext context, ApiService api, BookRequest request) =>
+ Navigator.push<BookRequest>(
+ context,
+ MaterialPageRoute(builder: (_) => BookRequestReleaseScreen(api: api, request: request)),
+ );
+
+ @override
+ State<BookRequestReleaseScreen> createState() => _BookRequestReleaseScreenState();
+}
+
+class _BookRequestReleaseScreenState extends State<BookRequestReleaseScreen> {
+ BookRequestReleases? _result;
+ bool _loading = true;
+ String? _error;
+ bool _failed = false;
+ int _generation = 0;
+ BookRequestReleaseSort _sort = BookRequestReleaseSort.best;
+ String? _grabbing;
+ bool _termsOpen = false;
+ late final _titleCtrl = TextEditingController(text: widget.request.title);
+ late final _authorCtrl = TextEditingController(text: widget.request.authors.isEmpty ? '' : widget.request.authors.first);
+ late final _isbnCtrl = TextEditingController(text: widget.request.isbn ?? '');
+
+ @override
+ void initState() {
+ super.initState();
+ _search();
+ }
+
+ @override
+ void dispose() {
+ _titleCtrl.dispose();
+ _authorCtrl.dispose();
+ _isbnCtrl.dispose();
+ super.dispose();
+ }
+
+ Future<void> _search({bool refresh = false, bool custom = false}) async {
+ FocusManager.instance.primaryFocus?.unfocus();
+ final generation = ++_generation;
+ setState(() {
+ _loading = true;
+ _failed = false;
+ _error = null;
+ });
+ final res = await widget.api.bookRequestReleases(
+ widget.request.id,
+ refresh: refresh,
+ terms: custom
+ ? (
+ title: _titleCtrl.text,
+ author: _authorCtrl.text,
+ isbn: _isbnCtrl.text.trim().isEmpty ? null : _isbnCtrl.text.trim(),
+ )
+ : null,
+ );
+ if (!mounted || generation != _generation) return;
+ setState(() {
+ _loading = false;
+ _result = res.releases ?? _result;
+ _failed = res.releases == null;
+ _error = res.error;
+ final r = res.releases;
+ if (r != null && !custom) {
+ if (r.title.isNotEmpty) _titleCtrl.text = r.title;
+ if (r.authors.isNotEmpty) _authorCtrl.text = r.authors.first;
+ _isbnCtrl.text = r.isbn ?? '';
+ }
+ });
+ }
+
+ Future<void> _grab(BookRequestRelease release) async {
+ final l = AppLocalizations.of(context)!;
+ if (_grabbing != null) return;
+ final ok = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => AlertDialog(
+ title: Text(l.breqGrabTitle),
+ content: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(release.title, style: const TextStyle(fontWeight: FontWeight.w600)),
+ const SizedBox(height: 6),
+ Text([
+ release.indexerName,
+ if (release.sizeBytes != null) formatReleaseSize(release.sizeBytes),
+ if (release.formats.isNotEmpty) release.formats.join(', ').toUpperCase(),
+ ].join(' · ')),
+ if (release.vipOnly) ...[
+ const SizedBox(height: 8),
+ Text(l.breqReleaseVipWarning, style: TextStyle(color: Theme.of(ctx).colorScheme.error)),
+ ],
+ ]),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),
+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.breqGrab)),
+ ],
+ ),
+ );
+ if (ok != true || !mounted) return;
+ setState(() => _grabbing = release.guid);
+
+ // BookOrbit's picker looks inside the release first and won't send one
+ // with nothing in it that can be filed.
+ final inspection = await widget.api.inspectBookRequestRelease(widget.request.id, release.indexerId, release.guid);
+ if (!mounted) return;
+ if (inspection.status == null || inspection.status == 'no_supported_file') {
+ setState(() => _grabbing = null);
+ showOverlayToast(
+ context,
+ inspection.status == 'no_supported_file'
+ ? l.breqReleaseNoBookFile
+ : inspection.error != null
+ ? l.breqReleaseCheckFailedReason(inspection.error!)
+ : l.breqReleaseCheckFailed,
+ icon: Icons.error_outline_rounded,
+ );
+ return;
+ }
+
+ final res = await widget.api.grabBookRequestRelease(widget.request.id, release.indexerId, release.guid);
+ if (!mounted) return;
+ setState(() => _grabbing = null);
+ if (res.request == null) {
+ showOverlayToast(context, res.error != null ? l.breqGrabFailedReason(res.error!) : l.breqGrabFailed,
+ icon: Icons.error_outline_rounded);
+ return;
+ }
+ showOverlayToast(context, l.breqGrabbed, icon: Icons.download_rounded);
+ Navigator.pop(context, res.request);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ final result = _result;
+ final releases = result == null ? const <BookRequestRelease>[] : sortBookRequestReleases(result.releases, _sort);
+
+ return Scaffold(
+ backgroundColor: Theme.of(context).scaffoldBackgroundColor,
+ body: SafeArea(
+ child: Column(children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),
+ child: Row(children: [
+ Expanded(child: AbsorbPageHeader(title: l.breqFindRelease, padding: EdgeInsets.zero)),
+ IconButton(
+ tooltip: l.breqSearchAgain,
+ icon: Icon(Icons.refresh_rounded, color: cs.onSurfaceVariant),
+ onPressed: _loading ? null : () => _search(refresh: true),
+ ),
+ IconButton(
+ icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant),
+ onPressed: () => Navigator.pop(context),
+ ),
+ ]),
+ ),
+ Expanded(
+ child: ListView(padding: const EdgeInsets.fromLTRB(16, 8, 16, 32), children: [
+ _header(context),
+ const SizedBox(height: 10),
+ _terms(context),
+ const SizedBox(height: 10),
+ if (_loading)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 32),
+ child: Column(children: [
+ const SizedBox(width: 26, height: 26, child: CircularProgressIndicator(strokeWidth: 2.5)),
+ const SizedBox(height: 14),
+ Text(l.breqSearchingIndexers,
+ textAlign: TextAlign.center, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ ]),
+ )
+ else if (_failed)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 24),
+ child: Column(children: [
+ Text(_error != null ? l.breqReleasesFailedReason(_error!) : l.breqReleasesFailed,
+ textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.error)),
+ TextButton(onPressed: _search, child: Text(l.retry)),
+ ]),
+ ),
+ if (!_loading && result != null) ...[
+ _sources(context, result),
+ const SizedBox(height: 8),
+ if (releases.isNotEmpty) _sortRow(context),
+ if (releases.isEmpty)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 24),
+ child: Text(_emptyText(l, result),
+ textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ ),
+ for (final r in releases) _releaseRow(context, r),
+ ],
+ ]),
+ ),
+ ]),
+ ),
+ );
+ }
+
+ String _emptyText(AppLocalizations l, BookRequestReleases r) {
+ if (r.configuredIndexers == 0) return l.breqNoSourcesSetUp;
+ if (r.enabledIndexers == 0) return l.breqNoSourcesOn;
+ if (r.indexers.isEmpty && r.uncoveredIndexers > 0) return l.breqNoSourceCarries;
+ return l.breqNoReleases;
+ }
+
+ Widget _header(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final r = widget.request;
+ final box = Container(
+ width: 44,
+ height: 64,
+ color: cs.surfaceContainerHighest,
+ child: Icon(Icons.menu_book_rounded, size: 18, color: cs.onSurfaceVariant),
+ );
+ return Row(children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(6),
+ child: r.coverUrl == null
+ ? box
+ : CachedNetworkImage(
+ imageUrl: r.coverUrl!,
+ width: 44,
+ height: 64,
+ fit: BoxFit.cover,
+ placeholder: (_, __) => box,
+ errorWidget: (_, __, ___) => box,
+ ),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(r.title, style: tt.titleSmall?.copyWith(fontWeight: FontWeight.w700)),
+ if (r.authors.isNotEmpty)
+ Text(r.authors.join(', '), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ ]),
+ ),
+ ]);
+ }
+
+ Widget _terms(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ InputDecoration field(String label, {String? hint}) => InputDecoration(
+ labelText: label,
+ hintText: hint,
+ isDense: true,
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
+ );
+ return Container(
+ decoration: BoxDecoration(color: cs.surfaceContainerHigh, borderRadius: BorderRadius.circular(12)),
+ child: Column(children: [
+ InkWell(
+ borderRadius: BorderRadius.circular(12),
+ onTap: () => setState(() => _termsOpen = !_termsOpen),
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(12, 10, 8, 10),
+ child: Row(children: [
+ Icon(Icons.tune_rounded, size: 18, color: cs.onSurfaceVariant),
+ const SizedBox(width: 8),
+ Expanded(child: Text(l.breqSearchTerms, style: tt.labelLarge?.copyWith(fontWeight: FontWeight.w600))),
+ Icon(_termsOpen ? Icons.expand_less_rounded : Icons.expand_more_rounded, color: cs.onSurfaceVariant),
+ ]),
+ ),
+ ),
+ if (_termsOpen)
+ Padding(
+ padding: const EdgeInsets.fromLTRB(12, 0, 12, 12),
+ child: Column(children: [
+ TextField(controller: _titleCtrl, decoration: field(l.breqTitleHint)),
+ const SizedBox(height: 8),
+ TextField(controller: _authorCtrl, decoration: field(l.breqAuthorHint)),
+ const SizedBox(height: 8),
+ TextField(
+ controller: _isbnCtrl,
+ keyboardType: TextInputType.number,
+ decoration: field(l.isbnLabel, hint: l.breqIsbnHint),
+ ),
+ const SizedBox(height: 10),
+ SizedBox(
+ width: double.infinity,
+ child: FilledButton.icon(
+ onPressed: _loading ? null : () => _search(custom: true),
+ icon: const Icon(Icons.search_rounded, size: 18),
+ label: Text(l.breqSearch),
+ ),
+ ),
+ ]),
+ ),
+ ]),
+ );
+ }
+
+ Widget _sources(BuildContext context, BookRequestReleases r) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ String failure(String? code) => switch (code) {
+ 'unauthorized' => l.breqIndexerUnauthorized,
+ 'throttled' => l.breqIndexerThrottled,
+ 'timeout' => l.breqIndexerTimeout,
+ 'unreachable' => l.breqIndexerUnreachable,
+ 'unsupportedMedium' => l.breqIndexerNoMedium,
+ _ => l.breqIndexerError,
+ };
+ return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(
+ r.cached ? '${l.breqReleaseCount(r.releases.length)} · ${l.breqFromCache}' : l.breqReleaseCount(r.releases.length),
+ style: tt.labelLarge?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600),
+ ),
+ if (r.indexers.isNotEmpty) ...[
+ const SizedBox(height: 6),
+ Wrap(spacing: 6, runSpacing: 6, children: [
+ for (final i in r.indexers)
+ _chip(
+ i.ok ? '${i.name} · ${i.count}' : '${i.name} · ${failure(i.failure)}',
+ i.ok ? (i.count > 0 ? cs.primary : cs.onSurfaceVariant) : cs.error,
+ ),
+ ]),
+ ],
+ ]);
+ }
+
+ Widget _sortRow(BuildContext context) {
+ final l = AppLocalizations.of(context)!;
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: SingleChildScrollView(
+ scrollDirection: Axis.horizontal,
+ child: Row(children: [
+ for (final s in BookRequestReleaseSort.values)
+ Padding(
+ padding: const EdgeInsets.only(right: 6),
+ child: ChoiceChip(
+ label: Text(switch (s) {
+ BookRequestReleaseSort.best => l.breqSortBest,
+ BookRequestReleaseSort.seeders => l.breqSortSeeders,
+ BookRequestReleaseSort.size => l.breqSortSize,
+ BookRequestReleaseSort.newest => l.breqSortNewest,
+ }),
+ selected: _sort == s,
+ onSelected: (_) => setState(() => _sort = s),
+ ),
+ ),
+ ]),
+ ),
+ );
+ }
+
+ Widget _chip(String text, Color color) => Container(
+ padding: const EdgeInsets.symmetric(horizontal: 7, vertical: 3),
+ decoration: BoxDecoration(color: color.withValues(alpha: 0.13), borderRadius: BorderRadius.circular(6)),
+ child: Text(text, style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: color)),
+ );
+
+ String _reasonLabel(AppLocalizations l, BookRequestReleaseReason r) {
+ final d = r.detail ?? '';
+ return switch (r.code) {
+ 'isbnMatch' => l.breqReasonIsbn,
+ 'titleMatch' => l.breqReasonTitle,
+ 'authorMatch' => l.breqReasonAuthor,
+ 'preferredFormat' => l.breqReasonPreferredFormat(d.toUpperCase()),
+ 'knownFormat' => l.breqReasonFormat(d.toUpperCase()),
+ 'unknownFormat' => l.breqReasonUnknownFormat,
+ 'expectedSize' => l.breqReasonExpectedSize,
+ 'suspiciousSize' => l.breqReasonSuspiciousSize,
+ 'seeders' => l.breqReasonSeeders(d),
+ 'freeleech' => l.breqReasonFreeleech,
+ 'likelySeveralBooks' => l.breqReasonSeveralBooks,
+ _ => r.code,
+ };
+ }
+
+ Widget _releaseRow(BuildContext context, BookRequestRelease r) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ final busy = _grabbing == r.guid;
+ final facts = [
+ r.indexerName,
+ if (r.sizeBytes != null) formatReleaseSize(r.sizeBytes),
+ if (r.seeders != null) l.breqSeeders(r.seeders!, r.leechers ?? 0),
+ if (r.bitrateKbps != null) '${r.bitrateKbps} kbps',
+ if (r.fileCount != null) l.breqFileCount(r.fileCount!),
+ if (r.publishedAt != null) DateFormat.yMMMd().format(r.publishedAt!),
+ ];
+ final reasons = r.reasons.where((x) => x.points != 0).toList()
+ ..sort((a, b) => b.points.abs().compareTo(a.points.abs()));
+
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: Container(
+ padding: const EdgeInsets.all(12),
+ decoration: BoxDecoration(color: cs.surfaceContainerHigh, borderRadius: BorderRadius.circular(12)),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(r.title, style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
+ const SizedBox(height: 4),
+ Text(facts.join(' · '), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 6),
+ Wrap(spacing: 4, runSpacing: 4, children: [
+ if (r.tierName != null) _chip(r.tierName!, Colors.green) else _chip(l.breqScore(r.score.round()), cs.primary),
+ for (final f in r.formats) _chip(f.toUpperCase(), cs.onSurfaceVariant),
+ if (r.language != null) _chip(r.language!.toUpperCase(), cs.onSurfaceVariant),
+ if (r.freeleech) _chip(l.breqFreeleech, Colors.green),
+ if (r.vipOnly) _chip(l.breqVipOnly, cs.error),
+ if (r.alreadyGrabbed) _chip(l.breqAlreadyGrabbed, Colors.orange),
+ ]),
+ if (reasons.isNotEmpty) ...[
+ const SizedBox(height: 6),
+ Text(
+ reasons
+ .take(4)
+ .map((x) => '${_reasonLabel(l, x)} ${x.points > 0 ? '+' : ''}${x.points}')
+ .join(' · '),
+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant),
+ ),
+ ],
+ const SizedBox(height: 8),
+ Align(
+ alignment: Alignment.centerRight,
+ child: busy
+ ? Padding(
+ padding: const EdgeInsets.all(8),
+ child: Row(mainAxisSize: MainAxisSize.min, children: [
+ const SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 2)),
+ const SizedBox(width: 10),
+ Text(l.breqCheckingRelease, style: tt.bodySmall),
+ ]),
+ )
+ : FilledButton.tonal(
+ onPressed: _grabbing != null ? null : () => _grab(r),
+ child: Text(l.breqGrab),
+ ),
+ ),
+ ]),
+ ),
+ );
+ }
+}
+
+/// The import BookOrbit held back, and the choice to file it anyway or
+/// throw it away. Pops with the action picked, or null.
+Future<BookRequestAction?> showBookRequestReview(BuildContext context, ApiService api, BookRequest request) {
+ return showModalBottomSheet<BookRequestAction>(
+ context: context,
+ isScrollControlled: true,
+ useSafeArea: true,
+ builder: (ctx) => _ReviewSheet(api: api, request: request),
+ );
+}
+
+class _ReviewSheet extends StatefulWidget {
+ final ApiService api;
+ final BookRequest request;
+ const _ReviewSheet({required this.api, required this.request});
+
+ @override
+ State<_ReviewSheet> createState() => _ReviewSheetState();
+}
+
+class _ReviewSheetState extends State<_ReviewSheet> {
+ BookRequestReview? _review;
+ String? _error;
+ bool _loading = true;
+
+ @override
+ void initState() {
+ super.initState();
+ widget.api.bookRequestReview(widget.request.id).then((res) {
+ if (!mounted) return;
+ setState(() {
+ _loading = false;
+ _review = res.review;
+ _error = res.error;
+ });
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ final review = _review;
+
+ String fieldLabel(String field) => switch (field) {
+ 'title' => l.titleLabel,
+ 'authors' => l.authorLabel,
+ 'isbn13' => l.isbnLabel,
+ _ => field,
+ };
+ Color verdictColor(String verdict) => switch (verdict) {
+ 'match' => Colors.green,
+ 'mismatch' => cs.error,
+ _ => cs.onSurfaceVariant,
+ };
+
+ return DraggableScrollableSheet(
+ expand: false,
+ initialChildSize: 0.7,
+ maxChildSize: 0.95,
+ builder: (ctx, scroll) => ListView(controller: scroll, padding: const EdgeInsets.fromLTRB(20, 20, 20, 24), children: [
+ Text(l.breqReviewTitle, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),
+ const SizedBox(height: 4),
+ Text(widget.request.title, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 16),
+ if (_loading)
+ const Center(child: Padding(padding: EdgeInsets.all(24), child: CircularProgressIndicator(strokeWidth: 2)))
+ else if (review == null)
+ Text(_error != null ? l.breqReviewFailedReason(_error!) : l.breqReviewFailed,
+ style: tt.bodyMedium?.copyWith(color: cs.error))
+ else ...[
+ if (review.score != null && review.threshold != null)
+ Text(l.breqReviewScore(review.score!, review.threshold!), style: tt.bodyMedium),
+ if (review.rows.isNotEmpty) ...[
+ const SizedBox(height: 12),
+ for (final row in review.rows)
+ Padding(
+ padding: const EdgeInsets.only(bottom: 10),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Row(children: [
+ Text(fieldLabel(row.field), style: tt.labelLarge?.copyWith(fontWeight: FontWeight.w600)),
+ const SizedBox(width: 8),
+ Icon(
+ row.verdict == 'match'
+ ? Icons.check_circle_rounded
+ : row.verdict == 'mismatch'
+ ? Icons.cancel_rounded
+ : Icons.help_outline_rounded,
+ size: 16,
+ color: verdictColor(row.verdict),
+ ),
+ ]),
+ Text(l.breqReviewRequested(row.requested ?? '-'), style: tt.bodySmall),
+ Text(l.breqReviewImported(row.imported ?? '-'), style: tt.bodySmall),
+ ]),
+ ),
+ ],
+ if (review.dockEntryGone)
+ Padding(
+ padding: const EdgeInsets.only(top: 4, bottom: 8),
+ child: Text(l.breqReviewDockGone, style: tt.bodySmall?.copyWith(color: cs.error)),
+ ),
+ if (review.files.isNotEmpty) ...[
+ const SizedBox(height: 8),
+ Text(
+ review.totalSizeBytes != null
+ ? '${l.breqReviewFiles(review.files.length)} · ${formatReleaseSize(review.totalSizeBytes)}'
+ : l.breqReviewFiles(review.files.length),
+ style: tt.labelLarge?.copyWith(fontWeight: FontWeight.w600),
+ ),
+ const SizedBox(height: 4),
+ for (final f in review.files.take(30))
+ Padding(
+ padding: const EdgeInsets.only(bottom: 2),
+ child: Text(
+ [f.fileName, if (f.size != null) formatReleaseSize(f.size)].join(' · '),
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),
+ ),
+ ),
+ ],
+ if (!review.canFile)
+ Padding(
+ padding: const EdgeInsets.only(top: 8),
+ child: Text(l.breqReviewNoLibrary, style: tt.bodySmall?.copyWith(color: cs.error)),
+ ),
+ const SizedBox(height: 16),
+ Row(children: [
+ Expanded(
+ child: OutlinedButton(
+ onPressed: () => Navigator.pop(context, BookRequestAction.discardImport),
+ child: Text(l.breqDiscardImport),
+ ),
+ ),
+ const SizedBox(width: 10),
+ Expanded(
+ child: FilledButton(
+ onPressed: review.canFile && !review.dockEntryGone
+ ? () => Navigator.pop(context, BookRequestAction.forceFile)
+ : null,
+ child: Text(l.breqFileAnyway),
+ ),
+ ),
+ ]),
+ ],
+ ]),
+ );
+ }
+}
diff --git a/lib/screens/book_requests_screen.dart b/lib/screens/book_requests_screen.dart
new file mode 100644
index 00000000..72786f13
--- /dev/null
+++ b/lib/screens/book_requests_screen.dart
@@ -0,0 +1,1442 @@
+import 'dart:async';
+import 'dart:math' as math;
+
+import 'package:cached_network_image/cached_network_image.dart';
+import 'package:flutter/material.dart';
+import 'package:intl/intl.dart';
+import 'package:provider/provider.dart';
+
+import '../l10n/app_localizations.dart';
+import '../providers/auth_provider.dart';
+import '../services/api_service.dart';
+import '../services/book_requests.dart';
+import '../services/bookorbit_match.dart';
+import '../widgets/absorb_page_header.dart';
+import '../widgets/book_detail_sheet.dart';
+import '../widgets/overlay_toast.dart';
+import 'book_request_release_screen.dart';
+
+/// BookOrbit book requests: ask for a book the library doesn't have, follow
+/// your requests, and (for managers) approve or reject everyone's. Picking a
+/// release by hand stays on BookOrbit's web.
+class BookRequestsScreen extends StatefulWidget {
+ final String initialQuery;
+
+ /// Open on My requests instead of the search.
+ final bool openList;
+
+ const BookRequestsScreen({super.key, this.initialQuery = '', this.openList = false});
+
+ static Future<void> open(BuildContext context, {String query = '', bool openList = false}) =>
+ Navigator.push(
+ context,
+ MaterialPageRoute(builder: (_) => BookRequestsScreen(initialQuery: query, openList: openList)),
+ );
+
+ @override
+ State<BookRequestsScreen> createState() => _BookRequestsScreenState();
+}
+
+typedef _Library = ({int id, String name});
+
+class _BookRequestsScreenState extends State<BookRequestsScreen> with TickerProviderStateMixin {
+ BookRequestAccess? _access;
+ TabController? _tabs;
+ List<_Library> _libraries = const [];
+ Map<String, int> _defaults = const {};
+ final _mine = GlobalKey<_RequestListState>();
+ final _all = GlobalKey<_RequestListState>();
+
+ ApiService? get _api => context.read<AuthProvider>().apiService;
+
+ @override
+ void initState() {
+ super.initState();
+ _load();
+ }
+
+ Future<void> _load() async {
+ final api = _api;
+ if (api == null) {
+ setState(() => _access = BookRequestAccess.none);
+ return;
+ }
+ final results = await Future.wait([
+ api.bookRequestAccess(),
+ api.getLibraries(),
+ api.bookRequestDefaultLibraries(),
+ ]);
+ if (!mounted) return;
+ final access = results[0] as BookRequestAccess;
+ setState(() {
+ _access = access;
+ _libraries = [
+ for (final lib in (results[1] as List<dynamic>).whereType<Map>())
+ if (int.tryParse('${lib['id']}') != null)
+ (id: int.parse('${lib['id']}'), name: '${lib['name'] ?? ''}'),
+ ];
+ _defaults = results[2] as Map<String, int>;
+ if (access.canRequest) {
+ _tabs = TabController(
+ length: access.canManage ? 3 : 2,
+ vsync: this,
+ initialIndex: widget.openList ? 1 : 0,
+ );
+ }
+ });
+ }
+
+ @override
+ void dispose() {
+ _tabs?.dispose();
+ super.dispose();
+ }
+
+ void _changed() {
+ _mine.currentState?.reload(quiet: true);
+ _all.currentState?.reload(quiet: true);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final l = AppLocalizations.of(context)!;
+ final access = _access;
+ final tabs = _tabs;
+ final api = _api;
+
+ Widget body;
+ if (access == null) {
+ body = const Center(child: CircularProgressIndicator(strokeWidth: 2));
+ } else if (!access.canRequest || tabs == null || api == null) {
+ body = Center(
+ child: Padding(
+ padding: const EdgeInsets.all(32),
+ child: Text(l.breqNoAccess,
+ textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ ),
+ );
+ } else {
+ final shared = (libraries: _libraries, defaults: _defaults);
+ body = Column(children: [
+ TabBar(
+ controller: tabs,
+ isScrollable: true,
+ tabAlignment: TabAlignment.start,
+ labelColor: cs.primary,
+ unselectedLabelColor: cs.onSurfaceVariant,
+ indicatorColor: cs.primary,
+ tabs: [
+ Tab(text: l.breqTabRequest),
+ Tab(text: l.breqTabMine),
+ if (access.canManage) Tab(text: l.breqTabAll),
+ ],
+ ),
+ Expanded(
+ child: TabBarView(controller: tabs, children: [
+ _RequestSearch(
+ api: api,
+ access: access,
+ libraries: shared.libraries,
+ defaults: shared.defaults,
+ initialQuery: widget.initialQuery,
+ onRequested: _changed,
+ ),
+ _RequestList(
+ key: _mine,
+ api: api,
+ access: access,
+ all: false,
+ libraries: shared.libraries,
+ defaults: shared.defaults,
+ onChanged: () => _all.currentState?.reload(quiet: true),
+ ),
+ if (access.canManage)
+ _RequestList(
+ key: _all,
+ api: api,
+ access: access,
+ all: true,
+ libraries: shared.libraries,
+ defaults: shared.defaults,
+ onChanged: () => _mine.currentState?.reload(quiet: true),
+ ),
+ ]),
+ ),
+ ]);
+ }
+
+ return Scaffold(
+ backgroundColor: Theme.of(context).scaffoldBackgroundColor,
+ body: SafeArea(
+ child: Column(children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(20, 12, 8, 0),
+ child: Row(children: [
+ Expanded(child: AbsorbPageHeader(title: l.breqTitle, padding: EdgeInsets.zero)),
+ IconButton(
+ icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant),
+ onPressed: () => Navigator.pop(context),
+ ),
+ ]),
+ ),
+ const SizedBox(height: 4),
+ Expanded(child: body),
+ ]),
+ ),
+ );
+ }
+}
+
+Widget _cover(BuildContext context, String? url, {double width = 48}) {
+ final cs = Theme.of(context).colorScheme;
+ final box = Container(
+ width: width,
+ height: width * 1.45,
+ color: cs.surfaceContainerHighest,
+ child: Icon(Icons.menu_book_rounded, size: width * 0.4, color: cs.onSurfaceVariant),
+ );
+ return ClipRRect(
+ borderRadius: BorderRadius.circular(6),
+ child: url == null || url.isEmpty
+ ? box
+ // Covers come from the sources' own servers, so no account headers.
+ : CachedNetworkImage(
+ imageUrl: url,
+ width: width,
+ height: width * 1.45,
+ fit: BoxFit.cover,
+ placeholder: (_, __) => box,
+ errorWidget: (_, __, ___) => box,
+ ),
+ );
+}
+
+Widget _tag(String text, Color color) => Container(
+ padding: const EdgeInsets.symmetric(horizontal: 7, vertical: 2),
+ decoration: BoxDecoration(color: color.withValues(alpha: 0.13), borderRadius: BorderRadius.circular(6)),
+ child: Text(text, style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: color)),
+ );
+
+String _kindLabel(AppLocalizations l, String kind) => switch (kind) {
+ 'ebook' => l.breqKindEbook,
+ 'comic' => l.breqKindComic,
+ 'both' => l.breqKindBoth,
+ _ => l.breqKindAudiobook,
+ };
+
+/// Library choices for a request of [kind]: null stands for "whatever the
+/// server picks", offered only when it has a default or someone else decides.
+Widget _libraryPicker({
+ required BuildContext context,
+ String? label,
+ required List<_Library> libraries,
+ required int? defaultId,
+ required int? value,
+ required bool allowNone,
+ required ValueChanged<int?> onChanged,
+}) {
+ final l = AppLocalizations.of(context)!;
+ String? defaultName;
+ for (final lib in libraries) {
+ if (lib.id == defaultId) defaultName = lib.name;
+ }
+ return DropdownButtonFormField<int?>(
+ initialValue: value,
+ isExpanded: true,
+ decoration: InputDecoration(
+ labelText: label ?? l.breqLibrary,
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
+ isDense: true,
+ ),
+ hint: Text(l.breqLibraryChoose),
+ items: [
+ if (allowNone || defaultName != null)
+ DropdownMenuItem<int?>(
+ value: null,
+ child: Text(defaultName != null ? l.breqLibraryDefault(defaultName) : l.breqLibraryApprover),
+ ),
+ for (final lib in libraries) DropdownMenuItem<int?>(value: lib.id, child: Text(lib.name)),
+ ],
+ onChanged: onChanged,
+ );
+}
+
+class _RequestSearch extends StatefulWidget {
+ final ApiService api;
+ final BookRequestAccess access;
+ final List<_Library> libraries;
+ final Map<String, int> defaults;
+ final String initialQuery;
+ final VoidCallback onRequested;
+
+ const _RequestSearch({
+ required this.api,
+ required this.access,
+ required this.libraries,
+ required this.defaults,
+ required this.initialQuery,
+ required this.onRequested,
+ });
+
+ @override
+ State<_RequestSearch> createState() => _RequestSearchState();
+}
+
+class _RequestSearchState extends State<_RequestSearch> with AutomaticKeepAliveClientMixin {
+ late final _titleCtrl = TextEditingController(text: widget.initialQuery);
+ final _authorCtrl = TextEditingController();
+ String _kind = 'audiobook';
+ List<Map<String, String>> _providers = const [];
+
+ final List<MatchCandidate> _results = [];
+ final Map<String, BookRequestAvailability?> _availability = {};
+ final Set<String> _asked = {};
+ StreamSubscription<MatchSearchEvent>? _search;
+ Timer? _annotate;
+ int _generation = 0;
+ bool _streaming = false;
+ bool _searched = false;
+ bool _failed = false;
+ final Set<String> _busy = {};
+
+ @override
+ bool get wantKeepAlive => true;
+
+ @override
+ void initState() {
+ super.initState();
+ widget.api.bookMatchProviders().then((list) {
+ if (mounted && list != null) setState(() => _providers = list);
+ });
+ if (widget.initialQuery.trim().isNotEmpty) _runSearch();
+ }
+
+ @override
+ void dispose() {
+ _search?.cancel();
+ _annotate?.cancel();
+ _titleCtrl.dispose();
+ _authorCtrl.dispose();
+ super.dispose();
+ }
+
+ String _providerLabel(String key) {
+ for (final p in _providers) {
+ if (p['key'] == key) return p['label'] ?? key;
+ }
+ return key.isEmpty ? key : '${key[0].toUpperCase()}${key.substring(1)}';
+ }
+
+ void _runSearch() {
+ FocusManager.instance.primaryFocus?.unfocus();
+ final title = _titleCtrl.text.trim();
+ final author = _authorCtrl.text.trim();
+ if (title.isEmpty && author.isEmpty) return;
+ _search?.cancel();
+ _annotate?.cancel();
+ final generation = ++_generation;
+ setState(() {
+ _results.clear();
+ _availability.clear();
+ _asked.clear();
+ _streaming = true;
+ _searched = true;
+ _failed = false;
+ });
+ _search = widget.api
+ .searchMatches(
+ '',
+ title: title,
+ author: author,
+ mediaKind: _kind == 'both' ? null : _kind,
+ mediaKinds: _kind == 'both' ? _halves : null,
+ )
+ .listen(
+ (event) {
+ final c = event.candidate;
+ if (!mounted || generation != _generation || c == null) return;
+ if (_results.any((r) => r.key == c.key)) return;
+ setState(() => _results.add(c));
+ _annotate?.cancel();
+ _annotate = Timer(const Duration(milliseconds: 400), () => _annotateNow(generation));
+ },
+ onError: (Object e) {
+ debugPrint('[BookOrbit] request search failed: $e');
+ if (mounted && generation == _generation) {
+ setState(() {
+ _streaming = false;
+ _failed = true;
+ });
+ }
+ },
+ onDone: () {
+ if (!mounted || generation != _generation) return;
+ setState(() => _streaming = false);
+ _annotate?.cancel();
+ _annotateNow(generation);
+ },
+ cancelOnError: true,
+ );
+ }
+
+ /// Asks the server which results are already owned or requested.
+ Future<void> _annotateNow(int generation) async {
+ final pending = [
+ for (final r in _results)
+ if (r.title.isNotEmpty && _asked.add(r.key)) r,
+ ];
+ if (pending.isEmpty) return;
+ final kinds = _halves;
+ // One answer per format: a book can be owned as an e-book and still be
+ // missing as an audiobook.
+ final answers = await Future.wait([
+ for (final k in kinds) widget.api.bookRequestAvailability(pending, k),
+ ]);
+ if (!mounted || generation != _generation) return;
+ setState(() {
+ for (var k = 0; k < kinds.length; k++) {
+ for (var i = 0; i < pending.length; i++) {
+ _availability['${kinds[k]}|${pending[i].key}'] = i < answers[k].length ? answers[k][i] : null;
+ }
+ }
+ });
+ }
+
+ /// The formats a search covers: two when asking for both.
+ List<String> get _halves => _kind == 'both' ? const ['ebook', 'audiobook'] : [_kind];
+
+ BookRequestAvailability? _availabilityOf(BookRequestWork work, String kind) =>
+ BookRequestAvailability.merge(work.records.map((r) => _availability['$kind|${r.key}']));
+
+ void _markRequested(BookRequestWork work, String kind, BookRequest? request) {
+ if (request == null) return;
+ final mark = BookRequestAvailability(
+ ownedBookId: request.status == 'available' ? request.matchedBookId : null,
+ existingRequestId: request.id,
+ existingRequestStatus: request.status,
+ alreadySubscribed: true,
+ );
+ for (final r in work.records) {
+ _availability['$kind|${r.key}'] = mark;
+ }
+ }
+
+ /// Asks for one format. [targetBookId] files it into a book that already
+ /// has the other format.
+ Future<void> _request(BookRequestWork work, String kind, {required bool join, int? targetBookId}) async {
+ int? libraryId;
+ String? note;
+ if (!join) {
+ final choice = await _confirm(work, [kind]);
+ if (choice == null || !mounted) return;
+ libraryId = choice.libraries[kind];
+ note = choice.note;
+ }
+ final l = AppLocalizations.of(context)!;
+ final generation = _generation;
+ setState(() => _busy.add(work.key));
+ final result = await widget.api.submitBookRequest(bookRequestPayload(
+ work,
+ kind,
+ providerLabel: _providerLabel,
+ note: note,
+ libraryId: libraryId,
+ targetBookId: targetBookId,
+ ));
+ if (!mounted) return;
+ setState(() {
+ _busy.remove(work.key);
+ if (generation == _generation) _markRequested(work, kind, result.request);
+ });
+ if (result.ok) {
+ widget.onRequested();
+ showOverlayToast(
+ context,
+ result.subscribed
+ ? l.breqJoined
+ : targetBookId != null
+ ? l.breqJoinsOwned
+ : l.breqSubmitted,
+ icon: Icons.check_circle_outline_rounded,
+ );
+ } else {
+ showOverlayToast(context, result.error != null ? l.breqFailedReason(result.error!) : l.breqFailed,
+ icon: Icons.error_outline_rounded);
+ }
+ }
+
+ /// [join] adds the user to existing requests for both, which have their
+ /// libraries already, so there is nothing to choose.
+ Future<void> _requestPair(BookRequestWork work, {bool join = false}) async {
+ final choice = join
+ ? (libraries: const <String, int?>{}, note: '')
+ : await _confirm(work, const ['ebook', 'audiobook']);
+ if (choice == null || !mounted) return;
+ final l = AppLocalizations.of(context)!;
+ final generation = _generation;
+ setState(() => _busy.add(work.key));
+ final result = await widget.api.submitBookRequestPair(bookRequestPairPayload(
+ work,
+ providerLabel: _providerLabel,
+ note: choice.note,
+ ebookLibraryId: choice.libraries['ebook'],
+ audiobookLibraryId: choice.libraries['audiobook'],
+ ));
+ if (!mounted) return;
+ setState(() {
+ _busy.remove(work.key);
+ if (generation == _generation) {
+ _markRequested(work, 'ebook', result.ebook.request);
+ _markRequested(work, 'audiobook', result.audiobook.request);
+ }
+ });
+ if (result.ok) {
+ widget.onRequested();
+ final joined = [result.ebook.subscribed, result.audiobook.subscribed].where((s) => s).length;
+ showOverlayToast(
+ context,
+ joined == 2
+ ? l.breqJoinedBoth
+ : joined == 1
+ ? l.breqPairOneJoined
+ : l.breqPairSubmitted,
+ icon: Icons.check_circle_outline_rounded,
+ );
+ } else {
+ showOverlayToast(context, result.error != null ? l.breqFailedReason(result.error!) : l.breqFailed,
+ icon: Icons.error_outline_rounded);
+ }
+ }
+
+ Future<({Map<String, int?> libraries, String note})?> _confirm(BookRequestWork work, List<String> kinds) {
+ final l = AppLocalizations.of(context)!;
+ final access = widget.access;
+ // An approved request needs a library, so with nobody to approve and no
+ // default the user picks one.
+ bool mustPick(String kind, int? picked) => access.autoApprove && widget.defaults[kind] == null && picked == null;
+ final showLibrary = access.autoApprove || widget.libraries.length > 1;
+ final noteCtrl = TextEditingController();
+ final libraries = <String, int?>{for (final k in kinds) k: null};
+ final pair = kinds.length > 1;
+ return showModalBottomSheet<({Map<String, int?> libraries, String note})>(
+ context: context,
+ isScrollControlled: true,
+ useSafeArea: true,
+ builder: (ctx) => StatefulBuilder(
+ builder: (ctx, setSheet) {
+ final cs = Theme.of(ctx).colorScheme;
+ final tt = Theme.of(ctx).textTheme;
+ return Padding(
+ padding: EdgeInsets.fromLTRB(20, 16, 20, 16 + MediaQuery.of(ctx).viewInsets.bottom),
+ child: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ _cover(ctx, work.coverUrl, width: 56),
+ const SizedBox(width: 14),
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(work.title, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),
+ if (work.authors.isNotEmpty)
+ Text(work.authors.join(', '), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 6),
+ _tag(_kindLabel(l, pair ? 'both' : kinds.single), cs.primary),
+ ]),
+ ),
+ ]),
+ const SizedBox(height: 18),
+ if (showLibrary)
+ for (final k in kinds) ...[
+ _libraryPicker(
+ context: ctx,
+ label: !pair
+ ? null
+ : k == 'ebook'
+ ? l.breqEbookLibrary
+ : l.breqAudiobookLibrary,
+ libraries: widget.libraries,
+ defaultId: widget.defaults[k],
+ value: libraries[k],
+ allowNone: !access.autoApprove,
+ onChanged: (v) => setSheet(() => libraries[k] = v),
+ ),
+ const SizedBox(height: 12),
+ ],
+ if (access.autoApprove)
+ Padding(
+ padding: const EdgeInsets.only(bottom: 12),
+ child: Text(l.breqAutoApproved, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ )
+ else ...[
+ TextField(
+ controller: noteCtrl,
+ maxLength: 2000,
+ minLines: 1,
+ maxLines: 4,
+ decoration: InputDecoration(
+ labelText: l.breqNote,
+ hintText: l.breqNoteHint,
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
+ ),
+ ),
+ const SizedBox(height: 4),
+ ],
+ SizedBox(
+ width: double.infinity,
+ child: FilledButton(
+ onPressed: kinds.any((k) => mustPick(k, libraries[k]))
+ ? null
+ : () => Navigator.pop(ctx, (libraries: Map.of(libraries), note: noteCtrl.text)),
+ child: Text(pair ? l.breqRequestBoth : l.breqRequest),
+ ),
+ ),
+ ]),
+ );
+ },
+ ),
+ ).whenComplete(() => WidgetsBinding.instance.addPostFrameCallback((_) => noteCtrl.dispose()));
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ super.build(context);
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final works = groupRequestResults(_results, _kind);
+
+ InputDecoration field(String label) => InputDecoration(
+ labelText: label,
+ isDense: true,
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
+ );
+
+ return ListView(padding: const EdgeInsets.fromLTRB(16, 16, 16, 32), children: [
+ TextField(
+ controller: _titleCtrl,
+ decoration: field(l.breqTitleHint),
+ textInputAction: TextInputAction.search,
+ onSubmitted: (_) => _runSearch(),
+ ),
+ const SizedBox(height: 8),
+ TextField(
+ controller: _authorCtrl,
+ decoration: field(l.breqAuthorHint),
+ textInputAction: TextInputAction.search,
+ onSubmitted: (_) => _runSearch(),
+ ),
+ const SizedBox(height: 10),
+ SegmentedButton<String>(
+ showSelectedIcon: false,
+ segments: [
+ for (final k in widget.access.mediaKinds) ButtonSegment(value: k, label: Text(_kindLabel(l, k))),
+ ],
+ selected: {_kind},
+ onSelectionChanged: (s) {
+ setState(() => _kind = s.first);
+ // Ownership and earlier requests are per kind.
+ if (_searched) _runSearch();
+ },
+ ),
+ const SizedBox(height: 10),
+ SizedBox(
+ width: double.infinity,
+ child: FilledButton.icon(
+ onPressed: _runSearch,
+ icon: _streaming
+ ? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))
+ : const Icon(Icons.search_rounded, size: 18),
+ label: Text(_streaming ? l.breqSearching : l.breqSearch),
+ ),
+ ),
+ const SizedBox(height: 16),
+ if (_failed)
+ Text(l.breqSearchFailed, style: tt.bodySmall?.copyWith(color: cs.error))
+ else if (!_searched)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 24),
+ child: Text(l.breqSearchPrompt,
+ textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ )
+ else if (!_streaming && works.isEmpty)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 24),
+ child: Text(l.breqNoResults,
+ textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ ),
+ for (final work in works) _workRow(context, work),
+ ]);
+ }
+
+ /// A format's state as a tag, or null while nothing is known about it.
+ Widget? _availabilityTag(AppLocalizations l, ColorScheme cs, BookRequestAvailability? a, {String? kind}) {
+ if (a == null) return null;
+ String label(String text) => kind == null ? text : '${_kindLabel(l, kind)} · $text';
+ if (a.ownedBookId != null) return _tag(label(l.breqInLibrary), Colors.green);
+ if (a.alreadySubscribed) return _tag(label(l.breqYouAsked), cs.primary);
+ if (a.existingRequestId != null) return _tag(label(kind == null ? l.breqSomeoneAsked : l.breqRequested), Colors.orange);
+ return null;
+ }
+
+ Widget _singleAction(AppLocalizations l, BookRequestWork work, BookRequestAvailability? a) {
+ if (a?.ownedBookId != null) {
+ return TextButton(
+ onPressed: () => showBookDetailSheet(context, '${a!.ownedBookId}'),
+ child: Text(l.breqView),
+ );
+ }
+ if (a?.alreadySubscribed == true) return FilledButton.tonal(onPressed: null, child: Text(l.breqRequested));
+ if (a?.existingRequestId != null) {
+ return FilledButton.tonal(
+ onPressed: () => _request(work, _kind, join: true),
+ child: Text(l.breqAddMeToo),
+ );
+ }
+ return FilledButton(
+ onPressed: () => _request(work, _kind, join: false),
+ child: Text(l.breqRequest),
+ );
+ }
+
+ /// Both formats at once when both are open; just the missing one when the
+ /// other is owned (it joins that book) or already asked for by this user.
+ Widget _pairAction(AppLocalizations l, BookRequestWork work, BookRequestAvailability? e, BookRequestAvailability? a) {
+ bool open(BookRequestAvailability? x) => x?.ownedBookId == null && x?.alreadySubscribed != true;
+ final eOpen = open(e);
+ final aOpen = open(a);
+ if (!eOpen && !aOpen) {
+ final owned = a?.ownedBookId ?? e?.ownedBookId;
+ if (e?.ownedBookId != null && a?.ownedBookId != null && owned != null) {
+ return TextButton(onPressed: () => showBookDetailSheet(context, '$owned'), child: Text(l.breqView));
+ }
+ return FilledButton.tonal(onPressed: null, child: Text(l.breqRequested));
+ }
+ if (eOpen && aOpen) {
+ final joinBoth = e?.existingRequestId != null && a?.existingRequestId != null;
+ return FilledButton(
+ onPressed: () => _requestPair(work, join: joinBoth),
+ child: Text(joinBoth ? l.breqAddMeToBoth : l.breqRequestBoth),
+ );
+ }
+ final kind = eOpen ? 'ebook' : 'audiobook';
+ final half = eOpen ? e : a;
+ final other = eOpen ? a : e;
+ final join = half?.existingRequestId != null;
+ final label = join
+ ? (kind == 'ebook' ? l.breqAddMeEbook : l.breqAddMeAudiobook)
+ : (kind == 'ebook' ? l.breqRequestEbook : l.breqRequestAudiobook);
+ return FilledButton(
+ onPressed: () => _request(work, kind, join: join, targetBookId: other?.ownedBookId),
+ child: Text(label),
+ );
+ }
+
+ Widget _workRow(BuildContext context, BookRequestWork work) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final busy = _busy.contains(work.key);
+ final pair = _kind == 'both';
+ final line = [
+ if (work.authors.isNotEmpty) work.authors.join(', '),
+ if (work.year != null) '${work.year}',
+ ].join(' · ');
+
+ final List<Widget> tags;
+ final Widget action;
+ if (pair) {
+ final e = _availabilityOf(work, 'ebook');
+ final a = _availabilityOf(work, 'audiobook');
+ tags = [
+ ?_availabilityTag(l, cs, e, kind: 'ebook'),
+ ?_availabilityTag(l, cs, a, kind: 'audiobook'),
+ ];
+ action = _pairAction(l, work, e, a);
+ } else {
+ final a = _availabilityOf(work, _kind);
+ tags = [?_availabilityTag(l, cs, a)];
+ action = _singleAction(l, work, a);
+ }
+
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: Container(
+ padding: const EdgeInsets.all(10),
+ decoration: BoxDecoration(color: cs.surfaceContainerHigh, borderRadius: BorderRadius.circular(12)),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.end, children: [
+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ _cover(context, work.coverUrl),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(work.title, maxLines: 2, overflow: TextOverflow.ellipsis,
+ style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
+ if (line.isNotEmpty)
+ Text(line, maxLines: 1, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ Text(work.providers.map(_providerLabel).join(', '),
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant.withValues(alpha: 0.8))),
+ if (tags.isNotEmpty) ...[
+ const SizedBox(height: 6),
+ Wrap(spacing: 4, runSpacing: 4, children: tags),
+ ],
+ ]),
+ ),
+ ]),
+ const SizedBox(height: 6),
+ busy
+ ? const Padding(
+ padding: EdgeInsets.all(8),
+ child: SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2)),
+ )
+ : action,
+ ]),
+ ),
+ );
+ }
+}
+
+class _RequestList extends StatefulWidget {
+ final ApiService api;
+ final BookRequestAccess access;
+ final bool all;
+ final List<_Library> libraries;
+ final Map<String, int> defaults;
+ final VoidCallback onChanged;
+
+ const _RequestList({
+ super.key,
+ required this.api,
+ required this.access,
+ required this.all,
+ required this.libraries,
+ required this.defaults,
+ required this.onChanged,
+ });
+
+ @override
+ State<_RequestList> createState() => _RequestListState();
+}
+
+class _RequestListState extends State<_RequestList> with AutomaticKeepAliveClientMixin {
+ static const _pageSize = 25;
+
+ List<BookRequest> _items = [];
+ int _total = 0;
+ int _pages = 1;
+ bool _loading = true;
+ bool _failed = false;
+ bool _loadingMore = false;
+ bool _showHidden = false;
+ Timer? _poll;
+ int _generation = 0;
+ final Set<int> _busy = {};
+
+ @override
+ bool get wantKeepAlive => true;
+
+ @override
+ void initState() {
+ super.initState();
+ reload();
+ }
+
+ @override
+ void dispose() {
+ _poll?.cancel();
+ super.dispose();
+ }
+
+ String? get _myId => context.read<AuthProvider>().userId;
+
+ /// Fetches again. [quiet] keeps what's on screen until the answer is in.
+ Future<void> reload({bool quiet = false}) async {
+ final generation = ++_generation;
+ if (!quiet) {
+ setState(() {
+ _loading = true;
+ _failed = false;
+ });
+ }
+ // A quiet refresh covers everything already loaded, in one go.
+ final limit = quiet ? math.min(100, math.max(_pageSize, _items.length)) : _pageSize;
+ final page = await widget.api.bookRequests(
+ all: widget.all,
+ limit: limit,
+ includeDismissed: _showHidden,
+ );
+ if (!mounted || generation != _generation) return;
+ setState(() {
+ _loading = false;
+ if (page == null) {
+ if (!quiet) _failed = true;
+ } else {
+ _items = page.items;
+ _total = page.total;
+ _pages = (page.items.length / _pageSize).ceil().clamp(1, 1 << 20);
+ }
+ });
+ _schedulePoll();
+ }
+
+ Future<void> _loadMore() async {
+ setState(() => _loadingMore = true);
+ final generation = _generation;
+ final page = await widget.api.bookRequests(
+ all: widget.all,
+ page: _pages + 1,
+ limit: _pageSize,
+ includeDismissed: _showHidden,
+ );
+ if (!mounted || generation != _generation) return;
+ setState(() {
+ _loadingMore = false;
+ if (page != null) {
+ final seen = {for (final r in _items) r.id};
+ _items = [..._items, ...page.items.where((r) => !seen.contains(r.id))];
+ _total = page.total;
+ _pages++;
+ }
+ });
+ }
+
+ /// BookOrbit moves downloads along by itself, so while one is moving the
+ /// list checks back now and then.
+ void _schedulePoll() {
+ _poll?.cancel();
+ if (!_items.any((r) => isBookRequestWorking(r.status))) return;
+ _poll = Timer(const Duration(seconds: 8), () {
+ if (mounted) reload(quiet: true);
+ });
+ }
+
+ void _replace(BookRequest updated) {
+ final i = _items.indexWhere((r) => r.id == updated.id);
+ if (i >= 0) _items[i] = updated;
+ }
+
+ /// Runs [action] after any confirming it needs, and returns the request as
+ /// it stands afterwards, or null when nothing changed.
+ Future<BookRequest?> _act(BookRequest r, BookRequestAction action) async {
+ final l = AppLocalizations.of(context)!;
+ String? note;
+ int? libraryId;
+ switch (action) {
+ case BookRequestAction.cancel:
+ if (!await _confirm(l.breqCancel, l.breqCancelConfirm, l.breqCancel)) return null;
+ case BookRequestAction.delete:
+ if (!await _confirm(l.breqDelete, l.breqDeleteConfirm, l.delete)) return null;
+ case BookRequestAction.discardImport:
+ if (!await _confirm(l.breqDiscardImport, l.breqDiscardConfirm, l.breqDiscardImport)) return null;
+ case BookRequestAction.stopDownload:
+ if (!await _confirm(l.breqStopDownload, l.breqStopDownloadConfirm, l.breqStopDownload)) return null;
+ case BookRequestAction.reject:
+ final reason = await _rejectReason();
+ if (reason == null) return null;
+ note = reason;
+ case BookRequestAction.approve:
+ if (r.targetLibraryId == null && !widget.defaults.containsKey(r.mediaKind)) {
+ final picked = await _pickLibrary(r);
+ if (picked == null) return null;
+ libraryId = picked;
+ }
+ default:
+ break;
+ }
+ if (!mounted) return null;
+ setState(() => _busy.add(r.id));
+ final res = await widget.api.bookRequestAction(
+ r.id,
+ action,
+ note: note,
+ libraryId: libraryId,
+ downloadId: r.download?.id,
+ );
+ if (!mounted) return null;
+ setState(() {
+ _busy.remove(r.id);
+ if (!res.ok) return;
+ final updated = res.request;
+ final gone = action == BookRequestAction.delete ||
+ action == BookRequestAction.leave ||
+ (action == BookRequestAction.dismiss && !_showHidden);
+ if (gone) {
+ _items.removeWhere((x) => x.id == r.id);
+ if (_total > 0) _total--;
+ } else if (updated != null) {
+ _replace(updated);
+ }
+ });
+ if (res.ok) {
+ widget.onChanged();
+ _schedulePoll();
+ }
+ final done = switch (action) {
+ BookRequestAction.cancel => l.breqCancelledToast,
+ BookRequestAction.dismiss => l.breqHiddenToast,
+ BookRequestAction.restore => l.breqRestoredToast,
+ BookRequestAction.leave => l.breqLeftToast,
+ BookRequestAction.approve => l.breqApprovedToast,
+ BookRequestAction.reject => l.breqRejectedToast,
+ BookRequestAction.delete => l.breqDeletedToast,
+ BookRequestAction.forceFile => l.breqFiledToast,
+ BookRequestAction.discardImport => l.breqDiscardedToast,
+ BookRequestAction.stopDownload => l.breqStoppedToast,
+ };
+ showOverlayToast(
+ context,
+ res.ok ? done : (res.error != null ? l.breqActionFailedReason(res.error!) : l.breqActionFailed),
+ icon: res.ok ? Icons.check_circle_outline_rounded : Icons.error_outline_rounded,
+ );
+ return res.ok ? (res.request ?? r) : null;
+ }
+
+ /// A manager works any request; someone allowed to download directly
+ /// works the ones that are theirs to fulfil.
+ bool _canFulfil(BookRequest r) =>
+ widget.access.canManage ||
+ (widget.access.selfFulfill && _myId != null && '${r.fulfillerUserId}' == _myId);
+
+ Future<void> _findRelease(BookRequest r) async {
+ final updated = await BookRequestReleaseScreen.open(context, widget.api, r);
+ if (!mounted || updated == null) return;
+ setState(() => _replace(updated));
+ widget.onChanged();
+ _schedulePoll();
+ }
+
+ Future<void> _approveAndFind(BookRequest r) async {
+ final approved = await _act(r, BookRequestAction.approve);
+ if (approved != null && mounted && canGrabBookRequest(approved.status)) await _findRelease(approved);
+ }
+
+ Future<void> _review(BookRequest r) async {
+ final action = await showBookRequestReview(context, widget.api, r);
+ if (action != null && mounted) await _act(r, action);
+ }
+
+ Future<bool> _confirm(String title, String body, String action) async {
+ final l = AppLocalizations.of(context)!;
+ final ok = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => AlertDialog(
+ title: Text(title),
+ content: Text(body),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),
+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(action)),
+ ],
+ ),
+ );
+ return ok == true;
+ }
+
+ Future<String?> _rejectReason() async {
+ final l = AppLocalizations.of(context)!;
+ final ctrl = TextEditingController();
+ final reason = await showDialog<String>(
+ context: context,
+ builder: (ctx) => AlertDialog(
+ title: Text(l.breqRejectTitle),
+ content: TextField(
+ controller: ctrl,
+ autofocus: true,
+ maxLength: 2000,
+ minLines: 1,
+ maxLines: 4,
+ decoration: InputDecoration(labelText: l.breqRejectReason),
+ ),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx), child: Text(l.cancel)),
+ TextButton(onPressed: () => Navigator.pop(ctx, ctrl.text), child: Text(l.breqReject)),
+ ],
+ ),
+ );
+ WidgetsBinding.instance.addPostFrameCallback((_) => ctrl.dispose());
+ return reason;
+ }
+
+ Future<int?> _pickLibrary(BookRequest r) async {
+ final l = AppLocalizations.of(context)!;
+ int? picked;
+ final ok = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => StatefulBuilder(
+ builder: (ctx, setDialog) => AlertDialog(
+ title: Text(l.breqApproveTitle),
+ content: Column(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(l.breqApproveLibraryNeeded),
+ const SizedBox(height: 14),
+ _libraryPicker(
+ context: ctx,
+ libraries: widget.libraries,
+ defaultId: null,
+ value: picked,
+ allowNone: false,
+ onChanged: (v) => setDialog(() => picked = v),
+ ),
+ ]),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),
+ TextButton(
+ onPressed: picked == null ? null : () => Navigator.pop(ctx, true),
+ child: Text(l.breqApprove),
+ ),
+ ],
+ ),
+ ),
+ );
+ return ok == true ? picked : null;
+ }
+
+ String _statusLabel(AppLocalizations l, String status) => switch (status) {
+ 'pending' => l.breqStatusPending,
+ 'approved' => l.breqStatusApproved,
+ 'rejected' => l.breqStatusRejected,
+ 'cancelled' => l.breqStatusCancelled,
+ 'searching' => l.breqStatusSearching,
+ 'grabbed' => l.breqStatusGrabbed,
+ 'downloading' => l.breqStatusDownloading,
+ 'importing' => l.breqStatusImporting,
+ 'needs_review' => l.breqStatusNeedsReview,
+ 'available' => l.breqStatusAvailable,
+ 'failed' => l.breqStatusFailed,
+ _ => status,
+ };
+
+ Color _statusColor(ColorScheme cs, String status) => switch (status) {
+ 'pending' || 'needs_review' => Colors.orange,
+ 'available' => Colors.green,
+ 'rejected' || 'failed' => cs.error,
+ 'cancelled' => cs.onSurfaceVariant,
+ _ => cs.primary,
+ };
+
+ String _outcome(AppLocalizations l, BookRequest r) => switch (r.status) {
+ 'pending' => l.breqWaitingApproval,
+ 'approved' => r.selfServe ? l.breqWaitingRelease : l.breqStatusApproved,
+ 'searching' => l.breqLookingForRelease,
+ 'grabbed' => l.breqStartingDownload,
+ 'downloading' => l.breqDownloadingPercent((r.download?.progressPercent ?? 0).round()),
+ 'importing' => l.breqAddingToLibrary,
+ 'needs_review' => l.breqWaitingCheck,
+ 'available' => r.targetLibraryName != null ? l.breqAddedTo(r.targetLibraryName!) : l.breqReady,
+ 'rejected' => r.decisionNote != null ? l.breqRejectedWithNote(r.decisionNote!) : l.breqStatusRejected,
+ 'cancelled' => l.breqStatusCancelled,
+ 'failed' => l.breqFailedWithReason(r.statusReason ?? r.download?.errorMessage ?? l.breqSomethingWrong),
+ _ => r.status,
+ };
+
+ String _age(AppLocalizations l, DateTime? at) {
+ if (at == null) return '';
+ final d = DateTime.now().difference(at);
+ if (d.inMinutes < 1) return l.justNow;
+ if (d.inHours < 1) return l.minutesAgo(d.inMinutes);
+ if (d.inDays < 1) return l.hoursAgo(d.inHours);
+ if (d.inDays < 30) return l.daysAgo(d.inDays);
+ return DateFormat.yMMMd().format(at);
+ }
+
+ bool _isMine(BookRequest r) => _myId != null && '${r.userId}' == _myId;
+ bool _following(BookRequest r) => _myId != null && r.subscribers.any((s) => '${s.userId}' == _myId);
+
+ @override
+ Widget build(BuildContext context) {
+ super.build(context);
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+
+ if (_loading) return const Center(child: CircularProgressIndicator(strokeWidth: 2));
+ if (_failed) {
+ return Center(
+ child: Column(mainAxisSize: MainAxisSize.min, children: [
+ Text(l.breqLoadFailed, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 8),
+ TextButton(onPressed: reload, child: Text(l.retry)),
+ ]),
+ );
+ }
+
+ return RefreshIndicator(
+ onRefresh: () => reload(quiet: true),
+ child: ListView(
+ physics: const AlwaysScrollableScrollPhysics(),
+ padding: const EdgeInsets.fromLTRB(16, 12, 16, 32),
+ children: [
+ Row(children: [
+ Expanded(
+ child: Text(l.breqCount(_total),
+ style: tt.labelLarge?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),
+ ),
+ if (!widget.all)
+ FilterChip(
+ label: Text(l.breqShowHidden),
+ selected: _showHidden,
+ onSelected: (v) {
+ setState(() => _showHidden = v);
+ reload();
+ },
+ ),
+ ]),
+ const SizedBox(height: 8),
+ if (_items.isEmpty)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 40),
+ child: Text(widget.all ? l.breqAllEmpty : l.breqMineEmpty,
+ textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ ),
+ for (final r in _items) _row(context, r),
+ if (_items.length < _total)
+ Center(
+ child: _loadingMore
+ ? const Padding(
+ padding: EdgeInsets.all(12),
+ child: SizedBox(width: 22, height: 22, child: CircularProgressIndicator(strokeWidth: 2)),
+ )
+ : TextButton(onPressed: _loadMore, child: Text(l.breqLoadMore)),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _row(BuildContext context, BookRequest r) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final busy = _busy.contains(r.id);
+ final downloading = r.status == 'downloading' && r.download != null;
+ final pendingForManager = widget.all && widget.access.canManage && r.status == 'pending';
+ final grabbable = _canFulfil(r) && canGrabBookRequest(r.status);
+ final reviewable = _canFulfil(r) && r.status == 'needs_review';
+
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: Material(
+ color: cs.surfaceContainerHigh,
+ borderRadius: BorderRadius.circular(12),
+ clipBehavior: Clip.antiAlias,
+ child: InkWell(
+ onTap: () => _openDetail(r),
+ child: Padding(
+ padding: const EdgeInsets.all(10),
+ child: Column(children: [
+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ _cover(context, r.coverUrl, width: 44),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(r.title, maxLines: 2, overflow: TextOverflow.ellipsis,
+ style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
+ if (r.authors.isNotEmpty)
+ Text(r.authors.join(', '), maxLines: 1, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 6),
+ Wrap(spacing: 6, runSpacing: 4, crossAxisAlignment: WrapCrossAlignment.center, children: [
+ _tag(_statusLabel(l, r.status), _statusColor(cs, r.status)),
+ _tag(_kindLabel(l, r.mediaKind), cs.onSurfaceVariant),
+ if (r.dismissed) _tag(l.breqHidden, cs.onSurfaceVariant),
+ Text(_age(l, r.createdAt), style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ ]),
+ const SizedBox(height: 4),
+ if (downloading)
+ Padding(
+ padding: const EdgeInsets.only(top: 2, bottom: 2),
+ child: LinearProgressIndicator(
+ value: r.download!.progressPercent / 100,
+ minHeight: 4,
+ borderRadius: BorderRadius.circular(2),
+ ),
+ ),
+ Text(_outcome(l, r), maxLines: 2, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(
+ color: r.status == 'failed' ? cs.error : cs.onSurfaceVariant)),
+ if (widget.all && r.requester.isNotEmpty)
+ Text(l.breqRequestedBy(r.requester),
+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ ]),
+ ),
+ if (busy)
+ const Padding(
+ padding: EdgeInsets.only(left: 8),
+ child: SizedBox(width: 20, height: 20, child: CircularProgressIndicator(strokeWidth: 2)),
+ ),
+ ]),
+ if (!busy && (pendingForManager || grabbable || reviewable))
+ Padding(
+ padding: const EdgeInsets.only(top: 8),
+ child: Row(mainAxisAlignment: MainAxisAlignment.end, children: [
+ if (pendingForManager) ...[
+ TextButton(
+ onPressed: () => _act(r, BookRequestAction.reject),
+ child: Text(l.breqReject),
+ ),
+ const SizedBox(width: 8),
+ FilledButton(
+ onPressed: () => _act(r, BookRequestAction.approve),
+ child: Text(l.breqApprove),
+ ),
+ ] else if (reviewable)
+ FilledButton.tonal(
+ onPressed: () => _review(r),
+ child: Text(l.breqReviewButton),
+ )
+ else
+ FilledButton.tonal(
+ onPressed: () => _findRelease(r),
+ child: Text(r.status == 'failed' ? l.breqTryAnotherRelease : l.breqFindRelease),
+ ),
+ ]),
+ ),
+ ]),
+ ),
+ ),
+ ),
+ );
+ }
+
+ void _openDetail(BookRequest r) {
+ final l = AppLocalizations.of(context)!;
+ final mine = _isMine(r);
+ final manage = widget.access.canManage;
+ final actions = <({String label, IconData icon, VoidCallback run, bool danger})>[
+ if (r.status == 'available' && r.matchedBookId != null)
+ (
+ label: l.breqOpenBook,
+ icon: Icons.menu_book_rounded,
+ run: () => showBookDetailSheet(context, '${r.matchedBookId}'),
+ danger: false,
+ ),
+ if (manage && r.status == 'pending') ...[
+ (label: l.breqApprove, icon: Icons.check_rounded, run: () => _act(r, BookRequestAction.approve), danger: false),
+ (
+ label: l.breqApproveAndFind,
+ icon: Icons.manage_search_rounded,
+ run: () => _approveAndFind(r),
+ danger: false,
+ ),
+ (label: l.breqReject, icon: Icons.block_rounded, run: () => _act(r, BookRequestAction.reject), danger: true),
+ ],
+ if (_canFulfil(r) && canGrabBookRequest(r.status))
+ (
+ label: r.status == 'failed' ? l.breqTryAnotherRelease : l.breqFindRelease,
+ icon: Icons.manage_search_rounded,
+ run: () => _findRelease(r),
+ danger: false,
+ ),
+ if (_canFulfil(r) && r.status == 'needs_review')
+ (label: l.breqReviewButton, icon: Icons.fact_check_outlined, run: () => _review(r), danger: false),
+ if ((mine || _canFulfil(r)) &&
+ (r.status == 'grabbed' || r.status == 'downloading') &&
+ r.download?.id != null)
+ (
+ label: l.breqStopDownload,
+ icon: Icons.stop_circle_outlined,
+ run: () => _act(r, BookRequestAction.stopDownload),
+ danger: true,
+ ),
+ if (canCancelBookRequest(r.status) && (mine || manage))
+ (label: l.breqCancel, icon: Icons.cancel_outlined, run: () => _act(r, BookRequestAction.cancel), danger: true),
+ if (!widget.all && isSettledBookRequest(r.status))
+ r.dismissed
+ ? (label: l.breqUnhide, icon: Icons.visibility_rounded, run: () => _act(r, BookRequestAction.restore), danger: false)
+ : (label: l.breqHide, icon: Icons.visibility_off_rounded, run: () => _act(r, BookRequestAction.dismiss), danger: false),
+ if (!mine && _following(r))
+ (label: l.breqLeave, icon: Icons.logout_rounded, run: () => _act(r, BookRequestAction.leave), danger: false),
+ if (manage && isSettledBookRequest(r.status))
+ (label: l.breqDelete, icon: Icons.delete_outline_rounded, run: () => _act(r, BookRequestAction.delete), danger: true),
+ ];
+
+ showModalBottomSheet<void>(
+ context: context,
+ isScrollControlled: true,
+ useSafeArea: true,
+ builder: (ctx) {
+ final cs = Theme.of(ctx).colorScheme;
+ final tt = Theme.of(ctx).textTheme;
+ final others = [
+ for (final s in r.subscribers)
+ if (s.userId != r.userId && s.name.isNotEmpty) s.name,
+ ];
+ Widget fact(String label, String? value) => value == null || value.isEmpty
+ ? const SizedBox.shrink()
+ : Padding(
+ padding: const EdgeInsets.only(bottom: 10),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(label, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 2),
+ Text(value, style: tt.bodyMedium),
+ ]),
+ );
+ final series = r.seriesName == null
+ ? null
+ : r.seriesIndex == null
+ ? r.seriesName
+ : '${r.seriesName} #${r.seriesIndex}';
+ return DraggableScrollableSheet(
+ expand: false,
+ initialChildSize: 0.7,
+ maxChildSize: 0.95,
+ builder: (ctx, scroll) => ListView(controller: scroll, padding: const EdgeInsets.fromLTRB(20, 20, 20, 24), children: [
+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ _cover(ctx, r.coverUrl, width: 72),
+ const SizedBox(width: 14),
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(r.title, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),
+ if (r.subtitle != null)
+ Text(r.subtitle!, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ if (r.authors.isNotEmpty)
+ Text(r.authors.join(', '), style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 8),
+ Wrap(spacing: 6, runSpacing: 4, children: [
+ _tag(_statusLabel(l, r.status), _statusColor(cs, r.status)),
+ _tag(_kindLabel(l, r.mediaKind), cs.onSurfaceVariant),
+ ]),
+ ]),
+ ),
+ ]),
+ const SizedBox(height: 14),
+ if (r.status == 'downloading' && r.download != null) ...[
+ LinearProgressIndicator(
+ value: r.download!.progressPercent / 100,
+ minHeight: 5,
+ borderRadius: BorderRadius.circular(3),
+ ),
+ const SizedBox(height: 6),
+ ],
+ Text(_outcome(l, r),
+ style: tt.bodyMedium?.copyWith(color: r.status == 'failed' ? cs.error : cs.onSurface)),
+ const SizedBox(height: 16),
+ fact(l.breqFactRequestedBy, r.requester),
+ fact(l.breqFactRequestedOn,
+ r.createdAt == null ? null : DateFormat.yMMMd().add_jm().format(r.createdAt!)),
+ fact(l.breqFactLibrary, r.targetLibraryName),
+ fact(l.seriesLabel, series),
+ fact(l.isbnLabel, r.isbn),
+ fact(l.breqFactDecidedBy, r.decidedBy),
+ fact(l.breqFactNote, r.note),
+ fact(l.breqFactDecisionNote, r.decisionNote),
+ fact(l.breqFactAlsoWanted, others.isEmpty ? null : others.join(', ')),
+ if (actions.isNotEmpty) ...[
+ const Divider(height: 24),
+ for (final a in actions)
+ ListTile(
+ contentPadding: EdgeInsets.zero,
+ leading: Icon(a.icon, color: a.danger ? cs.error : cs.primary),
+ title: Text(a.label, style: TextStyle(color: a.danger ? cs.error : null)),
+ onTap: () {
+ Navigator.pop(ctx);
+ a.run();
+ },
+ ),
+ ],
+ ]),
+ );
+ },
+ );
+ }
+}
diff --git a/lib/screens/library_screen.dart b/lib/screens/library_screen.dart
index 493805d6..f8874ee6 100644
--- a/lib/screens/library_screen.dart
+++ b/lib/screens/library_screen.dart
@@ -31,6 +31,7 @@ import '../widgets/collection_detail_sheet.dart';
import '../widgets/playlist_detail_sheet.dart';
import 'admin_podcasts_screen.dart';
import 'app_shell.dart';
+import 'book_requests_screen.dart';
import 'upcoming_releases_screen.dart';
import '../widgets/audible_series_sheet.dart' show showAudibleRegionPicker;
import '../widgets/books_sheet_shared.dart' show coverGridCount, CoverGridScope;
@@ -553,7 +554,22 @@ class LibraryScreenState extends State<LibraryScreen>
if (mounted) AppShell.notifyScreenReady(1);
});
_loadRmabConfigured();
+ _loadBookRequests();
SocketService().addAuthorsChangedListener(_onAuthorsChanged);
+ SocketService().addItemRemovedListener(_onItemRemoved);
+ }
+
+ // A book deleted on the server or added to a library out of Book Dock
+ // leaves the grid right away, without reloading it.
+ void _onItemRemoved(Map<String, dynamic> data) {
+ final id = data['id'];
+ if (!mounted || id is! String) return;
+ final index = _items.indexWhere((i) => !i.containsKey('collapsedSeries') && i['id'] == id);
+ if (index < 0) return;
+ setState(() {
+ _items.removeAt(index);
+ if (_totalItems > 0) _totalItems--;
+ });
}
// Live-refresh the authors tab when authors change on the server (edits,
@@ -594,6 +610,21 @@ class LibraryScreenState extends State<LibraryScreen>
});
}
+ // BookOrbit's own requests, offered in place of ReadMeABook when the
+ // account can use them.
+ bool _bookRequestsOn = false;
+
+ Future<void> _loadBookRequests() async {
+ final api = context.read<AuthProvider>().apiService;
+ final on = api != null && (await api.bookRequestAccess()).canRequest;
+ if (mounted && on != _bookRequestsOn) setState(() => _bookRequestsOn = on);
+ }
+
+ void _openBookRequests() {
+ final q = _searchController.text.trim();
+ BookRequestsScreen.open(context, query: q);
+ }
+
Future<void> _loadRmabConfigured() async {
final base = await ScopedPrefs.getString(kRmabBaseUrlKey);
final token = await ScopedPrefs.getString(kRmabApiTokenKey);
@@ -647,6 +678,7 @@ class LibraryScreenState extends State<LibraryScreen>
lib.selectedLibraryId != null) {
_lastLibraryId = lib.selectedLibraryId;
_loadGeneration++;
+ _loadBookRequests();
// Cover shape and subtitles can differ per library.
PlayerSettings.getRectangleCoversFor(lib.selectedLibraryId).then((v) {
if (mounted && v != _rectangleCovers)
@@ -1082,6 +1114,7 @@ class LibraryScreenState extends State<LibraryScreen>
@override
void dispose() {
SocketService().removeAuthorsChangedListener(_onAuthorsChanged);
+ SocketService().removeItemRemovedListener(_onItemRemoved);
_authorsRefreshDebounce?.cancel();
_debounce?.cancel();
_searchController.dispose();
@@ -3951,7 +3984,8 @@ class LibraryScreenState extends State<LibraryScreen>
_searchEpisodeResults.isEmpty &&
_searchTagResults.isEmpty &&
_searchGenreResults.isEmpty) {
- final showRmabCta = _rmabConfigured && !libProv.isPodcastLibrary;
+ final showBookRequestCta = _bookRequestsOn && !libProv.isPodcastLibrary;
+ final showRmabCta = !showBookRequestCta && _rmabConfigured && !libProv.isPodcastLibrary;
return CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
@@ -3983,6 +4017,13 @@ class LibraryScreenState extends State<LibraryScreen>
),
onPressed: _openPodcastLookup,
),
+ ] else if (showBookRequestCta) ...[
+ const SizedBox(height: 20),
+ OutlinedButton.icon(
+ icon: const Icon(Icons.playlist_add_rounded, size: 18),
+ label: Text(l.breqLibraryCta),
+ onPressed: _openBookRequests,
+ ),
] else if (showRmabCta) ...[
const SizedBox(height: 20),
OutlinedButton.icon(
@@ -4211,7 +4252,7 @@ class LibraryScreenState extends State<LibraryScreen>
),
],
// ─── RMAB FOOTER (when results exist + RMAB configured) ───
- if (showPodcastLookup || (_rmabConfigured && !isPodcast)) ...[
+ if (showPodcastLookup || ((_bookRequestsOn || _rmabConfigured) && !isPodcast)) ...[
Padding(
padding: const EdgeInsets.only(top: 28),
child: Divider(color: cs.outlineVariant.withValues(alpha: 0.4)),
@@ -4229,6 +4270,8 @@ class LibraryScreenState extends State<LibraryScreen>
borderRadius: BorderRadius.circular(10),
onTap: showPodcastLookup
? _openPodcastLookup
+ : _bookRequestsOn
+ ? _openBookRequests
: () {
final q = _searchController.text.trim();
debugPrint('[RMAB] library footer CTA tapped (query="$q")');
@@ -4241,6 +4284,8 @@ class LibraryScreenState extends State<LibraryScreen>
Icon(
showPodcastLookup
? Icons.podcasts_rounded
+ : _bookRequestsOn
+ ? Icons.playlist_add_rounded
: Icons.menu_book_rounded,
size: 20,
color: cs.primary,
@@ -4252,6 +4297,8 @@ class LibraryScreenState extends State<LibraryScreen>
? l.adminPodcastsSearchItunesFor(
_searchController.text.trim(),
)
+ : _bookRequestsOn
+ ? l.breqFooterCta(_searchController.text.trim())
: l.rmabSearchFooterCta(
_searchController.text.trim(),
),
diff --git a/lib/screens/login_screen.dart b/lib/screens/login_screen.dart
index e29bc5e9..b07bd050 100644
--- a/lib/screens/login_screen.dart
+++ b/lib/screens/login_screen.dart
@@ -293,6 +293,18 @@ class _LoginScreenState extends State<LoginScreen>
Future<void> _handleLogin() async {
final apiKey = _apiKeyController.text.trim();
+ // A magic link carries its server, so an empty address can come from it.
+ final linkServer = _backend.isBookOrbit && _serverController.text.trim().isEmpty
+ ? BookOrbitApiService.serverFromMagicLink(apiKey)
+ : null;
+ if (linkServer != null) {
+ setState(() {
+ _protocol = '${linkServer.scheme}://';
+ _serverController.text = linkServer.toString().replaceFirst(RegExp(r'^https?://'), '');
+ _serverValid = false;
+ });
+ }
+
// Skip form validation when an API key is supplied — the username
// field's required-validator would otherwise block the submit.
if (apiKey.isEmpty && !_formKey.currentState!.validate()) return;
diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart
index b0da4060..eedb7301 100644
--- a/lib/screens/settings_screen.dart
+++ b/lib/screens/settings_screen.dart
@@ -27,6 +27,7 @@ import '../widgets/update_dialog.dart';
import '../widgets/nav_hold_options.dart';
import '../widgets/now_playing_text_sheet.dart';
import '../screens/admin_screen.dart';
+import '../screens/book_requests_screen.dart';
import '../screens/downloads_screen.dart';
import '../screens/bookmarks_screen.dart';
import '../screens/backup_sync_screen.dart';
@@ -203,6 +204,13 @@ class _SettingsScreenState extends State<SettingsScreen> {
bool _trustAllCerts = false;
bool _includePreReleases = false;
String? _rmabBaseUrl;
+ bool _bookRequestsOn = false;
+
+ Future<void> _loadBookRequests() async {
+ final api = context.read<AuthProvider>().apiService;
+ final on = api != null && (await api.bookRequestAccess()).canRequest;
+ if (mounted && on != _bookRequestsOn) setState(() => _bookRequestsOn = on);
+ }
String? _rmabApiToken;
bool _loaded = false;
int _adminIssueCount = 0;
@@ -249,6 +257,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
super.initState();
_localServerController = TextEditingController();
_loadSettings();
+ _loadBookRequests();
_loadAdminIssueCount();
_refreshSyncStatus();
SocketService().addItemsChangedListener(_onServerItemsChanged);
@@ -517,6 +526,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
for (final lib in libraries)
if ((lib['id'] as String?)?.isNotEmpty == true) lib['id'] as String,
],
+ bookRequests: context.read<AuthProvider>().apiService?.isBookOrbit == true,
);
final validIds = ids.toSet();
final podcastTab = await PlayerSettings.getPodcastTabEnabled();
@@ -4379,6 +4389,17 @@ class _SettingsScreenState extends State<SettingsScreen> {
} : null,
),
],
+ if (_bookRequestsOn) ...[
+ const Divider(height: 1, indent: 16, endIndent: 16),
+ ListTile(
+ leading: Icon(Icons.playlist_add_rounded, color: cs.primary),
+ title: Text(l.breqTitle),
+ subtitle: Text(l.breqSettingsSubtitle,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ trailing: Icon(Icons.chevron_right_rounded, color: cs.onSurfaceVariant.withValues(alpha: 0.5)),
+ onTap: () => BookRequestsScreen.open(context, openList: true),
+ ),
+ ],
const Divider(height: 1, indent: 16, endIndent: 16),
ListTile(
leading: Icon(Icons.menu_book_rounded, color: cs.primary),
diff --git a/lib/services/android_auto_service.dart b/lib/services/android_auto_service.dart
index 3cf70697..34de4e20 100644
--- a/lib/services/android_auto_service.dart
+++ b/lib/services/android_auto_service.dart
@@ -649,6 +649,7 @@ class AndroidAutoService {
debugPrint('[AutoBrowse] getLibraries empty - treating as offline');
return;
}
+ // BookOrbit's Book Dock holds files waiting to be filed, nothing to play.
_libraries = libs.map((l) {
final m = l as Map<String, dynamic>;
return AutoLibraryEntry(
@@ -656,7 +657,9 @@ class AndroidAutoService {
name: m['name'] as String? ?? 'Library',
mediaType: m['mediaType'] as String? ?? 'book',
);
- }).where((l) => l.id.isNotEmpty && (l.isBook || l.isPodcast)).toList();
+ }).where((l) => l.id.isNotEmpty &&
+ l.id != ApiService.bookDockLibraryId &&
+ (l.isBook || l.isPodcast)).toList();
// ── Personalized shelves merged from all libraries ──
// Book libraries: continue-listening / continue-series for the Continue
diff --git a/lib/services/api_service.dart b/lib/services/api_service.dart
index 4a3e0767..59ae7e41 100644
--- a/lib/services/api_service.dart
+++ b/lib/services/api_service.dart
@@ -6,6 +6,9 @@ import 'package:http/http.dart' as http;
import 'package:shared_preferences/shared_preferences.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'auth_tokens.dart';
+import 'book_dock.dart';
+import 'book_requests.dart';
+import 'bookorbit_match.dart';
import 'bookorbit_mapper.dart';
import 'bookorbit_media_proxy_stub.dart'
if (dart.library.io) 'bookorbit_media_proxy.dart';
@@ -405,6 +408,106 @@ class ApiService {
/// BookOrbit has this; Audiobookshelf collections are always shared.
Future<bool> setCollectionPublic(String collectionId, bool isPublic) async => false;
+ /// BookOrbit's Book Dock (its import inbox) shows as a library with this
+ /// id for accounts allowed to use it. Its items are dock files, not books:
+ /// they can be edited, filed into a real library or removed, not played.
+ static const bookDockLibraryId = 'book-dock';
+ static bool isBookDockItem(String itemId) => itemId.startsWith('dock-');
+
+ /// The library folders a dock file can be filed into; empty when this
+ /// account may not add books to a library.
+ Future<List<BookDockDestination>> bookDockDestinations() async => const [];
+
+ /// File dock item [itemId] into [destination].
+ Future<BookDockFileResult> fileBookDockItem(
+ String itemId, BookDockDestination destination) async =>
+ const BookDockFileResult(success: false);
+
+ /// Remove a dock item and its file from the server.
+ Future<bool> removeBookDockItem(String itemId) async => false;
+
+ /// Copy the details the server found online over the dock item's own.
+ Future<bool> useFoundBookDockDetails(String itemId) async => false;
+
+ /// Ask the server to look the dock item's details up online again.
+ Future<bool> lookUpBookDockDetails(String itemId) async => false;
+
+ /// BookOrbit's metadata search over every source it has turned on, as
+ /// results arrive. Empty on Audiobookshelf.
+ Stream<MatchSearchEvent> searchMatches(
+ String itemId, {
+ String? title,
+ String? author,
+ String? isbn,
+ bool? isAudiobook,
+ String? mediaKind,
+ List<String>? mediaKinds,
+ }) =>
+ const Stream.empty();
+
+ /// What the account may do with BookOrbit book requests. Nothing on
+ /// Audiobookshelf.
+ Future<BookRequestAccess> bookRequestAccess() async => BookRequestAccess.none;
+
+ /// One page of the account's own requests, or everyone's with [all].
+ Future<({List<BookRequest> items, int total})?> bookRequests({
+ bool all = false,
+ int page = 1,
+ int limit = 25,
+ bool includeDismissed = false,
+ }) async =>
+ null;
+
+ /// Whether each record is already in a library or asked for, in order.
+ Future<List<BookRequestAvailability?>> bookRequestAvailability(
+ List<MatchCandidate> records,
+ String mediaKind,
+ ) async =>
+ [for (final _ in records) null];
+
+ Future<BookRequestSubmitResult> submitBookRequest(Map<String, dynamic> body) async =>
+ const BookRequestSubmitResult();
+
+ /// Asks for the e-book and the audiobook together, on servers whose
+ /// [BookRequestAccess.pairs] is set.
+ Future<BookRequestPairResult> submitBookRequestPair(Map<String, dynamic> body) async =>
+ const BookRequestPairResult();
+
+ Future<({bool ok, BookRequest? request, String? error})> bookRequestAction(
+ int id,
+ BookRequestAction action, {
+ String? note,
+ int? libraryId,
+ int? downloadId,
+ }) async =>
+ (ok: false, request: null, error: null);
+
+ /// Releases the indexers offer for request [id]. [terms] searches with
+ /// other words than the request's own; a null ISBN searches by title and
+ /// author.
+ Future<({BookRequestReleases? releases, String? error})> bookRequestReleases(
+ int id, {
+ bool refresh = false,
+ ({String title, String author, String? isbn})? terms,
+ }) async =>
+ (releases: null, error: null);
+
+ /// What a release holds. 'no_supported_file' means nothing in it can be
+ /// filed into a library.
+ Future<({String? status, String? error})> inspectBookRequestRelease(int id, int indexerId, String guid) async =>
+ (status: null, error: null);
+
+ /// Sends the picked release to the download client.
+ Future<({BookRequest? request, String? error})> grabBookRequestRelease(int id, int indexerId, String guid) async =>
+ (request: null, error: null);
+
+ /// Why a downloaded request is waiting for a manual check.
+ Future<({BookRequestReview? review, String? error})> bookRequestReview(int id) async =>
+ (review: null, error: null);
+
+ /// The library each kind of request lands in when nobody picks one.
+ Future<Map<String, int>> bookRequestDefaultLibraries() async => const {};
+
/// Current access token (for external use like cover URLs, socket auth).
String get token => _accessToken;
diff --git a/lib/services/book_dock.dart b/lib/services/book_dock.dart
new file mode 100644
index 00000000..2b46ce38
--- /dev/null
+++ b/lib/services/book_dock.dart
@@ -0,0 +1,129 @@
+/// Where a BookOrbit Book Dock file can be filed: one folder of one library.
+class BookDockDestination {
+ final String libraryId;
+ final String libraryName;
+ final String folderId;
+ final String folderName;
+
+ const BookDockDestination({
+ required this.libraryId,
+ required this.libraryName,
+ required this.folderId,
+ required this.folderName,
+ });
+}
+
+/// What filing a dock file into a library did.
+class BookDockFileResult {
+ final bool success;
+
+ /// The library already holds a file with this name, so nothing was added.
+ final bool duplicate;
+
+ /// The server's own explanation when it did not file the book.
+ final String? message;
+
+ const BookDockFileResult({required this.success, this.duplicate = false, this.message});
+}
+
+/// One field filing would change: [from] is what the file says, null when
+/// it says nothing.
+class BookDockChange {
+ final String field;
+ final String? from;
+ final String to;
+
+ const BookDockChange({required this.field, this.from, required this.to});
+}
+
+/// One file of a multi-file dock entry.
+class BookDockUnitFile {
+ final String fileName;
+ final int? fileSize;
+ final String? role;
+
+ const BookDockUnitFile({required this.fileName, this.fileSize, this.role});
+}
+
+/// The dock-only part of a dock item (`item['bookDock']`), null for books.
+/// Mirrors what BookOrbit's web Book Dock shows for a file.
+class BookDockInfo {
+ final String status;
+ final String fileName;
+ final String? format;
+ final int? fileSize;
+ final String? errorMessage;
+ final bool hasFoundDetails;
+
+ /// 'edited' (details saved), 'fetched' (found online, not applied),
+ /// 'embedded' (only what the file says) or 'none'.
+ final String detailsState;
+
+ /// How well the details found online match the file, 0-100.
+ final int? confidence;
+ final String? targetLibraryId;
+ final String? targetFolderId;
+ final int? addedAt;
+ final List<BookDockUnitFile> unitFiles;
+ final List<BookDockChange> changes;
+
+ const BookDockInfo({
+ required this.status,
+ required this.fileName,
+ this.format,
+ this.fileSize,
+ this.errorMessage,
+ this.hasFoundDetails = false,
+ this.detailsState = 'none',
+ this.confidence,
+ this.targetLibraryId,
+ this.targetFolderId,
+ this.addedAt,
+ this.unitFiles = const [],
+ this.changes = const [],
+ });
+
+ /// BookOrbit's web asks for a review below this match.
+ static const reviewBelow = 70;
+
+ /// Still extracting or looking up details on the server.
+ bool get isWorking => status == 'pending' || status == 'extracting' || status == 'fetching';
+
+ bool get hasDestination => targetLibraryId != null && targetFolderId != null;
+
+ bool get hasMatch => confidence != null && confidence! > 0;
+
+ /// The web's "Needs review": ready, but no destination or a weak match.
+ bool get needsReview =>
+ status == 'ready' && (!hasDestination || (confidence != null && confidence! < reviewBelow));
+
+ static BookDockInfo? of(Map<String, dynamic>? item) {
+ final d = item?['bookDock'];
+ if (d is! Map) return null;
+ return BookDockInfo(
+ status: '${d['status'] ?? ''}',
+ fileName: '${d['fileName'] ?? ''}',
+ format: d['format'] as String?,
+ fileSize: (d['fileSize'] as num?)?.toInt(),
+ errorMessage: d['errorMessage'] as String?,
+ hasFoundDetails: d['hasFoundDetails'] == true,
+ detailsState: '${d['detailsState'] ?? 'none'}',
+ confidence: (d['confidence'] as num?)?.toInt(),
+ targetLibraryId: d['targetLibraryId'] as String?,
+ targetFolderId: d['targetFolderId'] as String?,
+ addedAt: (d['addedAt'] as num?)?.toInt(),
+ unitFiles: [
+ for (final u in (d['unitFiles'] as List? ?? const []).whereType<Map>())
+ BookDockUnitFile(
+ fileName: '${u['fileName'] ?? ''}',
+ fileSize: (u['fileSize'] as num?)?.toInt(),
+ role: u['role'] as String?,
+ ),
+ ],
+ changes: [
+ for (final c in (d['changes'] as List? ?? const []).whereType<Map>())
+ BookDockChange(field: '${c['field']}', from: c['from'] as String?, to: '${c['to'] ?? ''}'),
+ ],
+ );
+ }
+}
diff --git a/lib/services/book_requests.dart b/lib/services/book_requests.dart
new file mode 100644
index 00000000..fca597af
--- /dev/null
+++ b/lib/services/book_requests.dart
@@ -0,0 +1,619 @@
+/// BookOrbit book requests: what a request looks like, and how search
+/// results become one. Follows BookOrbit's web client
+/// (client/src/features/book-requests) and its shared types
+/// (packages/types/src/book-request.ts).
+library;
+
+import 'bookorbit_match.dart';
+
+const bookRequestMediaKinds = ['audiobook', 'ebook', 'comic'];
+
+/// What a server from BookOrbit 3.4 on offers instead: comics count as
+/// e-books there, and 'both' asks for the e-book and the audiobook together.
+const bookRequestPairMediaKinds = ['audiobook', 'ebook', 'both'];
+
+/// Statuses a request can still be cancelled from.
+bool canCancelBookRequest(String status) => !const {'rejected', 'cancelled', 'available'}.contains(status);
+
+/// Finished one way or another; only these can be hidden or deleted.
+bool isSettledBookRequest(String status) =>
+ const {'rejected', 'cancelled', 'available', 'failed'}.contains(status);
+
+/// The server is moving these along by itself, so a list showing one is
+/// worth refreshing.
+bool isBookRequestWorking(String status) =>
+ const {'searching', 'grabbed', 'downloading', 'importing'}.contains(status);
+
+class BookRequestAccess {
+ final bool canRequest;
+ final bool canManage;
+ final bool autoApprove;
+ final bool selfFulfill;
+
+ /// The server takes an e-book and audiobook request together, and no
+ /// longer takes comic requests (BookOrbit 3.4).
+ final bool pairs;
+
+ const BookRequestAccess({
+ this.canRequest = false,
+ this.canManage = false,
+ this.autoApprove = false,
+ this.selfFulfill = false,
+ this.pairs = false,
+ });
+
+ List<String> get mediaKinds => pairs ? bookRequestPairMediaKinds : bookRequestMediaKinds;
+
+ static const none = BookRequestAccess();
+}
+
+class BookRequestDownload {
+ final int? id;
+ final String status;
+ final double progressPercent;
+ final String releaseTitle;
+ final String? errorMessage;
+
+ const BookRequestDownload({
+ this.id,
+ required this.status,
+ required this.progressPercent,
+ required this.releaseTitle,
+ this.errorMessage,
+ });
+
+ static BookRequestDownload? fromJson(Object? json) {
+ if (json is! Map) return null;
+ return BookRequestDownload(
+ id: (json['id'] as num?)?.toInt(),
+ status: '${json['status'] ?? ''}',
+ progressPercent: ((json['progressPercent'] as num?) ?? 0).toDouble().clamp(0, 100),
+ releaseTitle: '${json['releaseTitle'] ?? ''}',
+ errorMessage: _text(json['errorMessage']),
+ );
+ }
+}
+
+class BookRequest {
+ final Map<String, dynamic> raw;
+ const BookRequest(this.raw);
+
+ int get id => (raw['id'] as num).toInt();
+ int? get userId => (raw['userId'] as num?)?.toInt();
+ String get requester => _text(raw['requesterName']) ?? _text(raw['requesterUsername']) ?? '';
+ String get mediaKind => '${raw['mediaKind'] ?? ''}';
+ String get status => '${raw['status'] ?? ''}';
+ String get title => _text(raw['title']) ?? '';
+ String? get subtitle => _text(raw['subtitle']);
+ List<String> get authors => [
+ for (final a in (raw['authors'] as List? ?? const []))
+ if ('$a'.trim().isNotEmpty) '$a'.trim(),
+ ];
+ String? get seriesName => _text(raw['seriesName']);
+ num? get seriesIndex => raw['seriesIndex'] as num?;
+ String? get isbn => _text(raw['isbn13']) ?? _text(raw['isbn10']);
+ int? get publishedYear => (raw['publishedYear'] as num?)?.toInt();
+ String? get coverUrl => _text(raw['coverUrl']);
+ int? get targetLibraryId => (raw['targetLibraryId'] as num?)?.toInt();
+ String? get targetLibraryName => _text(raw['targetLibraryName']);
+ String? get decidedBy => _text(raw['decidedByUsername']);
+ DateTime? get decidedAt => _date(raw['decidedAt']);
+ String? get decisionNote => _text(raw['decisionNote']);
+ String? get note => _text(raw['note']);
+ int? get matchedBookId => (raw['matchedBookId'] as num?)?.toInt();
+
+ /// The other half when the e-book and audiobook were asked for together.
+ int? get companionRequestId => (raw['companionRequestId'] as num?)?.toInt();
+
+ /// Who picks the release: the self-serve user who took it on, else the
+ /// requester.
+ int? get fulfillerUserId => (raw['fulfillerUserId'] as num?)?.toInt() ?? userId;
+ bool get selfServe => raw['selfServe'] == true;
+ String? get statusReason => _text(raw['statusReason']);
+ String? get failureCode => _text(raw['failureCode']);
+ bool get dismissed => raw['dismissed'] == true;
+ DateTime? get createdAt => _date(raw['createdAt']);
+ DateTime? get updatedAt => _date(raw['updatedAt']);
+ BookRequestDownload? get download => BookRequestDownload.fromJson(raw['download']);
+ List<({int userId, String name})> get subscribers => [
+ for (final s in (raw['subscribers'] as List? ?? const []).whereType<Map>())
+ if (s['userId'] is num)
+ (userId: (s['userId'] as num).toInt(), name: _text(s['name']) ?? _text(s['username']) ?? ''),
+ ];
+}
+
+class BookRequestAvailability {
+ final int? ownedBookId;
+ final int? existingRequestId;
+ final String? existingRequestStatus;
+ final bool alreadySubscribed;
+
+ const BookRequestAvailability({
+ this.ownedBookId,
+ this.existingRequestId,
+ this.existingRequestStatus,
+ this.alreadySubscribed = false,
+ });
+
+ static BookRequestAvailability? fromJson(Object? json) {
+ if (json is! Map) return null;
+ return BookRequestAvailability(
+ ownedBookId: (json['ownedBookId'] as num?)?.toInt(),
+ existingRequestId: (json['existingRequestId'] as num?)?.toInt(),
+ existingRequestStatus: _text(json['existingRequestStatus']),
+ alreadySubscribed: json['alreadySubscribed'] == true,
+ );
+ }
+
+ /// One answer for a work from the answers for its records.
+ static BookRequestAvailability? merge(Iterable<BookRequestAvailability?> all) {
+ final known = all.whereType<BookRequestAvailability>().toList();
+ if (known.isEmpty) return null;
+ BookRequestAvailability? requested;
+ for (final a in known) {
+ if (a.existingRequestId != null) {
+ requested = a;
+ break;
+ }
+ }
+ int? owned;
+ for (final a in known) {
+ if (a.ownedBookId != null) {
+ owned = a.ownedBookId;
+ break;
+ }
+ }
+ return BookRequestAvailability(
+ ownedBookId: owned,
+ existingRequestId: requested?.existingRequestId,
+ existingRequestStatus: requested?.existingRequestStatus,
+ alreadySubscribed: known.any((a) => a.alreadySubscribed),
+ );
+ }
+}
+
+/// The outcome of asking for a book.
+class BookRequestSubmitResult {
+ final BookRequest? request;
+
+ /// The book was already asked for, so this added the user to that request.
+ final bool subscribed;
+ final String? error;
+
+ const BookRequestSubmitResult({this.request, this.subscribed = false, this.error});
+
+ bool get ok => request != null;
+
+ static BookRequestSubmitResult fromJson(Object? json) {
+ if (json is! Map || json['request'] is! Map || (json['request'] as Map)['id'] is! num) {
+ return const BookRequestSubmitResult();
+ }
+ return BookRequestSubmitResult(
+ request: BookRequest(Map<String, dynamic>.from(json['request'] as Map)),
+ subscribed: json['subscribed'] == true,
+ );
+ }
+}
+
+/// Both halves of an e-book and audiobook request made together.
+class BookRequestPairResult {
+ final BookRequestSubmitResult ebook;
+ final BookRequestSubmitResult audiobook;
+ final String? error;
+
+ const BookRequestPairResult({
+ this.ebook = const BookRequestSubmitResult(),
+ this.audiobook = const BookRequestSubmitResult(),
+ this.error,
+ });
+
+ bool get ok => ebook.ok && audiobook.ok;
+}
+
+enum BookRequestAction {
+ cancel,
+ dismiss,
+ restore,
+ leave,
+ approve,
+ reject,
+ delete,
+
+ /// File a held import into its library anyway.
+ forceFile,
+
+ /// Throw a held import away; the request fails and can be tried again.
+ discardImport,
+
+ /// Stop the running download; the request goes back to approved.
+ stopDownload,
+}
+
+/// Lowercase with common accents folded and everything but letters and
+/// digits dropped, like BookOrbit's `normalizeWorkToken`.
+String normalizeWorkToken(String value) => normalizeForMatch(value).replaceAll(' ', '');
+
+/// The key two records share when they describe the same work, the one
+/// BookOrbit folds requests on.
+String bookRequestWorkKey(String title, String? author, String mediaKind) {
+ final t = normalizeWorkToken(title);
+ return 'work:${t.isEmpty ? title.trim().toLowerCase() : t}:${normalizeWorkToken(author ?? '')}:$mediaKind';
+}
+
+String _digits(String? v) => (v ?? '').replaceAll(RegExp(r'[^0-9Xx]'), '').toUpperCase();
+
+bool _validIsbn13(String s) {
+ if (!RegExp(r'^\d{13}$').hasMatch(s)) return false;
+ var sum = 0;
+ for (var i = 0; i < 12; i++) {
+ sum += int.parse(s[i]) * (i.isEven ? 1 : 3);
+ }
+ return (10 - sum % 10) % 10 == int.parse(s[12]);
+}
+
+bool _validIsbn10(String s) {
+ if (!RegExp(r'^\d{9}[\dX]$').hasMatch(s)) return false;
+ var sum = 0;
+ for (var i = 0; i < 10; i++) {
+ sum += (s[i] == 'X' ? 10 : int.parse(s[i])) * (10 - i);
+ }
+ return sum % 11 == 0;
+}
+
+/// A valid ISBN-13 for the record, converting an ISBN-10 when that is all
+/// it has.
+String? canonicalRequestIsbn(String? isbn10, String? isbn13) {
+ final t = _digits(isbn13);
+ if (_validIsbn13(t)) return t;
+ final ten = _digits(isbn10);
+ if (!_validIsbn10(ten)) return null;
+ final core = '978${ten.substring(0, 9)}';
+ var sum = 0;
+ for (var i = 0; i < 12; i++) {
+ sum += int.parse(core[i]) * (i.isEven ? 1 : 3);
+ }
+ return '$core${(10 - sum % 10) % 10}';
+}
+
+/// Search results that describe the same work, shown as one row.
+class BookRequestWork {
+ final String key;
+ final List<MatchCandidate> records;
+ BookRequestAvailability? availability;
+
+ BookRequestWork(this.key, this.records);
+
+ /// The most complete record: cover, then ISBN, then a year.
+ MatchCandidate get best {
+ int score(MatchCandidate c) =>
+ (c.coverUrl.isNotEmpty ? 4 : 0) + (c.isbn13.isNotEmpty ? 2 : 0) + (c.year.isNotEmpty ? 1 : 0);
+ final sorted = [...records]..sort((a, b) => score(b) - score(a));
+ return sorted.first;
+ }
+
+ String get title => best.title;
+ List<String> get authors => best.authors;
+ String? get coverUrl {
+ for (final r in [best, ...records]) {
+ if (r.coverUrl.startsWith('http')) return r.coverUrl;
+ }
+ return null;
+ }
+
+ /// The earliest edition dates the work.
+ int? get year {
+ final years = [for (final r in records) int.tryParse(r.year)].whereType<int>();
+ return years.isEmpty ? null : years.reduce((a, b) => a < b ? a : b);
+ }
+
+ /// The ISBN most of the sources agree on.
+ String? get isbn {
+ final counts = <String, Set<String>>{};
+ for (final r in records) {
+ final i = canonicalRequestIsbn(r.isbn10, r.isbn13);
+ if (i != null) (counts[i] ??= {}).add(r.provider);
+ }
+ if (counts.isEmpty) return null;
+ final bestIsbn = canonicalRequestIsbn(best.isbn10, best.isbn13);
+ final ranked = counts.entries.toList()
+ ..sort((a, b) {
+ final byAgreement = b.value.length - a.value.length;
+ if (byAgreement != 0) return byAgreement;
+ return (a.key == bestIsbn ? 0 : 1) - (b.key == bestIsbn ? 0 : 1);
+ });
+ return ranked.first.key;
+ }
+
+ List<String> get providers => {for (final r in records) r.provider}.toList();
+}
+
+/// Search results grouped into works, in the order the works first arrived.
+List<BookRequestWork> groupRequestResults(List<MatchCandidate> results, String mediaKind) {
+ final byKey = <String, BookRequestWork>{};
+ for (final r in results) {
+ if (r.title.isEmpty) continue;
+ final key = bookRequestWorkKey(r.title, r.authors.isEmpty ? null : r.authors.first, mediaKind);
+ (byKey[key] ??= BookRequestWork(key, [])).records.add(r);
+ }
+ return byKey.values.toList();
+}
+
+String? _clip(String? v, int max) {
+ final s = v?.trim() ?? '';
+ if (s.isEmpty) return null;
+ return s.length > max ? s.substring(0, max) : s;
+}
+
+/// The body of `POST /book-requests` for [work]. BookOrbit refuses unknown
+/// fields, so only what its form sends goes in.
+Map<String, dynamic> bookRequestPayload(
+ BookRequestWork work,
+ String mediaKind, {
+ String Function(String provider)? providerLabel,
+ String? note,
+ int? libraryId,
+ int? targetBookId,
+}) {
+ final best = work.best;
+ final series = best.series.isEmpty ? null : best.series.first;
+ final index = double.tryParse(series?.index ?? '');
+ final year = work.year;
+ final cover = work.coverUrl;
+ return {
+ 'title': _clip(work.title, 500),
+ 'mediaKind': mediaKind,
+ if (_clip(best.subtitle, 500) != null) 'subtitle': _clip(best.subtitle, 500),
+ 'authors': [
+ for (final a in work.authors.take(50)) _clip(a, 255)!,
+ ],
+ if (_clip(series?.name, 500) != null) 'seriesName': _clip(series?.name, 500),
+ if (index != null && index >= 0) 'seriesIndex': index.truncate(),
+ if (work.isbn != null) 'isbn13': work.isbn,
+ if (year != null && year >= 0 && year <= 9999) 'publishedYear': year,
+ if (_clip(best.provider, 50) != null) 'providerKey': _clip(best.provider, 50),
+ if (_clip(best.providerId, 255) != null) 'providerId': _clip(best.providerId, 255),
+ if (cover != null && cover.length <= 2048) 'coverUrl': cover,
+ 'metadataSources': [
+ for (final r in work.records.take(20))
+ if (r.provider.isNotEmpty && r.providerId.isNotEmpty)
+ {
+ 'providerKey': _clip(r.provider, 50),
+ 'providerId': _clip(r.providerId, 255),
+ 'providerLabel': _clip(providerLabel?.call(r.provider) ?? r.provider, 100) ?? r.provider,
+ 'isbn10': _clip(r.isbn10, 20),
+ 'isbn13': _clip(r.isbn13, 20),
+ },
+ ],
+ if (_clip(note, 2000) != null) 'note': _clip(note, 2000),
+ 'targetLibraryId': ?libraryId,
+ // Joins a book that already has the other format. Only servers that take
+ // pairs know this field.
+ 'targetBookId': ?targetBookId,
+ };
+}
+
+/// The body of `POST /book-requests/pairs`: the work once, and the library
+/// each format goes to.
+Map<String, dynamic> bookRequestPairPayload(
+ BookRequestWork work, {
+ String Function(String provider)? providerLabel,
+ String? note,
+ int? ebookLibraryId,
+ int? audiobookLibraryId,
+}) {
+ final body = bookRequestPayload(work, 'ebook', providerLabel: providerLabel, note: note)
+ ..remove('mediaKind')
+ ..remove('targetLibraryId');
+ return {
+ ...body,
+ 'ebook': {'targetLibraryId': ?ebookLibraryId},
+ 'audiobook': {'targetLibraryId': ?audiobookLibraryId},
+ };
+}
+
+String? _text(Object? v) {
+ final s = v?.toString().trim() ?? '';
+ return s.isEmpty ? null : s;
+}
+
+DateTime? _date(Object? v) => v == null ? null : DateTime.tryParse('$v')?.toLocal();
+
+/// A release can be picked by hand from these.
+bool canGrabBookRequest(String status) => const {'approved', 'searching', 'failed'}.contains(status);
+
+class BookRequestReleaseReason {
+ final String code;
+ final int points;
+ final String? detail;
+
+ const BookRequestReleaseReason(this.code, this.points, this.detail);
+}
+
+/// One release an indexer offered for a request.
+class BookRequestRelease {
+ final Map<String, dynamic> raw;
+ const BookRequestRelease(this.raw);
+
+ int get indexerId => (raw['indexerId'] as num).toInt();
+ String get indexerName => _text(raw['indexerName']) ?? '';
+ String get guid => '${raw['guid'] ?? ''}';
+ String get title => _text(raw['title']) ?? '';
+ int? get sizeBytes => (raw['sizeBytes'] as num?)?.toInt();
+ int? get seeders => (raw['seeders'] as num?)?.toInt();
+ int? get leechers => (raw['leechers'] as num?)?.toInt();
+ List<String> get formats {
+ final all = [
+ for (final f in (raw['formats'] as List? ?? const []))
+ if ('$f'.trim().isNotEmpty) '$f'.trim(),
+ ];
+ final primary = _text(raw['format']);
+ if (all.isEmpty && primary != null) return [primary];
+ return all;
+ }
+
+ String? get language => _text(raw['language']);
+ int? get fileCount => (raw['fileCount'] as num?)?.toInt();
+ bool get freeleech => raw['freeleech'] == true;
+ bool get vipOnly => raw['vipOnly'] == true;
+ bool get alreadyGrabbed => raw['alreadyGrabbed'] == true;
+ DateTime? get publishedAt => _date(raw['publishedAt']);
+ int? get bitrateKbps => ((raw['audio'] as Map?)?['bitrateKbps'] as num?)?.round();
+ double get score => ((raw['score'] as num?) ?? 0).toDouble();
+ int? get tier => (raw['tier'] as num?)?.toInt();
+ String? get tierName => _text(raw['tierName']);
+ List<BookRequestReleaseReason> get reasons => [
+ for (final r in (raw['reasons'] as List? ?? const []).whereType<Map>())
+ BookRequestReleaseReason('${r['code'] ?? ''}', ((r['points'] as num?) ?? 0).round(), _text(r['detail'])),
+ ];
+}
+
+class BookRequestIndexerStatus {
+ final String name;
+ final bool ok;
+ final int count;
+ final String? failure;
+
+ const BookRequestIndexerStatus({required this.name, required this.ok, required this.count, this.failure});
+}
+
+/// What a release search found, and what it searched for.
+class BookRequestReleases {
+ final List<BookRequestRelease> releases;
+ final List<BookRequestIndexerStatus> indexers;
+ final int enabledIndexers;
+ final int configuredIndexers;
+ final int uncoveredIndexers;
+ final bool cached;
+ final String title;
+ final List<String> authors;
+ final String? isbn;
+
+ const BookRequestReleases({
+ required this.releases,
+ required this.indexers,
+ required this.enabledIndexers,
+ required this.configuredIndexers,
+ required this.uncoveredIndexers,
+ required this.cached,
+ required this.title,
+ required this.authors,
+ this.isbn,
+ });
+
+ static BookRequestReleases fromJson(Map<String, dynamic> json) {
+ final criteria = (json['criteria'] as Map?) ?? const {};
+ return BookRequestReleases(
+ releases: [
+ for (final r in (json['releases'] as List? ?? const []).whereType<Map>())
+ if (r['indexerId'] is num && '${r['guid'] ?? ''}'.isNotEmpty) BookRequestRelease(Map<String, dynamic>.from(r)),
+ ],
+ indexers: [
+ for (final i in (json['indexers'] as List? ?? const []).whereType<Map>())
+ BookRequestIndexerStatus(
+ name: _text(i['indexerName']) ?? '',
+ ok: i['ok'] == true,
+ count: ((i['count'] as num?) ?? 0).toInt(),
+ failure: _text(i['failure']),
+ ),
+ ],
+ enabledIndexers: ((json['enabledIndexerCount'] as num?) ?? 0).toInt(),
+ configuredIndexers: ((json['configuredIndexerCount'] as num?) ?? 0).toInt(),
+ uncoveredIndexers: ((json['uncoveredIndexerCount'] as num?) ?? 0).toInt(),
+ cached: json['cached'] == true,
+ title: _text(criteria['title']) ?? '',
+ authors: [
+ for (final a in (criteria['authors'] as List? ?? const []))
+ if ('$a'.trim().isNotEmpty) '$a'.trim(),
+ ],
+ isbn: _text(criteria['activeIsbn']),
+ );
+ }
+}
+
+enum BookRequestReleaseSort { best, seeders, size, newest }
+
+/// Profile tier first (no tier last), then the chosen order, then score and
+/// seeders, the way BookOrbit's picker orders them.
+List<BookRequestRelease> sortBookRequestReleases(List<BookRequestRelease> releases, BookRequestReleaseSort sort) {
+ int byTier(int? a, int? b) {
+ if (a == b) return 0;
+ if (a == null) return 1;
+ if (b == null) return -1;
+ return a - b;
+ }
+
+ double orderOf(BookRequestRelease r) => switch (sort) {
+ BookRequestReleaseSort.seeders => (r.seeders ?? -1).toDouble(),
+ BookRequestReleaseSort.size => (r.sizeBytes ?? -1).toDouble(),
+ BookRequestReleaseSort.newest => (r.publishedAt?.millisecondsSinceEpoch ?? -1).toDouble(),
+ BookRequestReleaseSort.best => r.score,
+ };
+
+ return [...releases]..sort((a, b) {
+ final tier = byTier(a.tier, b.tier);
+ if (tier != 0) return tier;
+ final order = orderOf(b).compareTo(orderOf(a));
+ if (order != 0) return order;
+ final score = b.score.compareTo(a.score);
+ if (score != 0) return score;
+ return (b.seeders ?? -1).compareTo(a.seeders ?? -1);
+ });
+}
+
+/// Why an import is waiting on someone, and what landed.
+class BookRequestReview {
+ final int? score;
+ final int? threshold;
+ final List<({String field, String? requested, String? imported, String verdict})> rows;
+ final List<({String fileName, int? size, String? role})> files;
+ final int? totalSizeBytes;
+ final bool canFile;
+ final bool dockEntryGone;
+
+ const BookRequestReview({
+ this.score,
+ this.threshold,
+ this.rows = const [],
+ this.files = const [],
+ this.totalSizeBytes,
+ this.canFile = false,
+ this.dockEntryGone = false,
+ });
+
+ static BookRequestReview fromJson(Map<String, dynamic> json) {
+ final v = json['verification'] as Map?;
+ return BookRequestReview(
+ score: (v?['score'] as num?)?.round(),
+ threshold: (v?['threshold'] as num?)?.round(),
+ rows: [
+ for (final r in (v?['rows'] as List? ?? const []).whereType<Map>())
+ (
+ field: '${r['field'] ?? ''}',
+ requested: _text(r['requested']),
+ imported: _text(r['imported']),
+ verdict: '${r['verdict'] ?? 'unknown'}',
+ ),
+ ],
+ files: [
+ for (final f in (json['files'] as List? ?? const []).whereType<Map>())
+ (fileName: _text(f['fileName']) ?? '', size: (f['fileSize'] as num?)?.toInt(), role: _text(f['role'])),
+ ],
+ totalSizeBytes: (json['totalSizeBytes'] as num?)?.toInt(),
+ canFile: json['canFile'] == true,
+ dockEntryGone: json['bookDockFileId'] == null,
+ );
+ }
+}
+
+/// Bytes as the release lists show them.
+String formatReleaseSize(int? bytes) {
+ if (bytes == null || bytes < 0) return '';
+ const units = ['B', 'KB', 'MB', 'GB', 'TB'];
+ var value = bytes.toDouble();
+ var unit = 0;
+ while (value >= 1024 && unit < units.length - 1) {
+ value /= 1024;
+ unit++;
+ }
+ return unit == 0 ? '$bytes B' : '${value.toStringAsFixed(value >= 100 ? 0 : 1)} ${units[unit]}';
+}
diff --git a/lib/services/bookorbit_api_service.dart b/lib/services/bookorbit_api_service.dart
index 87890026..bb132d1f 100644
--- a/lib/services/bookorbit_api_service.dart
+++ b/lib/services/bookorbit_api_service.dart
@@ -3,9 +3,22 @@ part of 'api_service.dart';
class _BoHttpError implements Exception {
final int status;
final String message;
- _BoHttpError(this.status, this.message);
+ final String body;
+ _BoHttpError(this.status, this.message, [String? body]) : body = body ?? message;
@override
String toString() => 'BookOrbit HTTP $status: $message';
+
+ /// The reason in BookOrbit's error body, fit to show to the user.
+ String? get serverMessage {
+ try {
+ final decoded = jsonDecode(body);
+ if (decoded is! Map) return null;
+ final m = decoded['message'];
+ if (m is String && m.trim().isNotEmpty) return m.trim();
+ if (m is List && m.isNotEmpty) return m.join('\n');
+ } catch (_) {}
+ return null;
+ }
}
class _BoListenSession {
@@ -99,6 +112,8 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
static final Map<String, _BoTicket> _tickets = {};
static final Map<String, String> _assetByFile = {};
static final Map<String, String> _serverVersions = {};
+ // What each server says it can do, from /app-info `features`.
+ static final Map<String, Set<String>> _serverFeatures = {};
static List<Map<String, dynamic>>? _librariesCache;
static DateTime? _librariesAt;
static final Map<String, ({DateTime at, Future<Object?> value})> _recent = {};
@@ -140,6 +155,17 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
_librariesCache = null;
_librariesAt = null;
_recent.clear();
+ _serverVersions.clear();
+ _serverFeatures.clear();
+ }
+
+ Future<Set<String>> _features() async {
+ final origin = ApiService._originOf(_cleanBaseUrl) ?? _cleanBaseUrl;
+ if (!_serverFeatures.containsKey(origin)) {
+ _serverVersions.remove(origin);
+ await _fetchVersion(_cleanBaseUrl, _accessToken, customHeaders, client: _httpClient);
+ }
+ return _serverFeatures[origin] ?? const {};
}
@override
@@ -259,7 +285,9 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
static String _v1Of(String serverUrl) => '${normalizeServerUrl(serverUrl)}/api/v1';
/// A BookOrbit server answers its public login options with a JSON object
- /// carrying `passwordLoginEnabled`; nothing else does.
+ /// carrying `passwordLoginEnabled`; nothing else does. Which sign-in
+ /// methods are on doesn't matter here: a server with passwords off still
+ /// takes magic links, and this also answers the app's reachability pings.
static Future<({bool ok, String? detail})> probe(
String serverUrl, {
Map<String, String> customHeaders = const {},
@@ -275,10 +303,6 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
}
final data = jsonDecode(r.body);
if (data is Map && data.containsKey('passwordLoginEnabled')) {
- final sso = (data['oidcProviders'] as List<dynamic>? ?? const []).isNotEmpty;
- if (data['passwordLoginEnabled'] == false && !sso) {
- return (ok: false, detail: 'Password sign-in is turned off on this BookOrbit server.');
- }
return (ok: true, detail: null);
}
return (ok: false, detail: 'The server answered, but it does not look like BookOrbit.');
@@ -315,6 +339,9 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
.timeout(const Duration(seconds: 20));
if (r.statusCode != 200 && r.statusCode != 201) {
debugPrint('[BookOrbit] login failed: ${r.statusCode} ${r.body}');
+ if (r.statusCode == 403 && r.body.contains('password_auth_disabled')) {
+ return (<String, dynamic>{'bookOrbitPasswordOff': true}, 403);
+ }
return (null, r.statusCode);
}
final data = jsonDecode(r.body) as Map<String, dynamic>;
@@ -467,6 +494,27 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
return null;
}
+ /// The server a magic link points at (`https://host[/base]/magic?token=...`),
+ /// or null when [input] isn't such a link.
+ static Uri? serverFromMagicLink(String input) {
+ final uri = Uri.tryParse(input.trim());
+ if (uri == null ||
+ (uri.scheme != 'http' && uri.scheme != 'https') ||
+ uri.host.isEmpty ||
+ (uri.queryParameters['token'] ?? '').isEmpty) {
+ return null;
+ }
+ var path = uri.path;
+ if (path.endsWith('/')) path = path.substring(0, path.length - 1);
+ if (!path.endsWith('/magic')) return null;
+ return Uri(
+ scheme: uri.scheme,
+ host: uri.host,
+ port: uri.hasPort ? uri.port : null,
+ path: path.substring(0, path.length - '/magic'.length),
+ );
+ }
+
/// Sign in with a magic link and answer like [signIn].
static Future<(Map<String, dynamic>?, int)> signInWithMagicLink({
required String serverUrl,
@@ -506,18 +554,24 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
static Future<String?> _fetchVersion(
String serverUrl,
String accessToken,
- Map<String, String> customHeaders,
- ) async {
+ Map<String, String> customHeaders, {
+ http.Client? client,
+ }) async {
final origin = ApiService._originOf(serverUrl) ?? serverUrl;
final cached = _serverVersions[origin];
if (cached != null) return cached;
try {
- final r = await http.get(
+ final get = client?.get ?? http.get;
+ final r = await get(
Uri.parse('${_v1Of(serverUrl)}/app-info'),
headers: {...customHeaders, 'Authorization': 'Bearer $accessToken'},
).timeout(const Duration(seconds: 10));
if (r.statusCode == 200) {
- final v = (jsonDecode(r.body) as Map<String, dynamic>)['version'] as String?;
+ final info = jsonDecode(r.body) as Map<String, dynamic>;
+ _serverFeatures[origin] = {
+ for (final f in (info['features'] as List<dynamic>? ?? const [])) '$f',
+ };
+ final v = info['version'] as String?;
if (v != null && v.isNotEmpty) {
final label = 'BookOrbit ${v.startsWith('v') ? v.substring(1) : v}';
_serverVersions[origin] = label;
@@ -573,7 +627,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
dynamic _decode(http.Response r) {
if (r.statusCode < 200 || r.statusCode >= 300) {
- throw _BoHttpError(r.statusCode, r.body.length > 300 ? r.body.substring(0, 300) : r.body);
+ throw _BoHttpError(r.statusCode, r.body.length > 300 ? r.body.substring(0, 300) : r.body, r.body);
}
if (r.body.isEmpty) return null;
return jsonDecode(r.body);
@@ -733,8 +787,12 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
return _routeMe(method, s, q, body);
case 'libraries':
if (method != 'GET') return null;
- if (n == 2) return _json({'libraries': await _libraries()});
+ if (n == 2) {
+ final dock = await _dockLibrary();
+ return _json({'libraries': [...await _libraries(), if (dock != null) dock]});
+ }
final libId = at(2);
+ if (libId == ApiService.bookDockLibraryId) return _routeDockLibrary(n, at(3), q);
if (n == 3) {
final lib = (await _libraries()).firstWhere((l) => l['id'] == libId,
orElse: () => const <String, dynamic>{});
@@ -804,6 +862,9 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
}
return null;
case 'items':
+ if (n >= 3 && ApiService.isBookDockItem(at(2))) {
+ return _routeDockItem(method, at(2), n == 4 ? at(3) : '', n, body);
+ }
if (at(2) == 'batch' && at(3) == 'get' && method == 'POST') {
final ids = (body['libraryItemIds'] as List<dynamic>? ?? const []).map((e) => '$e').toList();
return _json({'libraryItems': await _itemsBatch(ids)});
@@ -946,8 +1007,40 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
return null;
}
+ // The signed-in account's BookOrbit permissions, read with /auth/me.
+ Set<String>? _permissions;
+ bool _superuser = false;
+
+ // Off when the user hid book requests in BookOrbit's settings.
+ bool _showBookRequests = true;
+
+ void _readPermissions(Map<String, dynamic> me) {
+ _permissions = {for (final p in (me['permissions'] as List<dynamic>? ?? const [])) '$p'};
+ _superuser = me['isSuperuser'] == true;
+ _showBookRequests = (me['settings'] as Map?)?['showBookRequests'] != false;
+ }
+
+ bool _hasPermission(String permission) {
+ final perms = _permissions;
+ if (perms == null) return false;
+ return _superuser || perms.contains('*') || perms.contains(permission);
+ }
+
+ Future<bool> _can(String permission) async {
+ if (_permissions == null) {
+ try {
+ _readPermissions(await _boGet('/auth/me') as Map<String, dynamic>);
+ } catch (e) {
+ debugPrint('[BookOrbit] Could not read permissions: $e');
+ return false;
+ }
+ }
+ return _hasPermission(permission);
+ }
+
Future<Map<String, dynamic>> _authorizePayload() async {
final raw = await _boGet('/auth/me') as Map<String, dynamic>;
+ _readPermissions(raw);
final version = await _fetchVersion(_cleanBaseUrl, _accessToken, customHeaders);
return {
'user': BookOrbitMapper.user(raw),
@@ -1062,6 +1155,9 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
Future<List<Map<String, dynamic>>> _itemsBatch(List<String> ids) async {
final jobs = ids.map((id) => () async {
try {
+ if (ApiService.isBookDockItem(id)) {
+ return BookOrbitMapper.dockItem(await _dockFile(_dockFileId(id)));
+ }
final detail = await _detail(id);
return BookOrbitMapper.item(detail: detail, manifest: _manifests[_key(id)]);
} catch (_) {
@@ -1891,6 +1987,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
/// one), which is what the cover editor wants.
@override
String getCoverUrl(String itemId, {int? width = 400, int? updatedAt, String? coverSlot}) {
+ if (ApiService.isBookDockItem(itemId)) return _dockCoverUrl(_dockFileId(itemId));
final kind = coverSlot == null && width != null && width <= 400 ? 'thumbnail' : 'cover';
final cv = _coverVersions[_key(itemId)];
final t = cv == null ? '' : '&t=${Uri.encodeQueryComponent(cv)}';
@@ -1980,6 +2077,346 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
return {'updated': true, 'libraryItem': await _afterEdit(bookId)};
}
+ // Book Dock: BookOrbit's import inbox, shown as one more library.
+
+ /// The cover URL picked for each dock file, by file id, from the last read.
+ final Map<String, String> _dockCovers = {};
+
+ String _dockFileId(String itemId) =>
+ itemId.substring(BookOrbitMapper.dockItemPrefix.length);
+
+ Future<Map<String, dynamic>?> _dockLibrary() async {
+ if (!await _can('book_dock_access')) return null;
+ return {
+ 'id': ApiService.bookDockLibraryId,
+ 'name': 'Book Dock',
+ 'displayOrder': 1 << 20,
+ 'icon': 'database',
+ 'mediaType': 'book',
+ 'provider': 'audible',
+ 'folders': const [],
+ 'settings': {'coverAspectRatio': 0},
+ 'bookDock': true,
+ };
+ }
+
+ void _rememberDockFile(Map<String, dynamic> file) {
+ final cover = BookOrbitMapper.dockMetadata(file)['coverUrl'];
+ final id = '${file['id']}';
+ if (cover is String && cover.startsWith('http')) {
+ _dockCovers[id] = cover;
+ } else {
+ _dockCovers.remove(id);
+ }
+ }
+
+ Future<Map<String, dynamic>> _dockFile(String fileId) async {
+ final file = await _boGet('/book-dock/files/$fileId') as Map<String, dynamic>;
+ _rememberDockFile(file);
+ return file;
+ }
+
+ /// A picked cover shows through BookOrbit's image proxy like on the web,
+ /// which needs edit rights; otherwise the cover read from the file.
+ String _dockCoverUrl(String fileId) {
+ final picked = _dockCovers[fileId];
+ if (picked != null && _hasPermission('library_edit_metadata')) {
+ return BookOrbitMediaProxy.instance
+ .urlFor('/api/v1/books/cover/proxy?url=${Uri.encodeQueryComponent(picked)}');
+ }
+ return BookOrbitMediaProxy.instance.urlFor('/api/v1/book-dock/files/$fileId/cover');
+ }
+
+ Future<Map<String, dynamic>> _dockItems(Map<String, String> q, {String? search}) async {
+ final page = int.tryParse(q['page'] ?? '') ?? 0;
+ final limit = (int.tryParse(q['limit'] ?? '') ?? 20).clamp(1, 100);
+ final desc = q['desc'] == '1';
+ final sort = switch (q['sort']) {
+ 'media.metadata.title' || 'media.metadata.titleIgnorePrefix' => 'fileName',
+ 'size' => 'fileSize',
+ _ => 'createdAt',
+ };
+ final res = await _boGet('/book-dock/files', {
+ 'page': page + 1,
+ 'limit': limit,
+ 'sort': sort,
+ 'order': desc ? 'desc' : 'asc',
+ if (search != null && search.trim().isNotEmpty) 'search': search.trim(),
+ }) as Map<String, dynamic>;
+ final items = <Map<String, dynamic>>[];
+ for (final f in (res['items'] as List<dynamic>? ?? const []).whereType<Map<String, dynamic>>()) {
+ _rememberDockFile(f);
+ items.add(BookOrbitMapper.dockItem(f));
+ }
+ return {
+ 'results': items,
+ 'total': res['total'] ?? items.length,
+ 'limit': limit,
+ 'page': page,
+ 'sortBy': q['sort'],
+ 'sortDesc': desc,
+ 'filterBy': q['filter'],
+ 'mediaType': 'book',
+ 'minified': q['minified'] != '0',
+ 'collapseseries': false,
+ 'include': '',
+ };
+ }
+
+ /// The dock library answers the library routes Absorb calls; the ones
+ /// with nothing behind them (series, authors, ...) answer empty.
+ Future<http.Response?> _routeDockLibrary(int n, String sub, Map<String, String> q) async {
+ final dock = await _dockLibrary();
+ if (dock == null) return _status(404, 'Book Dock is not available');
+ final emptyFilterData = <String, dynamic>{
+ 'authors': const [],
+ 'series': const [],
+ 'genres': const [],
+ 'tags': const [],
+ 'narrators': const [],
+ 'languages': const [],
+ 'publishers': const [],
+ 'publishedDecades': const [],
+ };
+ if (n == 3) {
+ return _json({
+ ...dock,
+ if ((q['include'] ?? '').contains('filterdata')) 'filterdata': emptyFilterData,
+ });
+ }
+ final page = int.tryParse(q['page'] ?? '') ?? 0;
+ final limit = int.tryParse(q['limit'] ?? '') ?? 20;
+ switch (sub) {
+ case 'items':
+ return _json(await _dockItems(q));
+ case 'personalized':
+ final recent = await _dockItems({'page': '0', 'limit': '20', 'desc': '1'});
+ final entities = recent['results'] as List<dynamic>;
+ return _json([
+ if (entities.isNotEmpty)
+ {
+ 'id': 'recently-added',
+ 'label': 'Recently Added',
+ 'labelStringKey': 'LabelRecentlyAdded',
+ 'type': 'book',
+ 'entities': entities,
+ 'total': entities.length,
+ },
+ ]);
+ case 'search':
+ final text = q['q'] ?? '';
+ final found = text.trim().isEmpty
+ ? const <dynamic>[]
+ : (await _dockItems({'limit': '${(int.tryParse(q['limit'] ?? '') ?? 25).clamp(1, 100)}'},
+ search: text))['results'] as List<dynamic>;
+ return _json({
+ 'book': [
+ for (final item in found)
+ {
+ 'libraryItem': item,
+ 'matchKey': 'title',
+ 'matchText': (((item as Map)['media'] as Map)['metadata'] as Map)['title'],
+ },
+ ],
+ 'podcast': const [],
+ 'series': const [],
+ 'authors': const [],
+ 'narrators': const [],
+ 'tags': const [],
+ 'genres': const [],
+ });
+ case 'filterdata':
+ return _json(emptyFilterData);
+ case 'series':
+ case 'collections':
+ case 'playlists':
+ return _json({'results': const [], 'total': 0, 'limit': limit, 'page': page});
+ case 'authors':
+ return _json(q.containsKey('page')
+ ? {'results': const [], 'total': 0, 'limit': limit, 'page': page}
+ : {'authors': const []});
+ case 'narrators':
+ return _json({'narrators': const []});
+ case 'stats':
+ final summary = await _boGet('/book-dock/summary') as Map<String, dynamic>;
+ return _json({
+ 'totalItems': summary['total'] ?? 0,
+ 'totalSize': 0,
+ 'totalDuration': 0,
+ 'numAudioFiles': 0,
+ 'numAudioTracks': 0,
+ 'totalAuthors': 0,
+ 'totalGenres': 0,
+ });
+ }
+ return null;
+ }
+
+ /// Item routes for a dock file: read, edit, pick a cover, apply what the
+ /// server found online, and discard. Anything else (play, chapters, ...)
+ /// waits until the file is in a library.
+ Future<http.Response?> _routeDockItem(
+ String method,
+ String itemId,
+ String sub,
+ int n,
+ Map<String, dynamic> body,
+ ) async {
+ final fileId = _dockFileId(itemId);
+ if (int.tryParse(fileId) == null) return _status(404, 'Book Dock file not found');
+ if (n == 3 && method == 'GET') return _json(BookOrbitMapper.dockItem(await _dockFile(fileId)));
+ if (n == 3 && method == 'DELETE') {
+ final ok = await removeBookDockItem(itemId);
+ return ok ? _json({'success': true}) : _status(500, 'Could not remove the file');
+ }
+ if (n == 4 && sub == 'media' && method == 'PATCH') {
+ final file = await _dockFile(fileId);
+ final next = BookOrbitMapper.dockMetadataPatch(
+ BookOrbitMapper.dockMetadata(file),
+ (body['metadata'] as Map?)?.cast<String, dynamic>() ?? const {},
+ );
+ return _json({'updated': true, 'libraryItem': await _saveDockMetadata(fileId, next)});
+ }
+ if (n == 4 && sub == 'cover' && method == 'POST') {
+ final url = _upstreamImageUrl('${body['url'] ?? ''}');
+ if (!url.startsWith('http')) return _status(400, 'No cover URL');
+ final file = await _dockFile(fileId);
+ await _saveDockMetadata(fileId, BookOrbitMapper.dockMetadata(file)..['coverUrl'] = url);
+ return _json({'success': true});
+ }
+ if (n == 4 && sub == 'match' && method == 'POST') {
+ final updated = await useFoundBookDockDetails(itemId);
+ return _json({
+ 'updated': updated,
+ 'libraryItem': BookOrbitMapper.dockItem(await _dockFile(fileId)),
+ });
+ }
+ return _status(409, 'This file is still in the Book Dock');
+ }
+
+ Future<Map<String, dynamic>> _saveDockMetadata(String fileId, Map<String, dynamic> metadata) async {
+ final file = await _boPatch('/book-dock/files/$fileId', {'selectedMetadata': metadata})
+ as Map<String, dynamic>;
+ _rememberDockFile(file);
+ final item = BookOrbitMapper.dockItem(file);
+ SocketService().emitLocalItemUpdated(item);
+ return item;
+ }
+
+ void _afterDockGone(String itemId) {
+ _dockCovers.remove(_dockFileId(itemId));
+ _recent.removeWhere((key, _) => key.startsWith('personalized:'));
+ SocketService().emitLocalItemRemoved({'id': itemId, 'libraryId': ApiService.bookDockLibraryId});
+ }
+
+ @override
+ Future<List<BookDockDestination>> bookDockDestinations() async {
+ try {
+ final caps = await _boGet('/uploads/capabilities') as Map<String, dynamic>;
+ if (caps['canUploadToLibrary'] != true) return const [];
+ final out = <BookDockDestination>[];
+ for (final lib in (caps['libraries'] as List<dynamic>? ?? const []).whereType<Map>()) {
+ for (final folder in (lib['folders'] as List<dynamic>? ?? const []).whereType<Map>()) {
+ out.add(BookDockDestination(
+ libraryId: '${lib['id']}',
+ libraryName: '${lib['name'] ?? ''}',
+ folderId: '${folder['id']}',
+ folderName: '${folder['name'] ?? ''}',
+ ));
+ }
+ }
+ return out;
+ } catch (e) {
+ debugPrint('[BookOrbit] Book Dock destinations: $e');
+ return const [];
+ }
+ }
+
+ @override
+ Future<BookDockFileResult> fileBookDockItem(String itemId, BookDockDestination destination) async {
+ final fileId = int.tryParse(_dockFileId(itemId));
+ final libraryId = int.tryParse(destination.libraryId);
+ final folderId = int.tryParse(destination.folderId);
+ if (fileId == null || libraryId == null || folderId == null) {
+ return const BookDockFileResult(success: false);
+ }
+ try {
+ // As an override: a file's own target would beat a default.
+ final res = await _boPost('/book-dock/finalize', {
+ 'fileIds': [fileId],
+ 'overrides': [
+ {'fileId': fileId, 'libraryId': libraryId, 'folderId': folderId},
+ ],
+ }, const Duration(minutes: 2)) as Map<String, dynamic>;
+ Map? result;
+ for (final r in (res['results'] as List<dynamic>? ?? const []).whereType<Map>()) {
+ if (r['fileId'] == fileId) result = r;
+ }
+ final ok = result?['success'] == true;
+ debugPrint('[BookOrbit] Book Dock file $fileId -> library $libraryId: '
+ '${ok ? 'filed as book ${result?['bookId']}' : 'not filed (${result?['message']})'}');
+ if (ok) {
+ _afterDockGone(itemId);
+ _recent.clear();
+ }
+ return BookDockFileResult(
+ success: ok,
+ duplicate: result?['isDuplicate'] == true,
+ message: result?['message'] as String?,
+ );
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] Book Dock finalize $fileId: ${e.status} ${e.message}');
+ return BookDockFileResult(success: false, message: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] Book Dock finalize $fileId: $e');
+ return const BookDockFileResult(success: false);
+ }
+ }
+
+ @override
+ Future<bool> removeBookDockItem(String itemId) async {
+ try {
+ await _boDelete('/book-dock/files/${_dockFileId(itemId)}');
+ _afterDockGone(itemId);
+ return true;
+ } catch (e) {
+ debugPrint('[BookOrbit] Book Dock discard $itemId: $e');
+ return false;
+ }
+ }
+
+ @override
+ Future<bool> lookUpBookDockDetails(String itemId) async {
+ try {
+ await _boPost('/book-dock/files/${_dockFileId(itemId)}/refetch-metadata', const <String, dynamic>{});
+ return true;
+ } catch (e) {
+ debugPrint('[BookOrbit] Book Dock look up again $itemId: $e');
+ return false;
+ }
+ }
+
+ @override
+ Future<bool> useFoundBookDockDetails(String itemId) async {
+ try {
+ final fileId = _dockFileId(itemId);
+ final file = await _dockFile(fileId);
+ final found = file['fetchedMetadata'];
+ if (found is! Map || found.isEmpty) return false;
+ await _saveDockMetadata(
+ fileId,
+ BookOrbitMapper.dockMergeFound(
+ BookOrbitMapper.dockMetadata(file),
+ Map<String, dynamic>.from(found),
+ ),
+ );
+ return true;
+ } catch (e) {
+ debugPrint('[BookOrbit] Book Dock use found details $itemId: $e');
+ return false;
+ }
+ }
+
/// Covers picked from a search come back through the proxy; BookOrbit
/// wants the original address.
String _upstreamImageUrl(String url) {
@@ -2004,6 +2441,10 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
@override
Future<bool> updateItemCoverUrl(String itemId, String url, {String? coverSlot}) async {
try {
+ if (ApiService.isBookDockItem(itemId)) {
+ final res = await _routeDockItem('POST', itemId, 'cover', 4, {'url': url});
+ return res?.statusCode == 200;
+ }
return (await _coverFromUrl(itemId, url, slot: coverSlot)).statusCode == 200;
} catch (e) {
debugPrint('[BookOrbit] updateItemCoverUrl error: $e');
@@ -2013,6 +2454,9 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
@override
Future<bool> removeItemCover(String itemId, {String? coverSlot}) async {
+ // A dock file's cover comes from the file or a picked URL; it is set at
+ // filing time, so there is nothing to remove yet.
+ if (ApiService.isBookDockItem(itemId)) return false;
try {
await _boDelete('/books/$itemId/cover?medium=${coverSlot ?? await _coverMedium(itemId)}');
await _afterEdit(itemId);
@@ -2025,6 +2469,7 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
@override
Future<bool> uploadItemCover(String itemId, String filePath, {String? coverSlot}) async {
+ if (ApiService.isBookDockItem(itemId)) return false;
try {
final bytes = await (await http.MultipartFile.fromPath('file', filePath)).finalize().toBytes();
await _boMultipart(
@@ -2340,6 +2785,341 @@ class BookOrbitApiService extends ApiService implements BookOrbitTokenSource {
}
}
+ @override
+ Future<BookRequestAccess> bookRequestAccess() async {
+ if (!await _can('book_request_access') || !_showBookRequests) return BookRequestAccess.none;
+ return BookRequestAccess(
+ canRequest: true,
+ canManage: _hasPermission('manage_book_requests'),
+ autoApprove: _hasPermission('book_request_auto_approve'),
+ selfFulfill: _hasPermission('book_request_self_fulfill'),
+ pairs: (await _features()).contains('book-request-pairs'),
+ );
+ }
+
+ @override
+ Future<({List<BookRequest> items, int total})?> bookRequests({
+ bool all = false,
+ int page = 1,
+ int limit = 25,
+ bool includeDismissed = false,
+ }) async {
+ try {
+ final res = await _boGet(all ? '/admin/book-requests' : '/book-requests', {
+ 'page': '$page',
+ 'limit': '$limit',
+ if (includeDismissed) 'includeDismissed': 'true',
+ }) as Map<String, dynamic>;
+ return (
+ items: [
+ for (final r in (res['items'] as List<dynamic>? ?? const []).whereType<Map>())
+ if (r['id'] is num) BookRequest(Map<String, dynamic>.from(r)),
+ ],
+ total: (res['total'] as num?)?.toInt() ?? 0,
+ );
+ } catch (e) {
+ debugPrint('[BookOrbit] book requests (all=$all page=$page): $e');
+ return null;
+ }
+ }
+
+ @override
+ Future<List<BookRequestAvailability?>> bookRequestAvailability(
+ List<MatchCandidate> records,
+ String mediaKind,
+ ) async {
+ String? clip(String v, int max) {
+ final s = v.trim();
+ if (s.isEmpty) return null;
+ return s.length > max ? s.substring(0, max) : s;
+ }
+ final out = <BookRequestAvailability?>[];
+ // The server takes at most 50 a time.
+ for (var start = 0; start < records.length; start += 50) {
+ final batch = records.sublist(start, math.min(start + 50, records.length));
+ try {
+ final res = await _boPost('/book-requests/availability', {
+ 'items': [
+ for (final c in batch)
+ {
+ 'title': clip(c.title, 500) ?? '?',
+ 'mediaKind': mediaKind,
+ if (c.authors.isNotEmpty) 'author': ?clip(c.authors.first, 255),
+ 'isbn13': ?clip(c.isbn13, 20),
+ 'providerKey': ?clip(c.provider, 50),
+ 'providerId': ?clip(c.providerId, 255),
+ },
+ ],
+ }) as List<dynamic>;
+ for (var i = 0; i < batch.length; i++) {
+ out.add(i < res.length ? BookRequestAvailability.fromJson(res[i]) : null);
+ }
+ } catch (e) {
+ debugPrint('[BookOrbit] request availability: $e');
+ out.addAll([for (final _ in batch) null]);
+ }
+ }
+ return out;
+ }
+
+ @override
+ Future<BookRequestSubmitResult> submitBookRequest(Map<String, dynamic> body) async {
+ try {
+ return BookRequestSubmitResult.fromJson(await _boPost('/book-requests', body));
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] book request refused: ${e.status} ${e.message}');
+ return BookRequestSubmitResult(error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] book request: $e');
+ return const BookRequestSubmitResult();
+ }
+ }
+
+ @override
+ Future<BookRequestPairResult> submitBookRequestPair(Map<String, dynamic> body) async {
+ try {
+ final res = await _boPost('/book-requests/pairs', body);
+ if (res is! Map) return const BookRequestPairResult();
+ return BookRequestPairResult(
+ ebook: BookRequestSubmitResult.fromJson(res['ebook']),
+ audiobook: BookRequestSubmitResult.fromJson(res['audiobook']),
+ );
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] paired book request refused: ${e.status} ${e.message}');
+ return BookRequestPairResult(error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] paired book request: $e');
+ return const BookRequestPairResult();
+ }
+ }
+
+ // Managers work any request through the admin routes; someone allowed to
+ // download directly works their own through the fulfilment twins.
+ Future<String> _fulfilBase() async =>
+ await _can('manage_book_requests') ? '/admin/book-requests' : '/book-request-fulfilment';
+
+ @override
+ Future<({BookRequestReleases? releases, String? error})> bookRequestReleases(
+ int id, {
+ bool refresh = false,
+ ({String title, String author, String? isbn})? terms,
+ }) async {
+ String? clip(String? v, int max) {
+ final s = v?.trim() ?? '';
+ if (s.isEmpty) return null;
+ return s.length > max ? s.substring(0, max) : s;
+ }
+ final base = await _fulfilBase();
+ // Every tracker is asked in turn, which can take most of a minute.
+ const wait = Duration(minutes: 3);
+ try {
+ final Object? res = terms == null
+ ? await _boGet('$base/$id/releases', {if (refresh) 'refresh': 'true'}, wait)
+ : await _boPost('$base/$id/releases/search', {
+ 'title': ?clip(terms.title, 500),
+ if (clip(terms.author, 255) != null) 'authors': [clip(terms.author, 255)],
+ 'isbn': clip(terms.isbn, 20),
+ }, wait);
+ if (res is! Map<String, dynamic>) return (releases: null, error: null);
+ return (releases: BookRequestReleases.fromJson(res), error: null);
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] releases for request $id: ${e.status} ${e.message}');
+ return (releases: null, error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] releases for request $id: $e');
+ return (releases: null, error: null);
+ }
+ }
+
+ @override
+ Future<({String? status, String? error})> inspectBookRequestRelease(int id, int indexerId, String guid) async {
+ final base = await _fulfilBase();
+ try {
+ final res = await _boPost('$base/$id/releases/inspect', {
+ 'indexerId': indexerId,
+ 'releaseGuid': guid,
+ }, const Duration(minutes: 1));
+ return (status: res is Map ? '${res['status'] ?? ''}' : null, error: null);
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] inspect release for request $id: ${e.status} ${e.message}');
+ return (status: null, error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] inspect release for request $id: $e');
+ return (status: null, error: null);
+ }
+ }
+
+ @override
+ Future<({BookRequest? request, String? error})> grabBookRequestRelease(int id, int indexerId, String guid) async {
+ final base = await _fulfilBase();
+ try {
+ final res = await _boPost('$base/$id/grab', {
+ 'indexerId': indexerId,
+ 'releaseGuid': guid,
+ }, const Duration(minutes: 2));
+ if (res is! Map || res['id'] is! num) return (request: null, error: null);
+ return (request: BookRequest(Map<String, dynamic>.from(res)), error: null);
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] grab for request $id: ${e.status} ${e.message}');
+ return (request: null, error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] grab for request $id: $e');
+ return (request: null, error: null);
+ }
+ }
+
+ @override
+ Future<({BookRequestReview? review, String? error})> bookRequestReview(int id) async {
+ final base = await _fulfilBase();
+ try {
+ final res = await _boGet('$base/$id/review');
+ if (res is! Map<String, dynamic>) return (review: null, error: null);
+ return (review: BookRequestReview.fromJson(res), error: null);
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] review for request $id: ${e.status} ${e.message}');
+ return (review: null, error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] review for request $id: $e');
+ return (review: null, error: null);
+ }
+ }
+
+ @override
+ Future<({bool ok, BookRequest? request, String? error})> bookRequestAction(
+ int id,
+ BookRequestAction action, {
+ String? note,
+ int? libraryId,
+ int? downloadId,
+ }) async {
+ final trimmed = note?.trim() ?? '';
+ final decision = trimmed.isEmpty
+ ? null
+ : trimmed.length > 2000
+ ? trimmed.substring(0, 2000)
+ : trimmed;
+ try {
+ final Object? res = switch (action) {
+ BookRequestAction.cancel => await _boPost('/book-requests/$id/cancel', const {}),
+ BookRequestAction.dismiss => await _boPost('/book-requests/$id/dismiss', const {}),
+ BookRequestAction.restore => await _boPost('/book-requests/$id/restore', const {}),
+ BookRequestAction.leave => await _boDelete('/book-requests/$id/subscription'),
+ BookRequestAction.approve => await _boPost('/admin/book-requests/$id/approve', {
+ 'decisionNote': ?decision,
+ 'targetLibraryId': ?libraryId,
+ }),
+ BookRequestAction.reject => await _boPost('/admin/book-requests/$id/reject', {
+ 'decisionNote': ?decision,
+ }),
+ BookRequestAction.delete => await _boDelete('/admin/book-requests/$id'),
+ BookRequestAction.forceFile =>
+ await _boPost('${await _fulfilBase()}/$id/force-file', const {}, const Duration(minutes: 2)),
+ BookRequestAction.discardImport => await _boPost('${await _fulfilBase()}/$id/discard-import', const {}),
+ BookRequestAction.stopDownload => downloadId == null
+ ? throw ArgumentError('stopDownload needs the download id')
+ : await _boPost('/book-requests/$id/downloads/$downloadId/cancel', const {}),
+ };
+ return (
+ ok: true,
+ request: res is Map && res['id'] is num ? BookRequest(Map<String, dynamic>.from(res)) : null,
+ error: null,
+ );
+ } on _BoHttpError catch (e) {
+ debugPrint('[BookOrbit] book request $id ${action.name}: ${e.status} ${e.message}');
+ return (ok: false, request: null, error: e.serverMessage);
+ } catch (e) {
+ debugPrint('[BookOrbit] book request $id ${action.name}: $e');
+ return (ok: false, request: null, error: null);
+ }
+ }
+
+ @override
+ Future<Map<String, int>> bookRequestDefaultLibraries() async {
+ try {
+ final res = await _boGet('/book-requests/default-destinations') as Map<String, dynamic>;
+ return {
+ for (final e in res.entries)
+ if (e.value is Map && (e.value as Map)['libraryId'] is num)
+ e.key: ((e.value as Map)['libraryId'] as num).toInt(),
+ };
+ } catch (e) {
+ debugPrint('[BookOrbit] request default libraries: $e');
+ return const {};
+ }
+ }
+
+ @override
+ Stream<MatchSearchEvent> searchMatches(
+ String itemId, {
+ String? title,
+ String? author,
+ String? isbn,
+ bool? isAudiobook,
+ String? mediaKind,
+ List<String>? mediaKinds,
+ }) async* {
+ String? clip(String? v, int max) {
+ final s = v?.trim() ?? '';
+ if (s.isEmpty) return null;
+ return s.length > max ? s.substring(0, max) : s;
+ }
+ final query = <String, dynamic>{
+ 'title': clip(title, 500),
+ 'author': clip(author, 255),
+ 'isbn': clip(isbn, 30),
+ // A book's own id lets the server use what it already knows of it.
+ if (!ApiService.isBookDockItem(itemId) && int.tryParse(itemId) != null) 'bookId': itemId,
+ if (isAudiobook != null) 'isAudiobook': '$isAudiobook',
+ 'mediaKind': ?mediaKind,
+ if (mediaKinds != null && mediaKinds.isNotEmpty) 'mediaKinds': mediaKinds.join(','),
+ };
+ if (query['title'] == null && query['author'] == null && query['isbn'] == null) return;
+ await _ensureFreshAccessToken();
+ final request = http.Request('GET', _boUri('/metadata-fetch/stream', query))
+ ..headers.addAll({..._headers, 'Accept': 'text/event-stream'});
+ final client = _httpClient ?? http.Client();
+ try {
+ final response = await client.send(request).timeout(const Duration(seconds: 30));
+ if (response.statusCode != 200) {
+ throw _BoHttpError(response.statusCode, await response.stream.bytesToString());
+ }
+ String? event;
+ final data = StringBuffer();
+ MatchSearchEvent? take() {
+ final text = data.toString();
+ final name = event;
+ data.clear();
+ event = null;
+ if (text.isEmpty) return null;
+ try {
+ final decoded = jsonDecode(text);
+ if (decoded is! Map<String, dynamic>) return null;
+ if (name == 'provider-status') {
+ return MatchSearchEvent.status('${decoded['provider']}', '${decoded['outcome']}');
+ }
+ if (name == null || name == 'message') return MatchSearchEvent.result(MatchCandidate(decoded));
+ } catch (_) {}
+ return null;
+ }
+ final lines = response.stream.transform(utf8.decoder).transform(const LineSplitter());
+ await for (final line in lines) {
+ if (line.isEmpty) {
+ final e = take();
+ if (e != null) yield e;
+ } else if (line.startsWith('event:')) {
+ event = line.substring(6).trim();
+ } else if (line.startsWith('data:')) {
+ if (data.isNotEmpty) data.write('\n');
+ data.write(line.substring(5).trim());
+ }
+ }
+ final last = take();
+ if (last != null) yield last;
+ } finally {
+ if (_httpClient == null) client.close();
+ }
+ }
+
/// The app's provider names that BookOrbit spells differently. Anything
/// else is passed through, since the list mostly comes from the server.
static const _bookProviders = {'openlibrary': 'openLibrary'};
diff --git a/lib/services/bookorbit_mapper.dart b/lib/services/bookorbit_mapper.dart
index ff6e1774..2ba66082 100644
--- a/lib/services/bookorbit_mapper.dart
+++ b/lib/services/bookorbit_mapper.dart
@@ -1,3 +1,5 @@
+import 'bookorbit_match.dart' show bookOrbitProviderIdFields;
+
/// Turns BookOrbit API payloads into the Audiobookshelf JSON shapes the rest
/// of the app reads. Pure functions only, so the shapes can be unit tested
/// without a server.
@@ -386,6 +388,244 @@ class BookOrbitMapper {
return item;
}
+ static const dockItemPrefix = 'dock-';
+
+ /// A Book Dock file's metadata as it would be filed: what was saved for
+ /// it, else what was read from the file (the server's own rule).
+ static Map<String, dynamic> dockMetadata(Map<String, dynamic> file) {
+ final m = file['selectedMetadata'] ?? file['embeddedMetadata'];
+ return m is Map ? Map<String, dynamic>.from(m) : <String, dynamic>{};
+ }
+
+ /// A Book Dock file as an item of the 'book-dock' library. It has no
+ /// tracks or ebook, so nothing tries to play, download or read it.
+ static Map<String, dynamic> dockItem(Map<String, dynamic> file, {String libraryId = 'book-dock'}) {
+ final fileId = _str(file['id']);
+ final id = '$dockItemPrefix$fileId';
+ final m = dockMetadata(file);
+ final fileName = _str(file['fileName']);
+ final dot = fileName.lastIndexOf('.');
+ final stem = dot > 0 ? fileName.substring(0, dot) : fileName;
+ final rawTitle = _str(m['title']).trim();
+ final title = rawTitle.isNotEmpty ? rawTitle : stem;
+
+ final authorNames = _strings(m['authors']);
+ final narratorNames = _strings(m['narrators']);
+ final seriesList = <Map<String, dynamic>>[];
+ void addSeries(Object? name, Object? index) {
+ final n = _str(name).trim();
+ if (n.isEmpty) return;
+ seriesList.add({'id': 'name:$n', 'name': n, 'sequence': index == null ? null : '$index'});
+ }
+ final memberships = _maps(m['seriesMemberships']);
+ if (memberships.isNotEmpty) {
+ for (final s in memberships) {
+ addSeries(s['seriesName'], s['seriesIndex']);
+ }
+ } else {
+ addSeries(m['seriesName'], m['seriesIndex']);
+ }
+ final seriesName = seriesList
+ .map((s) => s['sequence'] != null ? '${s['name']} #${s['sequence']}' : '${s['name']}')
+ .join(', ');
+ final duration = ((m['durationSeconds'] as num?) ?? 0).toDouble();
+ final size = (file['fileSize'] as num?) ?? 0;
+
+ final metadata = <String, dynamic>{
+ 'title': title,
+ 'titleIgnorePrefix': title,
+ 'subtitle': m['subtitle'],
+ 'authors': [for (final a in authorNames) {'id': '$authorNamePrefix$a', 'name': a}],
+ 'narrators': narratorNames,
+ 'series': seriesList,
+ 'genres': _strings(m['genres']),
+ 'publishedYear': m['publishedYear'] == null ? null : '${m['publishedYear']}',
+ 'publishedDate': m['publishedDate'],
+ 'publisher': m['publisher'],
+ 'description': m['description'],
+ 'isbn': m['isbn13'] ?? m['isbn10'],
+ 'asin': m['audibleId'],
+ 'language': m['language'],
+ 'explicit': false,
+ 'abridged': m['abridged'] == true,
+ 'authorName': authorNames.join(', '),
+ 'authorNameLF': authorNames.map(_lastFirst).join(', '),
+ 'narratorName': narratorNames.join(', '),
+ 'seriesName': seriesName,
+ };
+
+ return {
+ 'id': id,
+ 'ino': id,
+ 'libraryId': libraryId,
+ 'folderId': '',
+ 'path': '',
+ 'relPath': '',
+ 'isFile': true,
+ 'mediaType': 'book',
+ 'addedAt': ms(file['createdAt']),
+ 'updatedAt': ms(file['updatedAt']) ?? ms(file['createdAt']),
+ 'isMissing': false,
+ 'isInvalid': false,
+ 'size': size,
+ 'numFiles': 1 + _maps(file['unitFiles']).length,
+ 'media': {
+ 'id': id,
+ 'libraryItemId': id,
+ 'metadata': metadata,
+ 'coverPath': '/bookorbit/dock/$fileId/cover',
+ 'tags': const [],
+ 'audioFiles': const [],
+ 'chapters': const [],
+ 'duration': duration,
+ 'size': size,
+ 'tracks': const [],
+ 'ebookFile': null,
+ 'numTracks': 0,
+ 'numAudioFiles': 0,
+ 'numChapters': 0,
+ },
+ 'libraryFiles': const [],
+ 'bookDock': {
+ 'fileId': fileId,
+ 'status': file['status'],
+ 'fileName': fileName,
+ 'format': file['format'],
+ 'fileSize': file['fileSize'],
+ 'errorMessage': file['errorMessage'],
+ 'hasFoundDetails': _hasContent(file['fetchedMetadata']),
+ 'detailsState': _hasContent(file['selectedMetadata'])
+ ? 'edited'
+ : _hasContent(file['fetchedMetadata'])
+ ? 'fetched'
+ : _hasContent(file['embeddedMetadata'])
+ ? 'embedded'
+ : 'none',
+ 'confidence': (file['confidence'] as num?)?.round(),
+ 'targetLibraryId': file['targetLibraryId'] == null ? null : '${file['targetLibraryId']}',
+ 'targetFolderId': file['targetFolderId'] == null ? null : '${file['targetFolderId']}',
+ 'addedAt': ms(file['createdAt']),
+ 'unitFiles': [
+ for (final u in _maps(file['unitFiles']))
+ {'fileName': _str(u['fileName']), 'fileSize': u['fileSize'], 'role': u['role']},
+ ],
+ 'changes': dockChanges(file),
+ 'providerIds': {
+ for (final e in bookOrbitProviderIdFields.entries)
+ if (e.key != 'audnexus' && _str(m[e.value]).trim().isNotEmpty) e.key: _str(m[e.value]).trim(),
+ },
+ },
+ };
+ }
+
+ static bool _hasContent(Object? metadata) =>
+ metadata is Map &&
+ metadata.values.any((v) => v != null && v != '' && !(v is List && v.isEmpty));
+
+ // The fields BookOrbit's web lists under "Proposed changes", in its order.
+ static const _dockChangeFields = [
+ 'title',
+ 'subtitle',
+ 'authors',
+ 'seriesName',
+ 'publisher',
+ 'publishedYear',
+ 'language',
+ 'isbn13',
+ ];
+
+ /// What filing would change against what the file says about itself, the
+ /// way BookOrbit's web shows it: the saved details, else the ones found
+ /// online, field by field against the embedded ones. {field, from?, to}.
+ static List<Map<String, dynamic>> dockChanges(Map<String, dynamic> file) {
+ final incoming = file['selectedMetadata'] ?? file['fetchedMetadata'];
+ if (incoming is! Map) return const [];
+ final current = file['embeddedMetadata'] is Map ? file['embeddedMetadata'] as Map : const {};
+ String? shown(Object? v) {
+ if (v == null || v == '') return null;
+ if (v is List) return v.isEmpty ? null : v.join(', ');
+ return '$v';
+ }
+ return [
+ for (final field in _dockChangeFields)
+ if (shown(incoming[field]) != null && shown(incoming[field]) != shown(current[field]))
+ {'field': field, 'from': shown(current[field]), 'to': shown(incoming[field])},
+ ];
+ }
+
+ /// A dock file's metadata after an edit in the Audiobookshelf shape
+ /// ([abs] is `body.metadata` of PATCH /items/:id/media). BookOrbit
+ /// replaces a dock file's saved metadata whole, so this starts from
+ /// [current] and only overwrites what the edit sent.
+ static Map<String, dynamic> dockMetadataPatch(
+ Map<String, dynamic> current,
+ Map<String, dynamic> abs,
+ ) {
+ final out = Map<String, dynamic>.from(current);
+ String? text(Object? v) {
+ final s = v?.toString().trim() ?? '';
+ return s.isEmpty ? null : s;
+ }
+ List<String> names(Object? list) => [
+ for (final e in (list as List<dynamic>? ?? const []))
+ if (text(e is Map ? e['name'] : e) != null) text(e is Map ? e['name'] : e)!,
+ ];
+
+ for (final key in ['title', 'subtitle', 'publisher', 'language']) {
+ if (abs.containsKey(key)) out[key] = text(abs[key]);
+ }
+ if (abs.containsKey('description')) out['description'] = text(abs['description']) ?? '';
+ if (abs.containsKey('publishedDate')) {
+ final d = text(abs['publishedDate']);
+ out['publishedDate'] = d != null && RegExp(r'^\d{4}-\d{2}-\d{2}$').hasMatch(d) ? d : null;
+ }
+ if (abs.containsKey('publishedYear')) {
+ // A full date (from a match) sets the date and its year.
+ final v = text(abs['publishedYear']) ?? '';
+ if (RegExp(r'^\d{4}-\d{2}-\d{2}$').hasMatch(v)) out['publishedDate'] = v;
+ final y = int.tryParse(RegExp(r'^\d{4}').firstMatch(v)?.group(0) ?? '');
+ out['publishedYear'] = y != null && y >= 1000 && y <= 2200 ? y : null;
+ }
+ if (abs.containsKey('authors')) out['authors'] = names(abs['authors']);
+ if (abs.containsKey('narrators')) out['narrators'] = names(abs['narrators']);
+ if (abs.containsKey('genres')) out['genres'] = names(abs['genres']);
+ if (abs.containsKey('series')) {
+ final series = [
+ for (final s in (abs['series'] as List<dynamic>? ?? const []).whereType<Map>())
+ if (text(s['name']) != null)
+ {'seriesName': text(s['name']), 'seriesIndex': text(s['sequence'])},
+ ];
+ out['seriesMemberships'] = series;
+ out['seriesName'] = series.isEmpty ? null : series.first['seriesName'];
+ out['seriesIndex'] = series.isEmpty ? null : series.first['seriesIndex'];
+ }
+ if (abs.containsKey('isbn')) {
+ final isbn = text(abs['isbn'])?.replaceAll(RegExp(r'[^0-9Xx]'), '');
+ out['isbn13'] = isbn != null && isbn.length == 13 ? isbn : null;
+ out['isbn10'] = isbn != null && isbn.length == 10 ? isbn : null;
+ }
+ if (abs.containsKey('asin')) out['audibleId'] = text(abs['asin']);
+ if (abs.containsKey('abridged')) out['abridged'] = abs['abridged'] == true;
+ out.addAll(providerIdPatch(abs['bookOrbitProviderIds']));
+ return out;
+ }
+
+ /// [found] (what the server looked up online) laid over [current],
+ /// field by field, keeping [current] where [found] has nothing.
+ static Map<String, dynamic> dockMergeFound(
+ Map<String, dynamic> current,
+ Map<String, dynamic> found,
+ ) {
+ final out = Map<String, dynamic>.from(current);
+ found.forEach((key, value) {
+ final empty = value == null ||
+ (value is String && value.trim().isEmpty) ||
+ (value is List && value.isEmpty);
+ if (!empty) out[key] = value;
+ });
+ return out;
+ }
+
static bool _hasAudio(List<Map<String, dynamic>> files) =>
files.where(_isContent).any((f) => isAudioFormat(_format(f)));
@@ -864,9 +1104,19 @@ class BookOrbitMapper {
}
}
if (audio.isNotEmpty) out['audioMetadata'] = audio;
+ out.addAll(providerIdPatch(metadata['bookOrbitProviderIds']));
return out;
}
+ /// `{goodreads: '123'}` from a match as BookOrbit's flat id fields
+ /// (`goodreadsId: '123'`).
+ static Map<String, String> providerIdPatch(Object? ids) => {
+ if (ids is Map)
+ for (final e in ids.entries)
+ if (bookOrbitProviderIdFields['${e.key}'] != null && '${e.value}'.trim().isNotEmpty)
+ bookOrbitProviderIdFields['${e.key}']!: '${e.value}'.trim(),
+ };
+
/// Audiobookshelf chapters ({start, end, title} in seconds) as BookOrbit's
/// audio chapters. Null clears them.
static List<Map<String, dynamic>>? chapters(List<dynamic> abs) {
diff --git a/lib/services/bookorbit_match.dart b/lib/services/bookorbit_match.dart
new file mode 100644
index 00000000..9811b726
--- /dev/null
+++ b/lib/services/bookorbit_match.dart
@@ -0,0 +1,483 @@
+/// BookOrbit's match flow, ported from its web editor (client/src/features/
+/// book/lib/metadata-match.ts and metadata-diff-fields.ts): every source is
+/// searched at once, results are ranked against the book, and each field can
+/// be kept or taken from any result.
+library;
+
+/// One search result from one source.
+class MatchCandidate {
+ final Map<String, dynamic> raw;
+ const MatchCandidate(this.raw);
+
+ String get provider => '${raw['provider'] ?? ''}';
+ String get providerId => '${raw['providerId'] ?? ''}';
+
+ /// Names the result a pick came from.
+ String get key => '$provider:$providerId';
+
+ String get title => _s(raw['displayTitle']) ?? _s(raw['title']) ?? '';
+ String get subtitle => _s(raw['subtitle']) ?? '';
+ List<String> get authors => _list(raw['authors']);
+ List<String> get narrators => _list(raw['narrators']);
+ List<String> get genres => _list(raw['genres']);
+ String get description => _s(raw['description']) ?? '';
+ String get publisher => _s(raw['publisher']) ?? '';
+ String get language => _s(raw['language']) ?? '';
+ String get isbn13 => _s(raw['isbn13']) ?? '';
+ String get isbn10 => _s(raw['isbn10']) ?? '';
+ String get isbn => isbn13.isNotEmpty ? isbn13 : isbn10;
+ String get coverUrl => _s(raw['coverUrl']) ?? '';
+
+ /// The date when the source has one, else the year.
+ String get published =>
+ _s(raw['publishedDate']) ?? (raw['publishedYear'] == null ? '' : '${raw['publishedYear']}');
+ String get year => published.length >= 4 ? published.substring(0, 4) : published;
+
+ /// Every series the source lists, first one first.
+ List<({String name, String? index})> get series {
+ final out = <({String name, String? index})>[];
+ for (final m in (raw['seriesMemberships'] as List? ?? const []).whereType<Map>()) {
+ final name = _s(m['seriesName']);
+ if (name != null) out.add((name: name, index: _s(m['seriesIndex'])));
+ }
+ if (out.isEmpty) {
+ final name = _s(raw['seriesName']);
+ if (name != null) out.add((name: name, index: _s(raw['seriesIndex'])));
+ }
+ return out;
+ }
+
+ /// Fields that matter which the result fills; few means a thin record.
+ int get filledFields => [
+ title,
+ subtitle,
+ authors.isEmpty ? '' : 'x',
+ description,
+ publisher,
+ published,
+ language,
+ raw['pageCount'] == null || raw['pageCount'] == 0 ? '' : 'x',
+ series.isEmpty ? '' : 'x',
+ isbn,
+ genres.isEmpty ? '' : 'x',
+ raw['communityRating'] == null || raw['communityRating'] == 0 ? '' : 'x',
+ coverUrl,
+ ].where((v) => v.isNotEmpty).length;
+
+ static String? _s(Object? v) {
+ final s = v?.toString().trim() ?? '';
+ return s.isEmpty ? null : s;
+ }
+
+ static List<String> _list(Object? v) => [
+ for (final e in (v as List? ?? const []))
+ if ('$e'.trim().isNotEmpty) '$e'.trim(),
+ ];
+}
+
+/// What the book has now, as the editor shows it.
+class MatchCurrent {
+ final String title;
+ final String subtitle;
+ final List<String> authors;
+ final List<String> narrators;
+ final List<String> genres;
+ final String description;
+ final String publisher;
+ final String published;
+ final String language;
+ final String isbn;
+ final List<({String name, String? index})> series;
+
+ /// Provider key (goodreads, audible, ...) to the id the book holds.
+ final Map<String, String> providerIds;
+
+ const MatchCurrent({
+ this.title = '',
+ this.subtitle = '',
+ this.authors = const [],
+ this.narrators = const [],
+ this.genres = const [],
+ this.description = '',
+ this.publisher = '',
+ this.published = '',
+ this.language = '',
+ this.isbn = '',
+ this.series = const [],
+ this.providerIds = const {},
+ });
+}
+
+enum MatchTier { strong, possible, weak }
+
+class MatchAssessment {
+ final MatchTier tier;
+ final double score;
+ final bool linked;
+ final bool isbnMatch;
+ final bool sparse;
+
+ const MatchAssessment({
+ required this.tier,
+ required this.score,
+ required this.linked,
+ required this.isbnMatch,
+ required this.sparse,
+ });
+}
+
+/// Lowercase, accents folded where common, everything but letters and
+/// digits as single spaces.
+String normalizeForMatch(String value) {
+ var s = value.toLowerCase();
+ const folds = {
+ 'à': 'a', 'á': 'a', 'â': 'a', 'ã': 'a', 'ä': 'a', 'å': 'a', 'ç': 'c',
+ 'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e', 'ì': 'i', 'í': 'i', 'î': 'i',
+ 'ï': 'i', 'ñ': 'n', 'ò': 'o', 'ó': 'o', 'ô': 'o', 'õ': 'o', 'ö': 'o',
+ 'ø': 'o', 'ù': 'u', 'ú': 'u', 'û': 'u', 'ü': 'u', 'ý': 'y', 'ÿ': 'y',
+ };
+ folds.forEach((from, to) => s = s.replaceAll(from, to));
+ return s.replaceAll(RegExp(r'[^\p{L}\p{N}]+', unicode: true), ' ').trim();
+}
+
+String _titleCore(String title) => normalizeForMatch(title
+ .replaceAll(RegExp(r'\s*\([^)]*\)\s*'), ' ')
+ .replaceAll(RegExp(r'\s+by\s+[^:]+$', caseSensitive: false), ''));
+
+String _lastName(String name) {
+ // "Sanderson, Brandon" puts the last name first.
+ final comma = name.indexOf(',');
+ if (comma > 0) return normalizeForMatch(name.substring(0, comma));
+ final parts = normalizeForMatch(name).split(' ');
+ return parts.isEmpty ? '' : parts.last;
+}
+
+String _bareIsbn(String v) => v.replaceAll(RegExp(r'[^0-9xX]'), '').toUpperCase();
+
+/// How likely [c] is to be this book: a record the book is linked to or one
+/// sharing its ISBN is strong, the same title and author is possible, the
+/// rest are usually other books sharing words with the title.
+MatchAssessment assessMatch(MatchCandidate c, MatchCurrent book) {
+ final linkedId = book.providerIds[c.provider == 'audnexus' ? 'audible' : c.provider];
+ final linked = linkedId != null && linkedId.isNotEmpty && linkedId == c.providerId;
+ final bookIsbn = _bareIsbn(book.isbn);
+ final isbnMatch = bookIsbn.isNotEmpty &&
+ [_bareIsbn(c.isbn13), _bareIsbn(c.isbn10)].any((i) => i.isNotEmpty && i == bookIsbn);
+ final bookTitle = _titleCore(book.title);
+ final resultTitle = _titleCore(c.title);
+ final sameTitle = bookTitle.isNotEmpty && resultTitle == bookTitle;
+ final longerTitle = !sameTitle &&
+ bookTitle.isNotEmpty &&
+ resultTitle.isNotEmpty &&
+ (resultTitle.startsWith(bookTitle) || bookTitle.startsWith(resultTitle));
+ final bookAuthors = book.authors.map(normalizeForMatch).where((a) => a.isNotEmpty).toSet();
+ final bookLastNames = book.authors.map(_lastName).where((a) => a.isNotEmpty).toSet();
+ final authorMatch = c.authors
+ .any((a) => bookAuthors.contains(normalizeForMatch(a)) || bookLastNames.contains(_lastName(a)));
+ final bookSeries = book.series.isEmpty ? null : book.series.first;
+ final resultSeries = c.series.isEmpty ? null : c.series.first;
+ final seriesMatch = bookSeries != null &&
+ resultSeries != null &&
+ normalizeForMatch(bookSeries.name) == normalizeForMatch(resultSeries.name) &&
+ (bookSeries.index ?? '') == (resultSeries.index ?? '');
+ final filled = c.filledFields;
+ final tier = linked || isbnMatch
+ ? MatchTier.strong
+ : sameTitle && authorMatch
+ ? MatchTier.possible
+ : MatchTier.weak;
+ final score = (linked ? 60 : 0) +
+ (isbnMatch ? 45 : 0) +
+ (sameTitle ? 25 : longerTitle ? 6 : 0) +
+ (authorMatch ? 20 : 0) +
+ (seriesMatch ? 10 : 0) +
+ filled * 0.6;
+ return MatchAssessment(tier: tier, score: score, linked: linked, isbnMatch: isbnMatch, sparse: filled <= 4);
+}
+
+/// Best first: by tier, then score, then the server's source order, then
+/// arrival.
+List<({MatchCandidate candidate, MatchAssessment assessment})> rankMatches(
+ List<MatchCandidate> candidates,
+ MatchCurrent book, {
+ List<String> providerOrder = const [],
+}) {
+ final order = {for (var i = 0; i < providerOrder.length; i++) providerOrder[i]: i};
+ final ranked = [
+ for (var i = 0; i < candidates.length; i++)
+ (candidate: candidates[i], assessment: assessMatch(candidates[i], book), index: i),
+ ];
+ ranked.sort((a, b) {
+ final tier = a.assessment.tier.index.compareTo(b.assessment.tier.index);
+ if (tier != 0) return tier;
+ final score = b.assessment.score.compareTo(a.assessment.score);
+ if (score != 0) return score;
+ final provider = (order[a.candidate.provider] ?? 1 << 30).compareTo(order[b.candidate.provider] ?? 1 << 30);
+ if (provider != 0) return provider;
+ return a.index.compareTo(b.index);
+ });
+ return [for (final r in ranked) (candidate: r.candidate, assessment: r.assessment)];
+}
+
+enum MatchField { title, subtitle, authors, narrators, series, description, publisher, published, language, isbn, genres }
+
+/// fill: the book has nothing there; change: it differs; minor: only
+/// capitalization, punctuation, order or the like; same; missing: the result
+/// has nothing there.
+enum DiffKind { fill, change, minor, same, missing }
+
+bool isActionable(DiffKind kind) => kind == DiffKind.fill || kind == DiffKind.change || kind == DiffKind.minor;
+
+/// HTML description as readable text.
+String descriptionPlainText(String html) => html
+ .replaceAll(RegExp(r'<br\s*/?>', caseSensitive: false), '\n')
+ .replaceAll(RegExp(r'</(p|div|li|h\d|blockquote)>', caseSensitive: false), '\n\n')
+ .replaceAll(RegExp(r'<[^>]*>'), '')
+ .replaceAll('&amp;', '&')
+ .replaceAll('&quot;', '"')
+ .replaceAll('&#39;', "'")
+ .replaceAll('&apos;', "'")
+ .replaceAll('&lt;', '<')
+ .replaceAll('&gt;', '>')
+ .replaceAll('&nbsp;', ' ')
+ .replaceAll(RegExp(r'[ \t]+'), ' ')
+ .replaceAll(RegExp(r' *\n *'), '\n')
+ .replaceAll(RegExp(r'\n{3,}'), '\n\n')
+ .trim();
+
+String _seriesText(List<({String name, String? index})> series) => series
+ .map((s) => s.index == null || s.index!.isEmpty ? s.name : '${s.name} #${s.index}')
+ .join(', ');
+
+/// What [field] shows for the book now.
+String currentValue(MatchCurrent book, MatchField field) => switch (field) {
+ MatchField.title => book.title,
+ MatchField.subtitle => book.subtitle,
+ MatchField.authors => book.authors.join(', '),
+ MatchField.narrators => book.narrators.join(', '),
+ MatchField.series => _seriesText(book.series),
+ MatchField.description => descriptionPlainText(book.description),
+ MatchField.publisher => book.publisher,
+ MatchField.published => book.published,
+ MatchField.language => book.language,
+ MatchField.isbn => book.isbn,
+ MatchField.genres => book.genres.join(', '),
+ };
+
+/// What [field] would become from [c].
+String candidateValue(MatchCandidate c, MatchField field) => switch (field) {
+ MatchField.title => c.title,
+ MatchField.subtitle => c.subtitle,
+ MatchField.authors => c.authors.join(', '),
+ MatchField.narrators => c.narrators.join(', '),
+ MatchField.series => _seriesText(c.series),
+ MatchField.description => descriptionPlainText(c.description),
+ MatchField.publisher => c.publisher,
+ MatchField.published => c.published,
+ MatchField.language => c.language,
+ MatchField.isbn => c.isbn,
+ MatchField.genres => c.genres.join(', '),
+ };
+
+List<String> _currentList(MatchCurrent book, MatchField field) => switch (field) {
+ MatchField.authors => book.authors,
+ MatchField.narrators => book.narrators,
+ MatchField.genres => book.genres,
+ _ => const [],
+ };
+
+List<String> _candidateList(MatchCandidate c, MatchField field) => switch (field) {
+ MatchField.authors => c.authors,
+ MatchField.narrators => c.narrators,
+ MatchField.genres => c.genres,
+ _ => const [],
+ };
+
+const _listFields = {MatchField.authors, MatchField.narrators, MatchField.genres};
+
+const _languageNames = {
+ 'en': 'english', 'eng': 'english', 'de': 'german', 'ger': 'german', 'deu': 'german',
+ 'fr': 'french', 'fre': 'french', 'fra': 'french', 'es': 'spanish', 'spa': 'spanish',
+ 'it': 'italian', 'ita': 'italian', 'nl': 'dutch', 'dut': 'dutch', 'nld': 'dutch',
+ 'pt': 'portuguese', 'por': 'portuguese', 'ru': 'russian', 'rus': 'russian',
+ 'ja': 'japanese', 'jpn': 'japanese', 'zh': 'chinese', 'chi': 'chinese', 'zho': 'chinese',
+ 'pl': 'polish', 'pol': 'polish', 'sv': 'swedish', 'swe': 'swedish', 'da': 'danish',
+ 'dan': 'danish', 'no': 'norwegian', 'nor': 'norwegian', 'fi': 'finnish', 'fin': 'finnish',
+ 'cs': 'czech', 'cze': 'czech', 'ces': 'czech', 'el': 'greek', 'gre': 'greek', 'ell': 'greek',
+ 'ro': 'romanian', 'rum': 'romanian', 'ron': 'romanian', 'ko': 'korean', 'kor': 'korean',
+};
+
+String _languageToken(String v) {
+ final t = v.trim().toLowerCase();
+ return _languageNames[t.split(RegExp(r'[-_]')).first] ?? t;
+}
+
+DiffKind _classifyText(String a, String b) {
+ a = a.trim();
+ b = b.trim();
+ if (b.isEmpty) return DiffKind.missing;
+ if (a.isEmpty) return DiffKind.fill;
+ if (a == b) return DiffKind.same;
+ if (a.toLowerCase() == b.toLowerCase() || normalizeForMatch(a) == normalizeForMatch(b)) return DiffKind.minor;
+ return DiffKind.change;
+}
+
+/// How the book's [field] compares with [c]'s.
+DiffKind classifyField(MatchCurrent book, MatchCandidate c, MatchField field) {
+ if (_listFields.contains(field)) {
+ final a = _currentList(book, field);
+ final b = _candidateList(c, field);
+ if (b.isEmpty) return DiffKind.missing;
+ if (a.isEmpty) return DiffKind.fill;
+ final left = a.map(normalizeForMatch).toSet();
+ final right = b.map(normalizeForMatch).toSet();
+ if (left.length != right.length || !left.containsAll(right)) return DiffKind.change;
+ return a.join('\u0000') == b.join('\u0000') ? DiffKind.same : DiffKind.minor;
+ }
+ final a = currentValue(book, field);
+ final b = candidateValue(c, field);
+ switch (field) {
+ case MatchField.published:
+ if (b.isEmpty) return DiffKind.missing;
+ if (a.isEmpty) return DiffKind.fill;
+ if (a == b) return DiffKind.same;
+ return a.length >= 4 && b.length >= 4 && a.substring(0, 4) == b.substring(0, 4)
+ ? DiffKind.minor
+ : DiffKind.change;
+ case MatchField.language:
+ if (b.trim().isEmpty) return DiffKind.missing;
+ if (a.trim().isEmpty) return DiffKind.fill;
+ if (a.trim() == b.trim()) return DiffKind.same;
+ return _languageToken(a) == _languageToken(b) ? DiffKind.minor : DiffKind.change;
+ case MatchField.isbn:
+ if (b.isEmpty) return DiffKind.missing;
+ if (a.isEmpty) return DiffKind.fill;
+ return _bareIsbn(a) == _bareIsbn(b) ? DiffKind.same : DiffKind.change;
+ default:
+ return _classifyText(a, b);
+ }
+}
+
+/// How many fields [c] would fill and change against the book.
+({int fills, int changes}) summarizeDifferences(MatchCurrent book, MatchCandidate c) {
+ var fills = 0, changes = 0;
+ for (final field in MatchField.values) {
+ final kind = classifyField(book, c, field);
+ if (kind == DiffKind.fill) fills++;
+ if (kind == DiffKind.change) changes++;
+ }
+ return (fills: fills, changes: changes);
+}
+
+/// Values of [field] other results hold, grouped by value, leaving out
+/// [active]'s own and values equal to it.
+List<({String value, List<MatchCandidate> from})> otherValues(
+ MatchField field,
+ MatchCandidate active,
+ List<MatchCandidate> alternatives,
+) {
+ String comparable(MatchCandidate c) => _listFields.contains(field)
+ ? (_candidateList(c, field).map(normalizeForMatch).toList()..sort()).join('\u0000')
+ : normalizeForMatch(candidateValue(c, field));
+ final own = comparable(active);
+ final groups = <String, ({String value, List<MatchCandidate> from})>{};
+ for (final c in alternatives) {
+ if (c.key == active.key) continue;
+ final display = candidateValue(c, field);
+ if (display.isEmpty) continue;
+ final k = comparable(c);
+ if (k.isEmpty || k == own) continue;
+ groups.putIfAbsent(k, () => (value: display, from: <MatchCandidate>[])).from.add(c);
+ }
+ return groups.values.toList();
+}
+
+/// The provider ids BookOrbit stores per book, by search provider key.
+const bookOrbitProviderIdFields = {
+ 'google': 'googleBooksId',
+ 'goodreads': 'goodreadsId',
+ 'amazon': 'amazonId',
+ 'hardcover': 'hardcoverId',
+ 'openLibrary': 'openLibraryId',
+ 'itunes': 'itunesId',
+ 'audible': 'audibleId',
+ 'audnexus': 'audibleId',
+ 'librofm': 'librofmId',
+ 'comicvine': 'comicvineId',
+ 'ranobedb': 'ranobedbId',
+ 'kobo': 'koboId',
+ 'lubimyczytac': 'lubimyczytacId',
+ 'aladin': 'aladinId',
+};
+
+/// The edit the picks make, in the Audiobookshelf media shape Absorb saves
+/// with, plus the cover URL to set. Each field comes from the result it was
+/// picked from. Results that gave something also link the book to their
+/// source when it isn't linked there yet (`bookOrbitProviderIds`).
+({Map<String, dynamic> metadata, String? coverUrl}) buildMatchUpdate(
+ MatchCurrent book,
+ Map<MatchField, MatchCandidate> picks, {
+ MatchCandidate? cover,
+ bool mergeGenres = true,
+}) {
+ final metadata = <String, dynamic>{};
+ final used = <MatchCandidate>[];
+ picks.forEach((field, c) {
+ used.add(c);
+ switch (field) {
+ case MatchField.title:
+ metadata['title'] = c.title;
+ case MatchField.subtitle:
+ metadata['subtitle'] = c.subtitle;
+ case MatchField.authors:
+ metadata['authors'] = [for (final a in c.authors) {'name': a}];
+ case MatchField.narrators:
+ metadata['narrators'] = c.narrators;
+ case MatchField.series:
+ metadata['series'] = [for (final s in c.series) {'name': s.name, 'sequence': s.index ?? ''}];
+ case MatchField.description:
+ metadata['description'] = c.description;
+ case MatchField.publisher:
+ metadata['publisher'] = c.publisher;
+ case MatchField.published:
+ metadata['publishedYear'] = c.published;
+ case MatchField.language:
+ metadata['language'] = c.language;
+ case MatchField.isbn:
+ metadata['isbn'] = c.isbn;
+ case MatchField.genres:
+ if (mergeGenres) {
+ final seen = {for (final g in book.genres) normalizeForMatch(g)};
+ metadata['genres'] = [
+ ...book.genres,
+ for (final g in c.genres)
+ if (seen.add(normalizeForMatch(g))) g,
+ ];
+ } else {
+ metadata['genres'] = c.genres;
+ }
+ }
+ });
+ if (cover != null) used.add(cover);
+ final ids = <String, String>{};
+ for (final c in used) {
+ final provider = c.provider == 'audnexus' ? 'audible' : c.provider;
+ if (c.providerId.isEmpty || !bookOrbitProviderIdFields.containsKey(provider)) continue;
+ if ((book.providerIds[provider] ?? '').isNotEmpty) continue;
+ ids[provider] = c.providerId;
+ }
+ if (ids.isNotEmpty) metadata['bookOrbitProviderIds'] = ids;
+ return (metadata: metadata, coverUrl: cover?.coverUrl.isNotEmpty == true ? cover!.coverUrl : null);
+}
+
+/// A search event: a result, or a source saying how it stopped early.
+class MatchSearchEvent {
+ final MatchCandidate? candidate;
+ final String? provider;
+ final String? outcome;
+
+ const MatchSearchEvent.result(MatchCandidate this.candidate)
+ : provider = null,
+ outcome = null;
+ const MatchSearchEvent.status(String this.provider, String this.outcome) : candidate = null;
+}
diff --git a/lib/services/player_settings.dart b/lib/services/player_settings.dart
index e75318e4..4fbac1d6 100644
--- a/lib/services/player_settings.dart
+++ b/lib/services/player_settings.dart
@@ -1362,6 +1362,8 @@ class PlayerSettings {
static bool isEbookOnly(Map<String, dynamic> item) {
// Podcasts are never eBook-only (minified podcasts lack duration/audioFiles)
if ((item['mediaType'] as String?) == 'podcast') return false;
+ // BookOrbit Book Dock files have no tracks until they are filed.
+ if (item['bookDock'] != null) return false;
final media = item['media'] as Map<String, dynamic>? ?? {};
final duration = (media['duration'] as num?)?.toDouble() ?? 0;
if (duration > 0) return false; // Has audio content
diff --git a/lib/widgets/book_detail_sheet.dart b/lib/widgets/book_detail_sheet.dart
index 249a19bc..24a10d7b 100644
--- a/lib/widgets/book_detail_sheet.dart
+++ b/lib/widgets/book_detail_sheet.dart
@@ -9,6 +9,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'overlay_toast.dart';
+import '../services/book_dock.dart';
import '../services/bookorbit_mapper.dart';
import 'absorb_placement.dart';
import 'package:cached_network_image/cached_network_image.dart';
@@ -195,6 +196,11 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
List<Map<String, dynamic>> _similar = const [];
bool _similarLoaded = false;
bool _savingStatus = false;
+ // A Book Dock action (filing, removing, using found details) is running.
+ bool _dockBusy = false;
+ // Re-reads a dock file while the server is still reading or looking it
+ // up; BookOrbit tells its web page over a socket Absorb doesn't keep.
+ Timer? _dockPoll;
bool _isLoading = true;
bool _bookmarksExpanded = false;
BookmarkPreviewPlayer? _preview;
@@ -269,6 +275,7 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
void dispose() {
SocketService().removeItemUpdatedListener(_onSocketItemUpdated);
_liveRefreshDebounce?.cancel();
+ _dockPoll?.cancel();
_preview?.removeListener(_onPreviewChanged);
_preview?.dispose();
super.dispose();
@@ -474,8 +481,14 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
}
setState(() { _item = finalItem; _isLoading = false; });
+ if (BookDockInfo.of(finalItem)?.isWorking ?? false) {
+ _dockPoll?.cancel();
+ _dockPoll = Timer(const Duration(seconds: 3), () {
+ if (mounted) _loadItem();
+ });
+ }
_deriveCoverScheme();
- if (api.isBookOrbit && !_similarLoaded) {
+ if (api.isBookOrbit && !_similarLoaded && !ApiService.isBookDockItem(widget.itemId)) {
_similarLoaded = true;
unawaited(_loadSimilar(api));
}
@@ -692,9 +705,11 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
)
: AnimatedOpacity(
opacity: 1.0, duration: const Duration(milliseconds: 300),
- child: widget.quick
- ? _buildQuickContent(context, cs, tt, l)
- : _buildContent(context, cs, tt, l)),
+ child: BookDockInfo.of(_item) != null
+ ? _buildDockContent(context, cs, tt, l, BookDockInfo.of(_item)!)
+ : widget.quick
+ ? _buildQuickContent(context, cs, tt, l)
+ : _buildContent(context, cs, tt, l)),
]),
);
}
@@ -2107,10 +2122,457 @@ class _BookDetailSheetContentState extends State<_BookDetailSheetContent> {
isEbookOnly: isEbookOnly,
isAdmin: auth.isAdmin,
libraryId: _item!['libraryId'] as String?,
+ isBookDock: BookDockInfo.of(_item) != null,
),
));
}
+ /// A BookOrbit Book Dock file, shown the way BookOrbit's web Book Dock
+ /// shows it: status, match, where it will go, what filing would change,
+ /// and its files. It can't be played or downloaded until it is filed.
+ Widget _buildDockContent(BuildContext context, ColorScheme cs, TextTheme tt,
+ AppLocalizations l, BookDockInfo dock) {
+ final accent =
+ (PlayerSettings.einkMode ? null : _coverScheme?.primary) ?? cs.primary;
+ final auth = context.read<AuthProvider>();
+ final lib = context.watch<LibraryProvider>();
+ final media = _item!['media'] as Map<String, dynamic>? ?? {};
+ final metadata = media['metadata'] as Map<String, dynamic>? ?? {};
+ final title = metadata['title'] as String? ?? dock.fileName;
+ final subtitle = metadata['subtitle'] as String? ?? '';
+ final authorName = metadata['authorName'] as String? ?? '';
+ final narratorName = metadata['narratorName'] as String? ?? '';
+ final seriesName = metadata['seriesName'] as String? ?? '';
+ final descRaw = metadata['description'] as String? ?? '';
+ final duration = (media['duration'] as num?)?.toDouble() ?? 0;
+ final year = metadata['publishedYear'] as String? ?? '';
+ final publisher = metadata['publisher'] as String? ?? '';
+ final genres = (metadata['genres'] as List<dynamic>?)?.cast<String>() ?? const [];
+ final busy = _dockBusy || lib.isOffline;
+ final good = Theme.of(context).brightness == Brightness.dark ? Colors.greenAccent : Colors.green.shade700;
+ const warn = Colors.orange;
+ final destination = dock.hasDestination ? _libraryName(lib, dock.targetLibraryId!) : null;
+ final unitSize = dock.unitFiles.fold<int>(0, (sum, f) => sum + (f.fileSize ?? 0));
+ final size = dock.unitFiles.length > 1 && unitSize > 0 ? unitSize : dock.fileSize;
+
+ Color matchColor(int c) => c >= 85 ? good : c >= BookDockInfo.reviewBelow ? warn : cs.error;
+ final statusBadge = switch (dock.status) {
+ 'pending' => (l.bookDockBadgePending, warn),
+ 'extracting' => (l.bookDockBadgeExtracting, Colors.blue),
+ 'fetching' => (l.bookDockBadgeFetching, Colors.blue),
+ 'error' => (l.bookDockBadgeError, cs.error),
+ _ => null,
+ };
+
+ return ListView(controller: widget.scrollController, padding: EdgeInsets.fromLTRB(20, 8, 20, 32 + MediaQuery.of(context).viewPadding.bottom), children: [
+ Center(child: Container(width: 40, height: 4, margin: const EdgeInsets.only(bottom: 16),
+ decoration: BoxDecoration(color: cs.onSurface.withValues(alpha: 0.24), borderRadius: BorderRadius.circular(2)))),
+ if (_coverUrl != null) ...[
+ Center(child: Container(
+ height: 200,
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(12),
+ boxShadow: [BoxShadow(color: Colors.black.withValues(alpha: 0.3), blurRadius: 16, offset: const Offset(0, 4))],
+ ),
+ clipBehavior: Clip.antiAlias,
+ child: CachedNetworkImage(
+ imageUrl: _coverUrl!, fit: BoxFit.contain,
+ httpHeaders: lib.mediaHeaders,
+ placeholder: (_, __) => const SizedBox(width: 140),
+ errorWidget: (_, __, ___) => Container(
+ width: 140,
+ color: cs.surfaceContainerHigh,
+ child: Icon(Icons.move_to_inbox_rounded, size: 40, color: cs.onSurfaceVariant),
+ ),
+ ),
+ )),
+ const SizedBox(height: 16),
+ ],
+ Text(title, textAlign: TextAlign.center, style: tt.headlineSmall?.copyWith(fontWeight: FontWeight.w700, color: cs.onSurface)),
+ if (subtitle.isNotEmpty) ...[
+ const SizedBox(height: 4),
+ Text(subtitle, textAlign: TextAlign.center, style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant)),
+ ],
+ for (final line in [authorName.isNotEmpty ? authorName : l.bookDockNoAuthor, narratorName, seriesName])
+ if (line.isNotEmpty) ...[
+ const SizedBox(height: 4),
+ Text(line, textAlign: TextAlign.center, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant)),
+ ],
+ const SizedBox(height: 14),
+ Wrap(alignment: WrapAlignment.center, spacing: 6, runSpacing: 6, children: [
+ if (statusBadge != null)
+ _dockBadge(statusBadge.$1, statusBadge.$2, working: dock.isWorking),
+ if (dock.needsReview) _dockBadge(l.bookDockNeedsReview, warn, icon: Icons.flag_outlined),
+ if (dock.hasMatch)
+ _dockBadge(l.bookDockMatch(dock.confidence!), matchColor(dock.confidence!))
+ else if (dock.status == 'ready')
+ _dockBadge(l.bookDockNoMatch, cs.onSurfaceVariant),
+ if (dock.detailsState == 'edited')
+ _dockBadge(l.bookDockApplied, good, icon: Icons.check_rounded)
+ else if (dock.detailsState == 'fetched')
+ _dockBadge(l.bookDockNotApplied, warn, icon: Icons.auto_fix_high_rounded),
+ if (dock.unitFiles.length > 1)
+ _dockBadge(l.bookDockFileCount(dock.unitFiles.length), cs.onSurfaceVariant, icon: Icons.folder_copy_outlined),
+ ]),
+ const SizedBox(height: 10),
+ Row(mainAxisAlignment: MainAxisAlignment.center, children: [
+ Icon(dock.hasDestination ? Icons.drive_folder_upload_rounded : Icons.error_outline_rounded,
+ size: 16, color: dock.hasDestination ? cs.onSurfaceVariant : warn),
+ const SizedBox(width: 6),
+ Flexible(child: Text(
+ dock.hasDestination ? l.bookDockGoesTo(destination ?? l.libraryFallback) : l.bookDockNoDestination,
+ maxLines: 1, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(color: dock.hasDestination ? cs.onSurfaceVariant : warn),
+ )),
+ ]),
+ const SizedBox(height: 14),
+ SizedBox(height: 52, child: FilledButton.icon(
+ onPressed: busy || dock.isWorking ? null : () => _fileDockItem(context, auth, lib, title, dock),
+ icon: _dockBusy
+ ? SizedBox(width: 20, height: 20, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))
+ : const Icon(Icons.library_add_rounded, size: 22),
+ label: Text(l.bookDockAddToLibrary,
+ style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w600, color: cs.onPrimary)),
+ style: FilledButton.styleFrom(
+ backgroundColor: accent,
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
+ ),
+ )),
+ if (dock.detailsState == 'fetched') ...[
+ const SizedBox(height: 8),
+ _dockAction(cs, Icons.auto_fix_high_rounded, l.bookDockUseFound,
+ busy ? null : () => _useFoundDockDetails(context, auth), color: warn),
+ ],
+ const SizedBox(height: 8),
+ Row(children: [
+ Expanded(child: _dockAction(cs, Icons.edit_rounded, l.edit,
+ busy ? null : () => _openEditPage(auth, title, false))),
+ const SizedBox(width: 8),
+ Expanded(child: _dockAction(cs, Icons.refresh_rounded, l.bookDockLookUpAgain,
+ busy || dock.isWorking ? null : () => _lookUpDockDetails(context, auth))),
+ const SizedBox(width: 8),
+ Expanded(child: _dockAction(cs, Icons.delete_outline_rounded, l.remove,
+ busy ? null : () => _removeDockItem(context, auth, lib, title),
+ color: cs.error)),
+ ]),
+ const SizedBox(height: 18),
+ Row(children: [
+ Text(l.bookDockProposedChanges, style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),
+ const Spacer(),
+ if (dock.changes.isNotEmpty)
+ Text(l.bookDockChangedFields(dock.changes.length), style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ ]),
+ const SizedBox(height: 8),
+ if (dock.changes.isNotEmpty)
+ for (final change in dock.changes)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 3),
+ child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ SizedBox(width: 80, child: Text(_dockFieldLabel(l, change.field),
+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600))),
+ Expanded(child: change.from == null
+ ? Text('+ ${change.to}', style: tt.bodySmall?.copyWith(color: good, fontWeight: FontWeight.w600))
+ : Text.rich(TextSpan(children: [
+ TextSpan(text: change.from, style: tt.bodySmall?.copyWith(
+ color: cs.onSurfaceVariant, decoration: TextDecoration.lineThrough)),
+ WidgetSpan(
+ alignment: PlaceholderAlignment.middle,
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 6),
+ child: Icon(Icons.arrow_forward_rounded, size: 12, color: cs.onSurfaceVariant),
+ ),
+ ),
+ TextSpan(text: change.to, style: tt.bodySmall?.copyWith(
+ color: cs.onSurface, fontWeight: FontWeight.w600)),
+ ]))),
+ ]),
+ )
+ else if ((dock.errorMessage ?? '').isNotEmpty)
+ Text(dock.errorMessage!, style: tt.bodySmall?.copyWith(color: cs.error))
+ else
+ Text(dock.isWorking ? l.bookDockStillReading : l.bookDockNoChanges,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ if (dock.unitFiles.length > 1) ...[
+ const SizedBox(height: 18),
+ Text(l.bookDockFilesInEntry(dock.unitFiles.length),
+ style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),
+ const SizedBox(height: 6),
+ for (var i = 0; i < dock.unitFiles.length; i++)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 2),
+ child: Row(children: [
+ SizedBox(width: 28, child: Text('${i + 1}', textAlign: TextAlign.right,
+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant))),
+ const SizedBox(width: 10),
+ Expanded(child: Text(dock.unitFiles[i].fileName, maxLines: 1, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall)),
+ const SizedBox(width: 8),
+ Text([
+ _dockRoleLabel(l, dock.unitFiles[i].role),
+ if ((dock.unitFiles[i].fileSize ?? 0) > 0) _fmtSize(dock.unitFiles[i].fileSize!),
+ ].join(' \u00b7 '), style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ ]),
+ ),
+ ],
+ const SizedBox(height: 16),
+ Wrap(spacing: 8, runSpacing: 8, children: [
+ if (dock.fileName.isNotEmpty) _chip(Icons.insert_drive_file_outlined, dock.fileName),
+ if ((dock.format ?? '').isNotEmpty) _chip(Icons.description_outlined, dock.format!.toUpperCase()),
+ if ((size ?? 0) > 0) _chip(Icons.storage_rounded, _fmtSize(size!)),
+ if (duration > 0) _chip(Icons.schedule_rounded, formatHm(duration)),
+ if (dock.addedAt != null) _chip(Icons.move_to_inbox_rounded, l.bookDockAdded(_fmtDate(dock.addedAt!))),
+ if (year.isNotEmpty) _chip(Icons.calendar_today_rounded, year),
+ if (publisher.isNotEmpty) _chip(Icons.business_rounded, publisher),
+ for (final g in genres) _chip(Icons.tag_rounded, g),
+ ]),
+ if (descRaw.isNotEmpty) ...[
+ const SizedBox(height: 16),
+ Text(l.aboutSection, style: tt.titleSmall?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),
+ const SizedBox(height: 6),
+ HtmlDescription(
+ html: descRaw,
+ maxLines: null,
+ style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.7), height: 1.5),
+ linkColor: accent,
+ ),
+ ],
+ const SizedBox(height: 20),
+ ]);
+ }
+
+ String? _libraryName(LibraryProvider lib, String libraryId) {
+ for (final library in lib.libraries) {
+ if (library is Map && library['id'] == libraryId) return library['name'] as String?;
+ }
+ return null;
+ }
+
+ String _dockFieldLabel(AppLocalizations l, String field) => switch (field) {
+ 'title' => l.bookDockFieldTitle,
+ 'subtitle' => l.bookDockFieldSubtitle,
+ 'authors' => l.bookDockFieldAuthors,
+ 'seriesName' => l.bookDockFieldSeries,
+ 'publisher' => l.bookDockFieldPublisher,
+ 'publishedYear' => l.bookDockFieldYear,
+ 'language' => l.bookDockFieldLanguage,
+ 'isbn13' => l.bookDockFieldIsbn,
+ _ => field,
+ };
+
+ String _dockRoleLabel(AppLocalizations l, String? role) => switch (role) {
+ 'cover' => l.bookDockRoleCover,
+ 'metadata' => l.bookDockRoleMetadata,
+ 'supplement' => l.bookDockRoleExtra,
+ _ => l.bookDockRoleBook,
+ };
+
+ Widget _dockBadge(String label, Color color, {IconData? icon, bool working = false}) {
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
+ decoration: BoxDecoration(
+ color: color.withValues(alpha: 0.14),
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Row(mainAxisSize: MainAxisSize.min, children: [
+ if (working)
+ Padding(
+ padding: const EdgeInsets.only(right: 5),
+ child: SizedBox(width: 10, height: 10, child: CircularProgressIndicator(strokeWidth: 1.5, color: color)),
+ )
+ else if (icon != null)
+ Padding(padding: const EdgeInsets.only(right: 4), child: Icon(icon, size: 12, color: color)),
+ Text(label, style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: color)),
+ ]),
+ );
+ }
+
+ Future<void> _lookUpDockDetails(BuildContext context, AuthProvider auth) async {
+ final l = AppLocalizations.of(context)!;
+ final api = auth.apiService;
+ if (api == null) return;
+ setState(() => _dockBusy = true);
+ final ok = await api.lookUpBookDockDetails(widget.itemId);
+ if (!mounted) return;
+ setState(() => _dockBusy = false);
+ if (ok) await _loadItem();
+ if (!context.mounted) return;
+ showOverlayToast(context, ok ? l.bookDockLookingUp : l.bookDockLookUpFailed,
+ icon: ok ? Icons.refresh_rounded : Icons.error_outline_rounded);
+ }
+
+ Widget _dockAction(ColorScheme cs, IconData icon, String label, VoidCallback? onTap, {Color? color}) {
+ final c = color ?? cs.onSurfaceVariant;
+ return Opacity(
+ opacity: onTap == null ? 0.5 : 1,
+ child: GestureDetector(
+ onTap: onTap,
+ child: Container(
+ height: 36,
+ decoration: BoxDecoration(
+ color: cs.onSurface.withValues(alpha: 0.06),
+ borderRadius: BorderRadius.circular(14),
+ border: Border.all(color: cs.onSurface.withValues(alpha: 0.08)),
+ ),
+ child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
+ Icon(icon, size: 16, color: c),
+ const SizedBox(width: 6),
+ Flexible(child: Text(label, maxLines: 1, overflow: TextOverflow.ellipsis,
+ style: TextStyle(color: c, fontSize: 12, fontWeight: FontWeight.w500))),
+ ]),
+ ),
+ ),
+ );
+ }
+
+ Future<void> _fileDockItem(BuildContext context, AuthProvider auth,
+ LibraryProvider lib, String title, BookDockInfo dock) async {
+ final l = AppLocalizations.of(context)!;
+ final api = auth.apiService;
+ if (api == null) return;
+ setState(() => _dockBusy = true);
+ final destinations = await api.bookDockDestinations();
+ if (!mounted) return;
+ setState(() => _dockBusy = false);
+ if (destinations.isEmpty) {
+ showOverlayToast(context, l.bookDockNoLibraries, icon: Icons.lock_outline_rounded);
+ return;
+ }
+ final picked = await _pickDockDestination(context, destinations, dock);
+ if (picked == null || !mounted) return;
+ final navigator = Navigator.of(context);
+ final rootNavigator = rootNavigatorKey.currentState;
+ setState(() => _dockBusy = true);
+ final result = await api.fileBookDockItem(widget.itemId, picked);
+ if (!mounted) return;
+ setState(() => _dockBusy = false);
+ if (result.success) {
+ if (navigator.canPop()) navigator.pop();
+ await lib.refresh();
+ showNavigatorOverlayToast(rootNavigator, l.bookDockFiled(title, picked.libraryName),
+ icon: Icons.library_add_check_rounded);
+ } else if (result.duplicate) {
+ final remove = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => AlertDialog(
+ title: Text(l.bookDockDuplicateTitle(picked.libraryName)),
+ content: Text(l.bookDockDuplicateBody),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),
+ TextButton(onPressed: () => Navigator.pop(ctx, true), child: Text(l.remove)),
+ ],
+ ),
+ );
+ if (remove == true && mounted && context.mounted) {
+ await _removeDockItem(context, auth, lib, title, confirm: false);
+ }
+ } else {
+ final reason = result.message ?? '';
+ showOverlayToast(
+ context,
+ reason.isNotEmpty ? l.bookDockFileFailedReason(reason) : l.bookDockFileFailed,
+ icon: Icons.error_outline_rounded,
+ );
+ }
+ }
+
+ Future<BookDockDestination?> _pickDockDestination(BuildContext context,
+ List<BookDockDestination> destinations, BookDockInfo dock) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ // A library with more than one folder names the folder too.
+ final folderCount = <String, int>{};
+ for (final d in destinations) {
+ folderCount[d.libraryId] = (folderCount[d.libraryId] ?? 0) + 1;
+ }
+ return showModalBottomSheet<BookDockDestination>(
+ context: context,
+ useSafeArea: true,
+ isScrollControlled: true,
+ builder: (ctx) => SafeArea(
+ child: ConstrainedBox(
+ constraints: BoxConstraints(maxHeight: MediaQuery.of(ctx).size.height * 0.6),
+ child: Column(mainAxisSize: MainAxisSize.min, children: [
+ Padding(
+ padding: const EdgeInsets.fromLTRB(24, 20, 24, 8),
+ child: Align(
+ alignment: Alignment.centerLeft,
+ child: Text(l.bookDockPickLibrary, style: tt.titleLarge?.copyWith(fontWeight: FontWeight.w600)),
+ ),
+ ),
+ Flexible(
+ child: ListView(shrinkWrap: true, padding: const EdgeInsets.only(bottom: 16), children: [
+ for (final d in destinations)
+ ListTile(
+ leading: Icon(Icons.auto_stories_rounded, color: cs.onSurfaceVariant),
+ title: Text(d.libraryName),
+ subtitle: (folderCount[d.libraryId] ?? 0) > 1 ? Text(d.folderName) : null,
+ // The destination BookOrbit already set for this file.
+ trailing: d.libraryId == dock.targetLibraryId && d.folderId == dock.targetFolderId
+ ? Icon(Icons.check_circle_rounded, color: cs.primary)
+ : null,
+ onTap: () => Navigator.pop(ctx, d),
+ ),
+ ]),
+ ),
+ ]),
+ ),
+ ),
+ );
+ }
+
+ Future<void> _removeDockItem(BuildContext context, AuthProvider auth,
+ LibraryProvider lib, String title, {bool confirm = true}) async {
+ final l = AppLocalizations.of(context)!;
+ final api = auth.apiService;
+ if (api == null) return;
+ if (confirm) {
+ final ok = await showDialog<bool>(
+ context: context,
+ builder: (ctx) => AlertDialog(
+ title: Text(l.bookDockRemoveTitle),
+ content: Text(l.bookDockRemoveBody(title)),
+ actions: [
+ TextButton(onPressed: () => Navigator.pop(ctx, false), child: Text(l.cancel)),
+ TextButton(
+ onPressed: () => Navigator.pop(ctx, true),
+ child: Text(l.remove, style: TextStyle(color: Theme.of(ctx).colorScheme.error)),
+ ),
+ ],
+ ),
+ );
+ if (ok != true || !mounted || !context.mounted) return;
+ }
+ final navigator = Navigator.of(context);
+ final rootNavigator = rootNavigatorKey.currentState;
+ setState(() => _dockBusy = true);
+ final ok = await api.removeBookDockItem(widget.itemId);
+ if (!mounted) return;
+ setState(() => _dockBusy = false);
+ if (ok) {
+ if (navigator.canPop()) navigator.pop();
+ await lib.refresh();
+ showNavigatorOverlayToast(rootNavigator, l.bookDockRemoved(title),
+ icon: Icons.delete_outline_rounded);
+ } else if (context.mounted) {
+ showOverlayToast(context, l.bookDockRemoveFailed, icon: Icons.error_outline_rounded);
+ }
+ }
+
+ Future<void> _useFoundDockDetails(BuildContext context, AuthProvider auth) async {
+ final l = AppLocalizations.of(context)!;
+ final api = auth.apiService;
+ if (api == null) return;
+ setState(() => _dockBusy = true);
+ final ok = await api.useFoundBookDockDetails(widget.itemId);
+ if (!mounted) return;
+ setState(() => _dockBusy = false);
+ if (ok) await _loadItem();
+ if (!context.mounted) return;
+ showOverlayToast(context, ok ? l.bookDockDetailsUpdated : l.bookDockUseFoundFailed,
+ icon: ok ? Icons.check_circle_outline_rounded : Icons.error_outline_rounded);
+ }
+
List<Widget> _audioInfoChips(Map<String, dynamic> media) {
final audioFiles = media['audioFiles'] as List<dynamic>?;
if (audioFiles == null || audioFiles.isEmpty) return [];
diff --git a/lib/widgets/bookorbit_match_view.dart b/lib/widgets/bookorbit_match_view.dart
new file mode 100644
index 00000000..7105e318
--- /dev/null
+++ b/lib/widgets/bookorbit_match_view.dart
@@ -0,0 +1,652 @@
+import 'dart:async';
+
+import 'package:cached_network_image/cached_network_image.dart';
+import 'package:flutter/material.dart';
+
+import '../l10n/app_localizations.dart';
+import '../services/api_service.dart';
+import '../services/bookorbit_match.dart';
+import 'overlay_toast.dart';
+
+typedef MatchUpdate = ({Map<String, dynamic> metadata, String? coverUrl});
+
+/// The editor's Match tab on BookOrbit, after its web editor: every source
+/// is searched at once and ranked against the book, then a result opens a
+/// side by side comparison where each field is kept or taken from that
+/// result or another one. Nothing changes until Apply.
+class BookOrbitMatchView extends StatefulWidget {
+ final ApiService api;
+ final String itemId;
+ final MatchCurrent current;
+ final String? currentCoverUrl;
+ final Map<String, String> coverHeaders;
+ final bool isAudiobook;
+
+ /// Saves the picked values; true when it worked.
+ final Future<bool> Function(MatchUpdate update) onApply;
+
+ const BookOrbitMatchView({
+ super.key,
+ required this.api,
+ required this.itemId,
+ required this.current,
+ required this.onApply,
+ this.currentCoverUrl,
+ this.coverHeaders = const {},
+ this.isAudiobook = true,
+ });
+
+ @override
+ State<BookOrbitMatchView> createState() => _BookOrbitMatchViewState();
+}
+
+class _BookOrbitMatchViewState extends State<BookOrbitMatchView> with AutomaticKeepAliveClientMixin {
+ late final _titleCtrl = TextEditingController(text: widget.current.title);
+ late final _authorCtrl = TextEditingController(text: widget.current.authors.join(', '));
+ late final _isbnCtrl = TextEditingController(text: widget.current.isbn);
+
+ List<Map<String, String>> _providers = const [];
+ final List<MatchCandidate> _results = [];
+ final Map<String, String> _stopped = {};
+ StreamSubscription<MatchSearchEvent>? _search;
+ bool _streaming = false;
+ bool _searched = false;
+ String? _searchError;
+ bool _showOther = false;
+
+ MatchCandidate? _active;
+ final Map<MatchField, MatchCandidate> _picks = {};
+ MatchCandidate? _coverPick;
+ bool _mergeGenres = true;
+ bool _onlyDifferences = true;
+ final Set<MatchField> _othersOpen = {};
+ bool _applying = false;
+
+ @override
+ void initState() {
+ super.initState();
+ widget.api.bookMatchProviders().then((list) {
+ if (mounted && list != null) setState(() => _providers = list);
+ });
+ _runSearch();
+ }
+
+ @override
+ void dispose() {
+ _search?.cancel();
+ _titleCtrl.dispose();
+ _authorCtrl.dispose();
+ _isbnCtrl.dispose();
+ super.dispose();
+ }
+
+ void _runSearch() {
+ FocusManager.instance.primaryFocus?.unfocus();
+ _search?.cancel();
+ setState(() {
+ _results.clear();
+ _stopped.clear();
+ _streaming = true;
+ _searched = true;
+ _searchError = null;
+ _active = null;
+ });
+ _search = widget.api
+ .searchMatches(
+ widget.itemId,
+ title: _titleCtrl.text,
+ author: _authorCtrl.text,
+ isbn: _isbnCtrl.text,
+ isAudiobook: widget.isAudiobook,
+ )
+ .listen(
+ (event) {
+ if (!mounted) return;
+ setState(() {
+ final c = event.candidate;
+ if (c != null) {
+ if (!_results.any((r) => r.key == c.key)) _results.add(c);
+ } else if (event.provider != null) {
+ _stopped[event.provider!] = event.outcome ?? 'failed';
+ }
+ });
+ },
+ onError: (Object e) {
+ debugPrint('[BookOrbit] match search failed: $e');
+ if (mounted) setState(() {
+ _streaming = false;
+ _searchError = '$e';
+ });
+ },
+ onDone: () {
+ if (mounted) setState(() => _streaming = false);
+ },
+ cancelOnError: true,
+ );
+ }
+
+ String _providerLabel(String key) {
+ for (final p in _providers) {
+ if (p['key'] == key) return p['label'] ?? key;
+ }
+ if (key == 'audnexus') return 'Audnexus';
+ return key.isEmpty ? key : '${key[0].toUpperCase()}${key.substring(1)}';
+ }
+
+ List<String> get _providerOrder => [for (final p in _providers) p['key'] ?? ''];
+
+ String _fieldLabel(AppLocalizations l, MatchField field) => switch (field) {
+ MatchField.title => l.titleLabel,
+ MatchField.subtitle => l.subtitleLabel,
+ MatchField.authors => l.authorLabel,
+ MatchField.narrators => l.narratorLabel,
+ MatchField.series => l.seriesLabel,
+ MatchField.description => l.descriptionLabel,
+ MatchField.publisher => l.publisherLabel,
+ MatchField.published => l.yearLabel,
+ MatchField.language => l.languageLabel,
+ MatchField.isbn => l.isbnLabel,
+ MatchField.genres => l.genresLabel,
+ };
+
+ int get _pickCount => _picks.length + (_coverPick != null ? 1 : 0);
+
+ Future<void> _apply() async {
+ final l = AppLocalizations.of(context)!;
+ setState(() => _applying = true);
+ final ok = await widget.onApply(buildMatchUpdate(
+ widget.current,
+ _picks,
+ cover: _coverPick,
+ mergeGenres: _mergeGenres,
+ ));
+ if (!mounted) return;
+ setState(() {
+ _applying = false;
+ if (ok) {
+ _picks.clear();
+ _coverPick = null;
+ _active = null;
+ }
+ });
+ showOverlayToast(context, ok ? l.editMetadataUpdatedFromMatch : l.failedToUpdateMetadata,
+ icon: ok ? Icons.check_circle_outline_rounded : Icons.error_outline_rounded);
+ }
+
+ // Peeking at another tab keeps the results and picks.
+ @override
+ bool get wantKeepAlive => true;
+
+ @override
+ Widget build(BuildContext context) {
+ super.build(context);
+ final active = _active;
+ return active == null ? _buildResults(context) : _buildCompare(context, active);
+ }
+
+ // Results
+
+ Widget _buildResults(BuildContext context) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final ranked = rankMatches(_results, widget.current, providerOrder: _providerOrder);
+ final strong = ranked.where((r) => r.assessment.tier == MatchTier.strong).toList();
+ final possible = ranked.where((r) => r.assessment.tier == MatchTier.possible).toList();
+ final other = ranked.where((r) => r.assessment.tier == MatchTier.weak).toList();
+ final counts = <String, int>{};
+ for (final r in _results) {
+ counts[r.provider] = (counts[r.provider] ?? 0) + 1;
+ }
+ final sources = [
+ ..._providerOrder.where((k) => k.isNotEmpty),
+ ...counts.keys.where((k) => !_providerOrder.contains(k)),
+ ];
+
+ InputDecoration field(String label) => InputDecoration(
+ labelText: label,
+ isDense: true,
+ border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
+ );
+
+ return ListView(padding: const EdgeInsets.fromLTRB(16, 16, 16, 32), children: [
+ TextField(controller: _titleCtrl, decoration: field(l.titleLabel), onSubmitted: (_) => _runSearch()),
+ const SizedBox(height: 8),
+ Row(children: [
+ Expanded(flex: 3, child: TextField(controller: _authorCtrl, decoration: field(l.authorLabel), onSubmitted: (_) => _runSearch())),
+ const SizedBox(width: 8),
+ Expanded(flex: 2, child: TextField(controller: _isbnCtrl, decoration: field(l.isbnLabel), onSubmitted: (_) => _runSearch())),
+ ]),
+ const SizedBox(height: 10),
+ SizedBox(
+ width: double.infinity,
+ child: FilledButton.icon(
+ onPressed: _runSearch,
+ icon: _streaming
+ ? SizedBox(width: 16, height: 16, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))
+ : const Icon(Icons.travel_explore_rounded, size: 18),
+ label: Text(_streaming ? l.bomatchSearching : l.bomatchSearchAll),
+ ),
+ ),
+ if (sources.isNotEmpty) ...[
+ const SizedBox(height: 10),
+ Wrap(spacing: 6, runSpacing: 6, children: [
+ for (final key in sources) _sourceChip(context, key, counts[key] ?? 0),
+ ]),
+ ],
+ const SizedBox(height: 12),
+ if (_searchError != null)
+ Text(l.bomatchSearchFailed, style: tt.bodySmall?.copyWith(color: cs.error))
+ else if (_searched && !_streaming && _results.isEmpty)
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 24),
+ child: Center(child: Text(l.bomatchNoResults, style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant))),
+ ),
+ if (strong.isNotEmpty) ...[
+ _sectionTitle(context, l.bomatchStrong),
+ for (final r in strong) _resultRow(context, r.candidate, r.assessment),
+ ],
+ if (possible.isNotEmpty) ...[
+ _sectionTitle(context, l.bomatchPossible),
+ for (final r in possible) _resultRow(context, r.candidate, r.assessment),
+ ],
+ if (other.isNotEmpty) ...[
+ InkWell(
+ borderRadius: BorderRadius.circular(8),
+ onTap: () => setState(() => _showOther = !_showOther),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 10),
+ child: Row(children: [
+ Text(l.bomatchOther(other.length),
+ style: tt.labelLarge?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),
+ const SizedBox(width: 4),
+ Icon(_showOther ? Icons.expand_less_rounded : Icons.expand_more_rounded,
+ size: 18, color: cs.onSurfaceVariant),
+ ]),
+ ),
+ ),
+ if (_showOther)
+ for (final r in other) _resultRow(context, r.candidate, r.assessment),
+ ],
+ ]);
+ }
+
+ Widget _sourceChip(BuildContext context, String key, int count) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final stopped = _stopped[key];
+ final text = stopped != null
+ ? '${_providerLabel(key)} · ${switch (stopped) {
+ 'timeout' => l.bomatchSourceTimeout,
+ 'throttled' => l.bomatchSourceBusy,
+ _ => l.bomatchSourceFailed,
+ }}'
+ : '${_providerLabel(key)} · $count';
+ final color = stopped != null ? cs.error : count > 0 ? cs.primary : cs.onSurfaceVariant;
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
+ decoration: BoxDecoration(color: color.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(8)),
+ child: Row(mainAxisSize: MainAxisSize.min, children: [
+ if (_streaming && stopped == null && count == 0)
+ Padding(
+ padding: const EdgeInsets.only(right: 5),
+ child: SizedBox(width: 10, height: 10, child: CircularProgressIndicator(strokeWidth: 1.5, color: color)),
+ ),
+ Text(text, style: TextStyle(fontSize: 11, fontWeight: FontWeight.w600, color: color)),
+ ]),
+ );
+ }
+
+ Widget _sectionTitle(BuildContext context, String text) {
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ return Padding(
+ padding: const EdgeInsets.fromLTRB(0, 12, 0, 6),
+ child: Text(text, style: tt.labelLarge?.copyWith(color: cs.onSurfaceVariant, fontWeight: FontWeight.w600)),
+ );
+ }
+
+ Widget _cover(String url, {double width = 48, Map<String, String>? headers}) {
+ final cs = Theme.of(context).colorScheme;
+ final box = Container(
+ width: width,
+ height: width * 1.4,
+ color: cs.surfaceContainerHigh,
+ child: Icon(Icons.image_not_supported_outlined, size: width * 0.4, color: cs.onSurfaceVariant),
+ );
+ if (url.isEmpty) return ClipRRect(borderRadius: BorderRadius.circular(6), child: box);
+ return ClipRRect(
+ borderRadius: BorderRadius.circular(6),
+ child: CachedNetworkImage(
+ imageUrl: url,
+ // Results point at the sources' own servers, which must not get the
+ // account's token.
+ httpHeaders: headers,
+ width: width,
+ height: width * 1.4,
+ fit: BoxFit.cover,
+ placeholder: (_, __) => box,
+ errorWidget: (_, __, ___) => box,
+ ),
+ );
+ }
+
+ Widget _resultRow(BuildContext context, MatchCandidate c, MatchAssessment a) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final summary = summarizeDifferences(widget.current, c);
+ final line = [
+ if (c.authors.isNotEmpty) c.authors.join(', '),
+ if (c.year.isNotEmpty) c.year,
+ ].join(' · ');
+ return Padding(
+ padding: const EdgeInsets.only(bottom: 8),
+ child: Material(
+ color: cs.surfaceContainerHigh,
+ borderRadius: BorderRadius.circular(12),
+ clipBehavior: Clip.antiAlias,
+ child: InkWell(
+ onTap: () => setState(() {
+ _active = c;
+ _othersOpen.clear();
+ }),
+ child: Padding(
+ padding: const EdgeInsets.all(10),
+ child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ _cover(c.coverUrl),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(c.title.isEmpty ? '-' : c.title, maxLines: 2, overflow: TextOverflow.ellipsis,
+ style: tt.bodyMedium?.copyWith(fontWeight: FontWeight.w600)),
+ if (line.isNotEmpty)
+ Text(line, maxLines: 1, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 6),
+ Wrap(spacing: 4, runSpacing: 4, children: [
+ _tag(_providerLabel(c.provider), cs.primary),
+ if (a.linked) _tag(l.bomatchLinked, Colors.green),
+ if (a.isbnMatch) _tag(l.bomatchSameIsbn, Colors.green),
+ if (a.sparse) _tag(l.bomatchFewDetails, cs.onSurfaceVariant),
+ if (summary.changes > 0) _tag(l.bomatchChanged(summary.changes), Colors.orange),
+ if (summary.fills > 0) _tag(l.bomatchNew(summary.fills), Colors.green),
+ ]),
+ ]),
+ ),
+ Icon(Icons.chevron_right_rounded, color: cs.onSurfaceVariant),
+ ]),
+ ),
+ ),
+ ),
+ );
+ }
+
+ Widget _tag(String text, Color color) => Container(
+ padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
+ decoration: BoxDecoration(color: color.withValues(alpha: 0.12), borderRadius: BorderRadius.circular(6)),
+ child: Text(text, style: TextStyle(fontSize: 10.5, fontWeight: FontWeight.w600, color: color)),
+ );
+
+ // Compare
+
+ /// Likely matches only: other books' values would be noise beside this one's.
+ List<MatchCandidate> get _alternatives => [
+ for (final r in rankMatches(_results, widget.current, providerOrder: _providerOrder))
+ if (r.assessment.tier != MatchTier.weak) r.candidate,
+ ];
+
+ Widget _buildCompare(BuildContext context, MatchCandidate active) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final alternatives = _alternatives;
+ final fields = [
+ for (final f in MatchField.values)
+ if (_showField(f, active, alternatives)) f,
+ ];
+ final actionable = [
+ for (final f in MatchField.values)
+ if (isActionable(classifyField(widget.current, active, f))) f,
+ ];
+ return Column(children: [
+ Expanded(
+ child: ListView(padding: const EdgeInsets.fromLTRB(16, 8, 16, 16), children: [
+ Align(
+ alignment: Alignment.centerLeft,
+ child: TextButton.icon(
+ onPressed: () => setState(() => _active = null),
+ icon: const Icon(Icons.arrow_back_rounded, size: 18),
+ label: Text(l.bomatchBack),
+ ),
+ ),
+ Text(active.title, style: tt.titleMedium?.copyWith(fontWeight: FontWeight.w700)),
+ Text([_providerLabel(active.provider), if (active.year.isNotEmpty) active.year].join(' · '),
+ style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(height: 12),
+ _coverRow(context, active, alternatives),
+ const SizedBox(height: 12),
+ Wrap(spacing: 8, runSpacing: 8, crossAxisAlignment: WrapCrossAlignment.center, children: [
+ OutlinedButton(
+ onPressed: () => setState(() {
+ for (final f in actionable) {
+ // A value already picked from another result stays.
+ if (classifyField(widget.current, active, f) == DiffKind.fill) _picks.putIfAbsent(f, () => active);
+ }
+ }),
+ child: Text(l.bomatchFillEmpty),
+ ),
+ OutlinedButton(
+ onPressed: () => setState(() {
+ for (final f in actionable) {
+ _picks[f] = active;
+ }
+ if (active.coverUrl.isNotEmpty) _coverPick = active;
+ }),
+ child: Text(l.bomatchTakeAll),
+ ),
+ FilterChip(
+ label: Text(l.bomatchOnlyDifferences),
+ selected: _onlyDifferences,
+ onSelected: (v) => setState(() => _onlyDifferences = v),
+ ),
+ ]),
+ const SizedBox(height: 8),
+ for (final f in fields) _fieldCard(context, active, f, alternatives),
+ ]),
+ ),
+ SafeArea(
+ top: false,
+ child: Padding(
+ padding: const EdgeInsets.fromLTRB(16, 4, 16, 12),
+ child: SizedBox(
+ width: double.infinity,
+ child: FilledButton(
+ onPressed: _pickCount == 0 || _applying ? null : _apply,
+ child: _applying
+ ? SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 2, color: cs.onPrimary))
+ : Text(l.bomatchApply(_pickCount)),
+ ),
+ ),
+ ),
+ ),
+ ]);
+ }
+
+ bool _showField(MatchField f, MatchCandidate active, List<MatchCandidate> alternatives) {
+ final kind = classifyField(widget.current, active, f);
+ if (_picks.containsKey(f)) return true;
+ if (_onlyDifferences) return isActionable(kind);
+ return kind != DiffKind.missing ||
+ currentValue(widget.current, f).isNotEmpty ||
+ otherValues(f, active, alternatives).isNotEmpty;
+ }
+
+ Widget _coverRow(BuildContext context, MatchCandidate active, List<MatchCandidate> alternatives) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final picked = _coverPick;
+ final others = [
+ for (final c in alternatives)
+ if (c.key != active.key && c.coverUrl.isNotEmpty && c.coverUrl != active.coverUrl) c,
+ ];
+ Widget labelled(Widget child, String label, {bool chosen = false}) => Column(children: [
+ Container(
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(8),
+ border: Border.all(color: chosen ? cs.primary : Colors.transparent, width: 2),
+ ),
+ child: child,
+ ),
+ const SizedBox(height: 4),
+ Text(label, style: tt.labelSmall?.copyWith(color: chosen ? cs.primary : cs.onSurfaceVariant)),
+ ]);
+ return Container(
+ padding: const EdgeInsets.all(10),
+ decoration: BoxDecoration(color: cs.surfaceContainerHigh, borderRadius: BorderRadius.circular(12)),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(l.metadataLookupCover, style: tt.labelLarge?.copyWith(fontWeight: FontWeight.w600)),
+ const SizedBox(height: 8),
+ SingleChildScrollView(
+ scrollDirection: Axis.horizontal,
+ child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ GestureDetector(
+ onTap: () => setState(() => _coverPick = null),
+ child: labelled(_cover(widget.currentCoverUrl ?? '', width: 72, headers: widget.coverHeaders),
+ l.bomatchNow, chosen: picked == null),
+ ),
+ if (active.coverUrl.isNotEmpty) ...[
+ const SizedBox(width: 10),
+ GestureDetector(
+ onTap: () => setState(() => _coverPick = active),
+ child: labelled(_cover(active.coverUrl, width: 72), _providerLabel(active.provider),
+ chosen: picked?.key == active.key),
+ ),
+ ],
+ for (final c in others) ...[
+ const SizedBox(width: 10),
+ GestureDetector(
+ onTap: () => setState(() => _coverPick = c),
+ child: labelled(_cover(c.coverUrl, width: 72), _providerLabel(c.provider),
+ chosen: picked?.key == c.key),
+ ),
+ ],
+ ]),
+ ),
+ ]),
+ );
+ }
+
+ Widget _fieldCard(BuildContext context, MatchCandidate active, MatchField f, List<MatchCandidate> alternatives) {
+ final l = AppLocalizations.of(context)!;
+ final cs = Theme.of(context).colorScheme;
+ final tt = Theme.of(context).textTheme;
+ final kind = classifyField(widget.current, active, f);
+ final picked = _picks[f];
+ final fromOther = picked != null && picked.key != active.key;
+ final now = currentValue(widget.current, f);
+ final incoming = candidateValue(picked ?? active, f);
+ final others = otherValues(f, active, alternatives);
+ final (kindLabel, kindColor) = switch (kind) {
+ DiffKind.fill => (l.bomatchKindNew, Colors.green),
+ DiffKind.change => (l.bomatchKindChange, Colors.orange),
+ DiffKind.minor => (l.bomatchKindSmall, cs.onSurfaceVariant),
+ DiffKind.same => (l.bomatchKindSame, cs.onSurfaceVariant),
+ DiffKind.missing => (l.bomatchKindNone, cs.onSurfaceVariant),
+ };
+ final maxLines = f == MatchField.description ? 6 : 3;
+ final decision = picked == null
+ ? 'keep'
+ : f == MatchField.genres
+ ? (_mergeGenres ? 'merge' : 'replace')
+ : 'use';
+ final canUse = kind != DiffKind.missing || fromOther;
+
+ return Container(
+ margin: const EdgeInsets.only(bottom: 8),
+ padding: const EdgeInsets.all(10),
+ decoration: BoxDecoration(
+ color: cs.surfaceContainerHigh,
+ borderRadius: BorderRadius.circular(12),
+ border: Border.all(color: picked != null ? cs.primary.withValues(alpha: 0.5) : Colors.transparent),
+ ),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Row(children: [
+ Text(_fieldLabel(l, f), style: tt.labelLarge?.copyWith(fontWeight: FontWeight.w600)),
+ const SizedBox(width: 6),
+ _tag(kindLabel, kindColor),
+ if (fromOther) ...[
+ const SizedBox(width: 4),
+ _tag(l.bomatchFrom(_providerLabel(picked.provider)), cs.primary),
+ ],
+ ]),
+ const SizedBox(height: 6),
+ Text(l.bomatchNow, style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ Text(now.isEmpty ? l.bomatchEmpty : now, maxLines: maxLines, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(
+ color: now.isEmpty ? cs.onSurfaceVariant : cs.onSurface,
+ fontStyle: now.isEmpty ? FontStyle.italic : null,
+ decoration: picked != null && f != MatchField.genres ? TextDecoration.lineThrough : null,
+ )),
+ const SizedBox(height: 6),
+ Text(_providerLabel((picked ?? active).provider), style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ Text(incoming.isEmpty ? l.bomatchEmpty : incoming, maxLines: maxLines, overflow: TextOverflow.ellipsis,
+ style: tt.bodySmall?.copyWith(fontWeight: FontWeight.w600)),
+ if (canUse) ...[
+ const SizedBox(height: 8),
+ SegmentedButton<String>(
+ showSelectedIcon: false,
+ style: const ButtonStyle(visualDensity: VisualDensity.compact),
+ segments: [
+ ButtonSegment(value: 'keep', label: Text(l.bomatchKeep)),
+ if (f == MatchField.genres) ...[
+ ButtonSegment(value: 'merge', label: Text(l.bomatchMerge)),
+ ButtonSegment(value: 'replace', label: Text(l.bomatchReplace)),
+ ] else
+ ButtonSegment(value: 'use', label: Text(l.bomatchUse)),
+ ],
+ selected: {decision},
+ onSelectionChanged: (s) => setState(() {
+ final next = s.first;
+ if (next == 'keep') {
+ _picks.remove(f);
+ } else {
+ _picks[f] = picked ?? active;
+ if (f == MatchField.genres) _mergeGenres = next == 'merge';
+ }
+ }),
+ ),
+ ],
+ if (others.isNotEmpty) ...[
+ const SizedBox(height: 4),
+ TextButton(
+ style: TextButton.styleFrom(padding: EdgeInsets.zero, visualDensity: VisualDensity.compact),
+ onPressed: () => setState(() {
+ if (!_othersOpen.add(f)) _othersOpen.remove(f);
+ }),
+ child: Text(l.bomatchOtherSources(others.length)),
+ ),
+ if (_othersOpen.contains(f))
+ for (final o in others)
+ Padding(
+ padding: const EdgeInsets.only(bottom: 6),
+ child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Expanded(
+ child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Text(o.from.map((c) => _providerLabel(c.provider)).toSet().join(', '),
+ style: tt.labelSmall?.copyWith(color: cs.onSurfaceVariant)),
+ Text(o.value, maxLines: maxLines, overflow: TextOverflow.ellipsis, style: tt.bodySmall),
+ ]),
+ ),
+ TextButton(
+ onPressed: () => setState(() => _picks[f] = o.from.first),
+ child: Text(o.from.any((c) => c.key == picked?.key) ? l.bomatchChosen : l.bomatchUseThis),
+ ),
+ ]),
+ ),
+ ],
+ ]),
+ );
+ }
+}
diff --git a/lib/widgets/edit_metadata_sheet.dart b/lib/widgets/edit_metadata_sheet.dart
index 45a0d56a..e33e254d 100644
--- a/lib/widgets/edit_metadata_sheet.dart
+++ b/lib/widgets/edit_metadata_sheet.dart
@@ -6,8 +6,10 @@ import 'package:cached_network_image/cached_network_image.dart';
import '../l10n/app_localizations.dart';
import '../providers/auth_provider.dart';
import '../providers/library_provider.dart';
+import '../services/bookorbit_match.dart';
import '../services/socket_service.dart';
import '../screens/chapter_editor_screen.dart';
+import 'bookorbit_match_view.dart';
import 'overlay_toast.dart';
enum _ETab { details, cover, chapters, match, encode, embed }
@@ -31,6 +33,8 @@ class MetadataEditView extends StatefulWidget {
final bool isEbookOnly;
final bool isAdmin;
final String? libraryId;
+ /// A BookOrbit Book Dock file: details, a cover URL and matching only.
+ final bool isBookDock;
const MetadataEditView({
super.key,
@@ -44,6 +48,7 @@ class MetadataEditView extends StatefulWidget {
this.isEbookOnly = false,
this.isAdmin = false,
this.libraryId,
+ this.isBookDock = false,
});
@override
@@ -134,6 +139,125 @@ class _MetadataEditViewState extends State<MetadataEditView>
});
}
+ // The ids a BookOrbit book already holds per source, so a result with the
+ // same source and id shows as linked.
+ Map<String, String> _matchProviderIds = const {};
+
+ Future<void> _loadMatchProviderIds() async {
+ final api = context.read<AuthProvider>().apiService;
+ if (api == null || !api.isBookOrbit) return;
+ final item = await api.getLibraryItem(widget.itemId);
+ if (!mounted || item == null) return;
+ setState(() => _matchProviderIds = _providerIdsOf(item));
+ }
+
+ static Map<String, String> _providerIdsOf(Map item) {
+ final ids = ((item['bookDock'] ?? item['bookOrbit']) as Map?)?['providerIds'];
+ return {
+ if (ids is Map)
+ for (final e in ids.entries)
+ if ('${e.value ?? ''}'.trim().isNotEmpty) '${e.key}': '${e.value}'.trim(),
+ };
+ }
+
+ MatchCurrent _matchCurrent() {
+ List<String> split(String s) => [
+ for (final p in s.split(','))
+ if (p.trim().isNotEmpty) p.trim(),
+ ];
+ return MatchCurrent(
+ title: _titleCtrl.text.trim(),
+ subtitle: _subtitleCtrl.text.trim(),
+ authors: split(_authorCtrl.text),
+ narrators: split(_narratorCtrl.text),
+ genres: split(_genresCtrl.text),
+ description: _descCtrl.text.trim(),
+ publisher: _publisherCtrl.text.trim(),
+ published: _yearCtrl.text.trim(),
+ language: _languageCtrl.text.trim(),
+ isbn: _isbnCtrl.text.trim(),
+ series: [
+ for (final row in _seriesRows)
+ if (row.name.text.trim().isNotEmpty)
+ (name: row.name.text.trim(), index: row.seq.text.trim().isEmpty ? null : row.seq.text.trim()),
+ ],
+ providerIds: _matchProviderIds,
+ );
+ }
+
+ Future<bool> _applyBookOrbitMatch(MatchUpdate update) async {
+ final api = context.read<AuthProvider>().apiService;
+ if (api == null) return false;
+ final saved = update.metadata.isEmpty || await api.updateItemMedia(widget.itemId, update.metadata);
+ var ok = saved;
+ if (saved && update.coverUrl != null) {
+ ok = await api.updateItemCoverUrl(widget.itemId, update.coverUrl!, coverSlot: _coverSlot);
+ }
+ // Picks up the new cover and source ids.
+ final item = await api.getLibraryItem(widget.itemId);
+ if (!mounted) return ok;
+ setState(() {
+ if (saved) _takeMatchedValues(update.metadata);
+ if (item != null) _matchProviderIds = _providerIdsOf(item);
+ _coverVersion++;
+ });
+ context.read<LibraryProvider>().refresh();
+ return ok;
+ }
+
+ /// Puts applied match values into the form. Fields the match left alone
+ /// keep whatever was typed into them.
+ void _takeMatchedValues(Map<String, dynamic> m) {
+ String joined(Object? v) => v is List
+ ? [
+ for (final e in v)
+ if ('${e is Map ? e['name'] ?? '' : e ?? ''}'.trim().isNotEmpty)
+ '${e is Map ? e['name'] : e}'.trim(),
+ ].join(', ')
+ : '${v ?? ''}';
+ final fields = {
+ 'title': _titleCtrl,
+ 'subtitle': _subtitleCtrl,
+ 'authors': _authorCtrl,
+ 'narrators': _narratorCtrl,
+ 'description': _descCtrl,
+ 'publisher': _publisherCtrl,
+ 'publishedYear': _yearCtrl,
+ 'language': _languageCtrl,
+ 'isbn': _isbnCtrl,
+ 'genres': _genresCtrl,
+ };
+ fields.forEach((key, ctrl) {
+ if (m.containsKey(key)) ctrl.text = joined(m[key]);
+ });
+ final series = m['series'];
+ if (series is List) {
+ final previous = List.of(_seriesRows);
+ _seriesRows
+ ..clear()
+ ..addAll([
+ for (final s in series.whereType<Map>())
+ (
+ name: TextEditingController(text: _safeString(s['name'])),
+ seq: TextEditingController(text: _safeString(s['sequence'])),
+ ),
+ ]);
+ if (_seriesRows.isEmpty) {
+ _seriesRows.add((name: TextEditingController(), seq: TextEditingController()));
+ }
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ for (final row in previous) {
+ row.name.dispose();
+ row.seq.dispose();
+ }
+ });
+ }
+ _searchTitleCtrl.text = _titleCtrl.text;
+ _searchAuthorCtrl.text = _authorCtrl.text;
+ _coverSearchTitleCtrl.text = _titleCtrl.text;
+ _coverSearchAuthorCtrl.text = _authorCtrl.text;
+ }
+
List<String> get _bookOrbitCoverProviders =>
['duckduckgo', 'itunes', if (_coverSlot != 'ebook') 'audiobookcovers', 'all'];
@@ -164,15 +288,20 @@ class _MetadataEditViewState extends State<MetadataEditView>
@override
void initState() {
super.initState();
+ final media = !widget.isEbookOnly && !widget.isBookDock;
_tabs = [
_ETab.details,
_ETab.cover,
- if (!widget.isEbookOnly) _ETab.chapters,
+ if (media) _ETab.chapters,
_ETab.match,
- if (widget.isAdmin && !widget.isEbookOnly) _ETab.encode,
- if (widget.isAdmin && !widget.isEbookOnly) _ETab.embed,
+ if (widget.isAdmin && media) _ETab.encode,
+ if (widget.isAdmin && media) _ETab.embed,
];
_tabCtrl = TabController(length: _tabs.length, vsync: this);
+ // The match tab compares against the form, so it needs the latest edits.
+ _tabCtrl.addListener(() {
+ if (mounted && _tabs[_tabCtrl.index] == _ETab.match) setState(() {});
+ });
// Listen for encode progress/finish for the editor's lifetime so a running
// encode shows up even if it was started elsewhere (e.g. the web UI).
SocketService()
@@ -185,6 +314,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
_loadFilterSuggestions();
_loadServerProviders();
_loadCoverSlots();
+ _loadMatchProviderIds();
final m = widget.metadata;
_titleCtrl = TextEditingController(text: m['title'] as String? ?? '');
_subtitleCtrl = TextEditingController(text: m['subtitle'] as String? ?? '');
@@ -1208,6 +1338,18 @@ class _MetadataEditViewState extends State<MetadataEditView>
// ─── Quick Match Tab ────────────────────────────────────────
Widget _buildQuickMatchTab(ColorScheme cs, TextTheme tt, AppLocalizations l) {
+ final api = context.read<AuthProvider>().apiService;
+ if (api != null && api.isBookOrbit) {
+ return BookOrbitMatchView(
+ api: api,
+ itemId: widget.itemId,
+ current: _matchCurrent(),
+ currentCoverUrl: api.getCoverUrl(widget.itemId, width: null, coverSlot: _coverSlot),
+ coverHeaders: api.mediaHeaders,
+ isAudiobook: !widget.isEbookOnly,
+ onApply: _applyBookOrbitMatch,
+ );
+ }
return Column(children: [
Padding(
padding: const EdgeInsets.fromLTRB(20, 16, 20, 0),
@@ -1620,7 +1762,7 @@ class _MetadataEditViewState extends State<MetadataEditView>
),
),
),
- if (base.isNotEmpty) ...[
+ if (base.isNotEmpty && !widget.isBookDock) ...[
const SizedBox(height: 8),
Center(
child: TextButton.icon(
@@ -1648,14 +1790,17 @@ class _MetadataEditViewState extends State<MetadataEditView>
onChanged: (_) => setState(() => _coverFilePath = null),
),
),
- const SizedBox(width: 8),
- Text(l.or, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
- const SizedBox(width: 8),
- FilledButton.tonalIcon(
- onPressed: _pickCoverImage,
- icon: const Icon(Icons.image_rounded, size: 18),
- label: Text(l.file),
- ),
+ // The server only takes a cover URL for a dock file.
+ if (!widget.isBookDock) ...[
+ const SizedBox(width: 8),
+ Text(l.or, style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant)),
+ const SizedBox(width: 8),
+ FilledButton.tonalIcon(
+ onPressed: _pickCoverImage,
+ icon: const Icon(Icons.image_rounded, size: 18),
+ label: Text(l.file),
+ ),
+ ],
]),
if (_coverFilePath != null)
Padding(
diff --git a/lib/widgets/library_picker_sheet.dart b/lib/widgets/library_picker_sheet.dart
index a63bf8c7..d9861a4c 100644
--- a/lib/widgets/library_picker_sheet.dart
+++ b/lib/widgets/library_picker_sheet.dart
@@ -76,9 +76,11 @@ Future<void> showLibraryPickerSheet(
final isSelected = id == lib.selectedLibraryId;
return ListTile(
leading: Icon(
- mediaType == 'podcast'
- ? Icons.podcasts_rounded
- : Icons.auto_stories_rounded,
+ library['bookDock'] == true
+ ? Icons.move_to_inbox_rounded
+ : mediaType == 'podcast'
+ ? Icons.podcasts_rounded
+ : Icons.auto_stories_rounded,
color: isSelected ? cs.primary : cs.onSurfaceVariant,
),
title: Text(name),
diff --git a/lib/widgets/nav_hold_options.dart b/lib/widgets/nav_hold_options.dart
index 56e23585..e321613c 100644
--- a/lib/widgets/nav_hold_options.dart
+++ b/lib/widgets/nav_hold_options.dart
@@ -35,6 +35,7 @@ const navHoldOptions = [
NavHoldOption('rmabSearch', Icons.auto_stories_rounded),
NavHoldOption('rmabRequests', Icons.playlist_add_check_rounded),
NavHoldOption('rmabWeb', Icons.public_rounded),
+ NavHoldOption('bookRequests', Icons.playlist_add_rounded),
NavHoldOption('admin', Icons.admin_panel_settings_rounded, isFolder: true),
NavHoldOption('scan', Icons.sync_rounded, isFolder: true),
NavHoldOption('menu', Icons.apps_rounded),
@@ -122,6 +123,7 @@ String navHoldLabel(
'rmabSearch' => l.navHoldRmabSearch,
'rmabRequests' => l.navHoldRmabRequests,
'rmabWeb' => l.navHoldRmabWeb,
+ 'bookRequests' => l.navHoldBookRequests,
'menu' => l.navHoldMenu,
'none' => l.navHoldNothing,
_ => id,
@@ -136,11 +138,12 @@ List<String> navHoldAllIds({
required List<String> libraryIds,
bool rmabConfigured = true,
bool rmabWeb = true,
+ bool bookRequests = true,
}) =>
[
for (final o in navHoldOptions)
if (!o.isFolder && navHoldIdAvailable(o.id,
- isAdmin: isAdmin, rmabConfigured: rmabConfigured, rmabWeb: rmabWeb))
+ isAdmin: isAdmin, rmabConfigured: rmabConfigured, rmabWeb: rmabWeb, bookRequests: bookRequests))
o.id,
if (isAdmin) ...[
for (final p in navHoldAdminPages) 'admin:$p',
@@ -157,8 +160,10 @@ bool navHoldIdAvailable(
required bool isAdmin,
required bool rmabConfigured,
required bool rmabWeb,
+ bool bookRequests = false,
}) {
if (id.startsWith('admin') || id.startsWith('scan:')) return isAdmin;
+ if (id == 'bookRequests') return bookRequests;
if (id == 'rmabWeb') return rmabWeb;
if (id.startsWith('rmab')) return rmabConfigured;
return true;
@@ -171,6 +176,7 @@ List<String> navHoldDefaultMenu({
required bool isAdmin,
required bool rmabConfigured,
required bool rmabWeb,
+ bool bookRequests = false,
}) =>
[
for (final o in navHoldOptions)
@@ -179,7 +185,8 @@ List<String> navHoldDefaultMenu({
navHoldIdAvailable(o.id,
isAdmin: isAdmin,
rmabConfigured: rmabConfigured,
- rmabWeb: rmabWeb))
+ rmabWeb: rmabWeb,
+ bookRequests: bookRequests))
o.id,
];