mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix an error with empty pages from downloaded chapters (images not found)
This commit is contained in:
		| @@ -268,7 +268,7 @@ public class DownloadManager { | ||||
|     // Get the filename for an image given the page | ||||
|     private String getImageFilename(Page page) { | ||||
|         String url = page.getImageUrl(); | ||||
|         return Uri.parse(url).getLastPathSegment(); | ||||
|         return Uri.parse(url).getLastPathSegment().replaceAll("[^\\sa-zA-Z0-9.-]", "_"); | ||||
|     } | ||||
|  | ||||
|     private boolean isImageDownloaded(File imagePath) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user