Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Examples

piperun edited this page Feb 19, 2019 · 2 revisions

Examples

Examples here are meant to showcase how to utilize bredit, the mock data of .torrent files is for demonstration only.

Single file:

Command:

   bredit -k="encoding" -val="UTF-8" /home/user/.session/Alice\ in\ Wonderland.torrent

Original:

{
   "announce": "http://bttracker.debian.org:6969/announce",
   "comment": "\"Debian CD from cdimage.debian.org\"",
   "creation date": 1550321413,
   "encoding": "SHIFT-JIS",
   "httpseeds": [
      "https://cdimage.debian.org/dedebian-9.8.0-amd64-netinst.iso",
      "https://cdimage.debian.org/debian-9.8.0-amd64-netinst.iso"
   ],
   "info": {
      "length": 306184192,
      "name": "debian-9.8.0-amd64-netinst.iso",
      "piece length": 262144,
      "pieces": "<hex>68 65 78 20 76 61 6c 75 65 73<hex>"
   }
}

Result:

{
   "announce": "http://bttracker.debian.org:6969/announce",
   "comment": "\"Debian CD from cdimage.debian.org\"",
   "creation date": 1550321413,
   "encoding": "UTF-8",
   "httpseeds": [
      "https://cdimage.debian.org/dedebian-9.8.0-amd64-netinst.iso",
      "https://cdimage.debian.org/debian-9.8.0-amd64-netinst.iso"
   ],
   "info": {
      "length": 306184192,
      "name": "debian-9.8.0-amd64-netinst.iso",
      "piece length": 262144,
      "pieces": "<hex>68 65 78 20 76 61 6c 75 65 73<hex>"
   }
}

Folder

Command:

   bredit -k="creation date" -val=-49436423760 /home/user/.session/

Original:

{
   "announce": "http://bttracker.debian.org:6969/announce",
   "comment": "\"Debian CD from cdimage.debian.org\"",
   "creation date": 1550321413,
   "encoding": "UTF-8",
   "httpseeds": [
      "https://cdimage.debian.org/dedebian-9.8.0-amd64-netinst.iso",
      "https://cdimage.debian.org/debian-9.8.0-amd64-netinst.iso"
   ],
   "info": {
      "length": 306184192,
      "name": "debian-9.8.0-amd64-netinst.iso",
      "piece length": 262144,
      "pieces": "<hex>68 65 78 20 76 61 6c 75 65 73<hex>"
   }
}

Result:

{
   "announce": "http://bttracker.debian.org:6969/announce",
   "comment": "\"Debian CD from cdimage.debian.org\"",
   "creation date": -49436423760,
   "encoding": "UTF-8",
   "httpseeds": [
      "https://cdimage.debian.org/dedebian-9.8.0-amd64-netinst.iso",
      "https://cdimage.debian.org/debian-9.8.0-amd64-netinst.iso"
   ],
   "info": {
      "length": 306184192,
      "name": "debian-9.8.0-amd64-netinst.iso",
      "piece length": 262144,
      "pieces": "<hex>68 65 78 20 76 61 6c 75 65 73<hex>"
   }
}

Clone this wiki locally

⌂ 换网址