diff --git a/src/redux/library/library.actions.js b/src/redux/library/library.actions.js index de0e9011..59aaebad 100644 --- a/src/redux/library/library.actions.js +++ b/src/redux/library/library.actions.js @@ -11,7 +11,6 @@ import { import { restoreBackup } from "../../services/backup"; export const getLibraryAction = (sort, filter) => async (dispatch) => { - // console.log("1.", sort, filter); const res = await getLibrary(sort, filter); dispatch({ diff --git a/src/screens/Chapter/Chapter.js b/src/screens/Chapter/Chapter.js index 2b132670..2759f0b6 100644 --- a/src/screens/Chapter/Chapter.js +++ b/src/screens/Chapter/Chapter.js @@ -152,7 +152,7 @@ const Chapter = ({ route, navigation }) => { }); } else { Tts.stop(); - Tts.speak(escaped, { + Tts.speak(text, { androidParams: { KEY_PARAM_STREAM: "STREAM_MUSIC", }, @@ -570,22 +570,23 @@ const Chapter = ({ route, navigation }) => { > {htmlToText(chapter.chapterText)} - {nextChapter && ( - + - - Finished: {chapterName} - + Finished: {chapterName} + + {nextChapter ? ( { - - )} + ) : ( + + There's no next chapter + + )} + )} diff --git a/src/screens/More/BackupSettings.js b/src/screens/More/BackupSettings.js index 67897c8e..da408a8c 100644 --- a/src/screens/More/BackupSettings.js +++ b/src/screens/More/BackupSettings.js @@ -37,13 +37,13 @@ const BackupSettings = ({ navigation }) => { onPress={restoreFullBackup} theme={theme} /> - + {/* dispatch(restoreLibraryAction())} theme={theme} - /> + /> */} { let text = html; if (!text) { - return "Chapter is empty.\n\nReport if it's available in webview.'"; + return "Chapter is empty.\n\nReport if it's available in webview."; } text = text diff --git a/src/sources/helpers/constants.js b/src/sources/helpers/constants.js index 8762cf89..7397d401 100644 --- a/src/sources/helpers/constants.js +++ b/src/sources/helpers/constants.js @@ -1,3 +1,6 @@ +export const defaultCoverUri = + "https://github.com/LNReader/lnreader-sources/blob/main/src/coverNotAvailable.jpg?raw=true"; + export const Status = { ONGOING: "Ongoing", COMPLETED: "Completed", diff --git a/src/sources/helpers/htmlToText.js b/src/sources/helpers/htmlToText.js index c779af7f..ef1b56b6 100644 --- a/src/sources/helpers/htmlToText.js +++ b/src/sources/helpers/htmlToText.js @@ -2,7 +2,7 @@ const htmlToText = (html, options = {}) => { const { removeLineBreaks = true } = options; if (!html) { - return "Chapter is empty.\n\nReport if it's available in webview.'"; + return "Chapter is empty.\n\nReport if it's available in webview."; } html = html.trim();