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

Does not print properly announce list array, only the 1st character #118

Closed
PaTiToMaSteR opened this issue Apr 3, 2020 · 1 comment
Closed

Comments

@PaTiToMaSteR
Copy link

What version of this package are you using?
latest
What operating system, Node.js, and npm version?
latest, Win10, also checked in CentOS7

What happened?
No matter what you fwd in the --announceList parameter that parse-torrent will always return to you the 1st character of that string

create-torrent -o "DOWNLOADS_DIRECTORY/C0DPdy98e4c.torrent" --announceList "was://try.what.ever" --comment "YouMazeMe.com" --createdBy "Alvaro Martin - YouMazeMe.com" "DOWNLOADS_DIRECTORY/C0DPdy98e4c" && parse-torrent "DOWNLOADS_DIRECTORY/C0DPdy98e4c.torrent"

Announce list it's always the 1st character of the parameter, I tried with:
""param1","param2""
{"param1","param2"}
["param1", "param2"]

"param"
'param'

Something it's cursed there.

What did you expect to happen?
return the proper announce list
Are you willing to submit a pull request to fix this bug?
No

@alxhotel alxhotel transferred this issue from webtorrent/parse-torrent Jul 9, 2020
@alxhotel
Copy link
Member

alxhotel commented Jul 9, 2020

Thanks for the feedback, @PaTiToMaSteR.

You need to use the announce parameter multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants