Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webtorrent CLI errors when a torrent does not end with a newline #328

Closed
line-o opened this issue May 24, 2015 · 3 comments
Closed

webtorrent CLI errors when a torrent does not end with a newline #328

line-o opened this issue May 24, 2015 · 3 comments

Comments

@line-o
Copy link

@line-o line-o commented May 24, 2015

when running

▷webtorrent seed http://bitlove.org/jupiterbroadcasting/bsdnowhd/bsd-0001.m4v.torrent

you get

ERROR: ENOENT, scandir 'http://bitlove.org/jupiterbroadcasting/bsdnowhd/bsd-0001.m4v.torrent'

Manually adding a newline to the end of the torrent file fixes this.

@line-o line-o changed the title webtorrent CLI crashes when a torrent does not end with a newline webtorrent CLI errors when a torrent does not end with a newline May 24, 2015
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 24, 2015

Try updating to the latest webtorrent (I just pushed a fix), and use this command:

webtorrent download http://bitlove.org/jupiterbroadcasting/bsdnowhd/bsd-0001.m4v.torrent

webtorrent seed is meant for creating a new torrent, so it takes a path to a file or folder of content, not a .torrent file. We should improve the docs, or maybe detect when a .torrent file or magnet link is used and just do the right thing, since this issue has come up before.

@line-o

This comment has been minimized.

Copy link
Author

@line-o line-o commented May 24, 2015

OK, works fine

@line-o line-o closed this May 24, 2015
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 24, 2015

Alright, I just made the webtorrent seed command smarter. It'll change webtorrent seed to webtorrent download if you pass in a .torrent file or magnet uri. Hopefully this isn't a bad idea :-)

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
bricewge pushed a commit to bricewge/webtorrent that referenced this issue May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.