Skip to content

Commit

Permalink
fix: type for parsed torrent metadata using intermodal console app
Browse files Browse the repository at this point in the history
The announce_list is an array of arrays in the intermodal JSON output:

```
"announce-list": [
      [
         "https://academictorrents.com/announce.php"
      ],
      [
         "https://ipv6.academictorrents.com/announce.php"
      ],
      [
         "udp://tracker.opentrackr.org:1337/announce"
      ],
      [
         "udp://tracker.openbittorrent.com:80/announce"
      ],
      [
         "http://bt1.archive.org:6969/announce"
      ],
      [
         "http://bt2.archive.org:6969/announce"
      ]
   ],
```

Not an array of strings.
  • Loading branch information
josecelano committed Aug 25, 2023
1 parent 5d73608 commit 05141fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/contexts/torrent/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct TorrentFileInfo {
pub content_size: u64,
pub private: bool,
pub tracker: Option<String>,
pub announce_list: Vec<String>,
pub announce_list: Vec<Vec<String>>,
pub update_url: Option<String>,
pub dht_nodes: Vec<String>,
pub piece_size: u64,
Expand Down

0 comments on commit 05141fd

Please sign in to comment.