gildas-lormeau / single-file-cli

CLI tool for saving a faithful copy of a complete web page in a single HTML file (based on SingleFile)
GNU Affero General Public License v3.0
602 stars 63 forks source link

Skips First URL in the list of URLs #13

Closed nitincodery closed 1 year ago

nitincodery commented 1 year ago

When using --urls-file option, it misses the First URL in the list.

Workaround: Add a empty line at start of the file.

This issue is present on single-filez-cli too.

nitincodery commented 1 year ago

I tried looking at code and it seemed correct to me. I couldn't find why it is skipping First URL from list :(

gildas-lormeau commented 1 year ago

So, you are not able to reproduce the issue anymore?

nitincodery commented 1 year ago

Yes, I'm not able to reproduce it anymore. Its weird, the other day it was always skipping First URL, but then yesterday with same input file it was working fine. Still, I added PR #14 with Microsoft Windows new-line regex if it was bugging due to that.