direct-connect / go-dcpp

Hybrid Direct Connect hub written in Go.
BSD 3-Clause "New" or "Revised" License
36 stars 9 forks source link

Give a shorter version for encoding #31

Closed Kcchouette closed 5 years ago

Kcchouette commented 5 years ago

What I have:

# /root/go-dcpp/dcping ping "dchub://XXXXXXX:421" --out=xml
<Hub Name="Yeah-Hub" Address="dchub://XXXXXXX:421" Encoding="WINDOWS-1250" Shared="142122682261" Software="Verlihub" Status="Online" Users="8"></Hub>

What I would like to have:

# /root/go-dcpp/dcping ping "dchub://XXXXXXX:421" --out=xml
<Hub Name="Yeah-Hub" Address="dchub://XXXXXXX:421" Encoding="CP1250" Shared="142122682261" Software="Verlihub" Status="Online" Users="8"></Hub>

Is it possible to do that at your side? Thanks in advance

dennwc commented 5 years ago

The encoding field follows W3C recommendation, but you are right, I can convert them for XML output so it will be more compatible with existing implementations.

Kcchouette commented 5 years ago

Like you want. I can do it on my side if you do not want to add this request :stuck_out_tongue_winking_eye: