mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-13 15:07:31 +01:00
Fix an error with empty pages from downloaded chapters (images not found)
This commit is contained in:
parent
4bf15a5a2c
commit
111ec5541f
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ public class DownloadManager {
|
||||||
// Get the filename for an image given the page
|
// Get the filename for an image given the page
|
||||||
private String getImageFilename(Page page) {
|
private String getImageFilename(Page page) {
|
||||||
String url = page.getImageUrl();
|
String url = page.getImageUrl();
|
||||||
return Uri.parse(url).getLastPathSegment();
|
return Uri.parse(url).getLastPathSegment().replaceAll("[^\\sa-zA-Z0-9.-]", "_");
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isImageDownloaded(File imagePath) {
|
private boolean isImageDownloaded(File imagePath) {
|
||||||
|
|
Loading…
Reference in a new issue