Skip to content

feat(inspect) tracker validation #59

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

s0up4200
Copy link
Collaborator

@s0up4200 s0up4200 commented Apr 10, 2025

CleanShot 2025-04-10 at 14 44 29@2x
CleanShot 2025-04-10 at 14 42 33@2x
CleanShot 2025-04-10 at 14 40 27@2x

Export to JSON:

go run . inspect Kyle.Original.Sin.S01.1080p.AMZN.WEB-DL.DDP5.1.H.264.torrent -T bhd -f json
{
  "name": "Kyles.Original.Sins.S01.1080p.AMZN.WEB-DL.DDP5.1.H.264",
  "infoHash": "3bc89c9c50be85225e439a931e17c9f5a89952b9",
  "size": 10860806205,
  "sizeFormatted": "10 GiB",
  "pieceLength": 8388608,
  "pieceLengthFormatted": "8.0 MiB",
  "numPieces": 1295,
  "isPrivate": true,
  "source": "PTP",
  "createdBy": "mkbrr/v1.7.0-6-gdc04315 (https://github.com/autobrr/mkbrr)",
  "files": [
    {
      "path": "Kyle.Original.Sin.S01E01E02.Business.and.Pleasure.1080p.AMZN.WEB-DL.DDP5.1.H.264.mkv",
      "length": 3587677166,
      "lengthFormatted": "3.3 GiB"
    },
    {
      "path": "Kyle.Original.Sin.S01E03.Code.Blues.1080p.AMZN.WEB-DL.DDP5.1.H.264.mkv",
      "length": 3570229558,
      "lengthFormatted": "3.3 GiB"
    },
    {
      "path": "Kyle.Original.Sin.S01E05.Blood.Drive.1080p.AMZN.WEB-DL.DDP5.1.H.264.mkv",
      "length": 3702899481,
      "lengthFormatted": "3.4 GiB"
    }
  ],
  "validationResults": [
    {
      "rule": "Announce URL",
      "status": "FAIL",
      "message": "Torrent does not contain an announce URL matching https://tracker.beyond-hd.me:2053/... or its known aliases."
    },
    {
      "rule": "Private Flag",
      "status": "PASS",
      "message": "Torrent is marked as private."
    },
    {
      "rule": "Piece Size Limit",
      "status": "PASS",
      "message": "Piece size 8 MiB is within tracker limit of 16 MiB."
    },
    {
      "rule": "Torrent File Size",
      "status": "INFO",
      "message": "No specific torrent file size limit known for this tracker. Current size: 25.9 KiB."
    }
  ]
}

@s0up4200 s0up4200 changed the title Feature/inspect/validate feat(inspect) tracker validation Apr 10, 2025
@s0up4200 s0up4200 marked this pull request as ready for review April 10, 2025 13:03
@s0up4200 s0up4200 added documentation Improvements or additions to documentation enhancement New feature or request go Pull requests that update go code labels Apr 10, 2025
@s0up4200 s0up4200 marked this pull request as draft April 13, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request go Pull requests that update go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant