TheAxeDude / ZiniGo

Utility to backup magazines from the Zinio service as PDF, bypassing/Removing their DRM.
MIT License
49 stars 9 forks source link

panic: Get "": unsupported protocol scheme "" #16

Open morriscox opened 3 years ago

morriscox commented 3 years ago

I started using ZiniGo today. At first, I would get an error message about the connection being terminated, once forcely from the host, and I would just try again. However, I now get this error message.

Checking if issue exists: E:\Zinio/issue/[name].pdf Issue already found: E:\Zinio/issue/[name].pdf ..... Checking if issue exists: E:\Zinio/issue/[name].pdf Downloading issue: [name] Source ID: 0 panic: Get "": unsupported protocol scheme ""

goroutine 1 [running]: main.main() C:/projects/ZiniGo/Grabazine.go:124 +0x2439

E:\Zinio>

C:/projects doesn't exist for me so that folder must be on your end, though I suspect it has nothing to do with this issue. I am not using any special paramaters and I tried without and with config.json. Windows 10, build 20H2. Binary, not compiled.

TheAxeDude commented 3 years ago

Thanks for the detail, will take a look.

TheAxeDude commented 3 years ago

Can you confirm that in the log, there is nothing after the word "Source"? If so, I think this is a new case - where there is no SVG link to the page. I might need you to let me know what the magazine/issue is so I can take a closer look.

Checking if issue exists: E:\Zinio/issue/[name].pdf Downloading issue: [name] Source ID: 0

morriscox commented 3 years ago

E:\Zinio>zinigo Config file loaded Username taken from config file password taken from config file chromepath taken from config file Starting the application... Loading HTML template template.html not found, or empty. using built in template. Consider changing this if your files are cropped. Resolved working directory to: E:\Zinio Checking if issue exists: E:\Zinio/issue/Para Ti - Argentina - 20-ene-17.pdf Issue already found: E:\Zinio/issue/Para Ti - Argentina - 20-ene-17.pdf Checking if issue exists: E:\Zinio/issue/Para Ti - Argentina - 13-ene-17.pdf Downloading issue: Para Ti - Argentina - 13-ene-17 Source ID: 0 panic: Get "": unsupported protocol scheme ""

goroutine 1 [running]: main.main() C:/projects/ZiniGo/Grabazine.go:124 +0x2439

E:\Zinio>

On Sat, Mar 27, 2021 at 2:06 AM TheAxeDude @.***> wrote:

Can you confirm that in the log, there is nothing after the word "Source"? If so, I think this is a new case - where there is no SVG link to the page. I might need you to let me know what the magazine/issue is so I can take a closer look.

Checking if issue exists: E:\Zinio/issue/[name].pdf Downloading issue: [name] Source ID: 0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TheAxeDude/ZiniGo/issues/16#issuecomment-808696809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS4X6ZNLT3CDQJGJWWAKZLTFWN23ANCNFSM4Z4LVLNQ .

-- Morris Cox

morriscox commented 3 years ago

I created a dummy file and it started running again.

morriscox commented 3 years ago

Can you confirm that in the log, there is nothing after the word "Source"? If so, I think this is a new case - where there is no SVG link to the page. I might need you to let me know what the magazine/issue is so I can take a closer look.

Checking if issue exists: E:\Zinio/issue/[name].pdf Downloading issue: [name] Source ID: 0

I have that error again but with another file. Source is still blank.


Downloading issue: Newsweek - 03_03_2017 Source ID: 0 panic: Get "": unsupported protocol scheme ""

goroutine 1 [running]: main.main() C:/projects/ZiniGo/Grabazine.go:124 +0x2439

E:\Zinio>

TheAxeDude commented 3 years ago

Thanks, I havent been able to find a way (yet) to dig into the cause of this. I have just pushed a fix for this, which skips pages where the Source is empty.

morriscox commented 3 years ago

Working great. Thanks.

morriscox commented 3 years ago

Drat. I was certain that it was fixed since ZiniGo was running again. I tried 3 times again this time and no luck. Maybe a way that we can blacklist a particular issue/filename?

Checking if issue exists: E:\Zinio/issue/Newsweek - 03_03_2017.pdf Downloading issue: Newsweek - 03_03_2017 Source ID: 0 panic: Get "": unsupported protocol scheme ""

goroutine 1 [running]: main.main() C:/projects/ZiniGo/Grabazine.go:124 +0x2439

E:\Zinio>