Skip to content

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

@PaTiToMaSteR

Description

@PaTiToMaSteR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions