ImSejin / lezhin-comics-downloader

📥 Downloader for lezhin comics
https://www.lezhin.com
Apache License 2.0
56 stars 4 forks source link

Unable to download: Illegal chracter #245

Open yimeji opened 6 months ago

yimeji commented 6 months ago

Hi, You're probably busy with RL and fixing the scrambling image. Please include fix for illegal characters too. (cannot detect symbol in URL)

Thank you.

X:\Webtoons>java -jar lezhin-comics-downloader-3.1.0.jar -l=en -n=XXX -r=63~63 -d Starting ChromeDriver 120.0.6099.109 (3419140ab665596f21b385ce136419fde0924272-refs/branch-heads/6099@{#1483}) on port 13049 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Jan 20, 2024 2:27:19 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch WARNING: Unable to find CDP implementation matching 120 Jan 20, 2024 2:27:19 AM org.openqa.selenium.chromium.ChromiumDriver lambda$new$3 WARNING: Unable to find version of CDP to use for . You may need to include a dependency on a specific version of the CDP using something similar to org.seleniumhq.selenium:selenium-devtools-v86:4.9.1 where the version ("v86") matches the version of the chromium-based browser you're using and the version number of the artifact is the same as Selenium's. 2024-01-20 02:27:19.298 [INFO ] 93 --- [main] i.g.i.d.l.p.i.LoginProcessor#gotoLoginPage : Request login page: https://www.lezhinus.com/en/login 2024-01-20 02:27:22.083 [DEBUG] 98 --- [main] i.g.i.d.l.p.i.LoginProcessor#waitForRenderingLoginPage : Wait up to 15 sec for login element to be rendered 2024-01-20 02:27:22.122 [DEBUG] 105 --- [main] i.g.i.d.l.p.i.LoginProcessor#inputUsername : Send username: XXX 2024-01-20 02:27:22.209 [DEBUG] 114 --- [main] i.g.i.d.l.p.i.LoginProcessor#inputPassword : Send password: XXX 2024-01-20 02:27:22.280 [DEBUG] 122 --- [main] i.g.i.d.l.p.i.LoginProcessor#submit : Try to login 2024-01-20 02:27:22.698 [DEBUG] 130 --- [main] i.g.i.d.l.p.i.LoginProcessor#validate : Wait up to 15 sec for main page to be rendered 2024-01-20 02:27:25.103 [DEBUG] 86 --- [main] i.g.i.d.l.p.i.HttpHostsProcessor#process : Found the configuration of URL: HttpHosts(api=https://api.lezhin.com/, cdn=https://ccdn.lezhin.com/, contentsCdn=https://rcdn.lezhin.com/, reco=https://dondog.lezhin.com/, pay=https://pay.lezhin.com/, panther=https://panther.lezhin.com/) 2024-01-20 02:27:25.116 [INFO ] 99 --- [main] i.g.i.d.l.p.i.AccessTokenProcessor#process : Successfully logged in: access token(0bb1149f-ff9d-4781-97fe-9adc81cd76d8) 2024-01-20 02:27:25.116 [DEBUG] 53 --- [main] i.g.i.d.l.p.i.LocaleSelectionProcessor#process : Change locale setting: /en/locale/en-US 2024-01-20 02:27:26.935 [INFO ] 48 --- [main] i.g.i.d.l.p.i.ContentInformationProcessor#process : Request comic page: /en/comic/XXX 2024-01-20 02:27:28.514 [DEBUG] 62 --- [main] i.g.i.d.l.p.i.ContentInformationProcessor#process : Wait up to 15 sec for episode list to be rendered 2024-01-20 02:27:28.601 [DEBUG] 64 --- [main] i.g.i.d.l.a.p.s.PurchasedEpisodeService#getPurchasedEpisodeIdList : Request: https://www.lezhin.com/lz-api/v2/contents/XXX/users 2024-01-20 02:27:29.573 [DEBUG] 223 --- [main] i.g.i.d.l.p.i.DownloadProcessor$VisitingPage#getImageCountOfEpisode : Request episode page: /en/comic/XXX 2024-01-20 02:27:29.583 [ERROR] 65 --- [main] i.g.i.d.l.Application#main : Failed to perform a process java.lang.IllegalArgumentException: Illegal character in path at index 19: /en/comic/XXX at java.base/java.net.URI.create(URI.java:911) at java.base/java.net.URI.resolve(URI.java:1094) at io.github.imsejin.dl.lezhin.browser.WebBrowser.request(WebBrowser.java:186) at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor$VisitingPage.getImageCountOfEpisode(DownloadProcessor.java:224) at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.getImageCount(DownloadProcessor.java:266) at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.process(DownloadProcessor.java:103) at io.github.imsejin.dl.lezhin.process.impl.DownloadProcessor.process(DownloadProcessor.java:68) at io.github.imsejin.dl.lezhin.Application.main(Application.java:61) Caused by: java.net.URISyntaxException: Illegal character in path at index 19: /en/comic/XXX at java.base/java.net.URI$Parser.fail(URI.java:2963) at java.base/java.net.URI$Parser.checkChars(URI.java:3134) at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3216) at java.base/java.net.URI$Parser.parse(URI.java:3175) at java.base/java.net.URI.(URI.java:628) at java.base/java.net.URI.create(URI.java:909) ... 7 common frames omitted

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.