Jackett / Jackett

API Support for your favorite torrent trackers
GNU General Public License v2.0
12.31k stars 1.3k forks source link

[req]: Feature request - Add Tracker type to torznab/api/results #12963

Closed swannie-eire closed 2 years ago

swannie-eire commented 2 years ago

Is there already a request for your feature?

Is your feature request related to a problem? Please describe.

The results of a search do not provide the tracker type e.g private, public etc.. I want to do different things depending on the tracker type but unfortunately the only way to do that is to keep a list of the trackers for each type in my custom app and have it check based on tracker name what to do.

Describe the solution you'd like

Include the tracker type in the torznab/api/results that way i wont have to maintain a list of trackers for each type. this is what the current result and you can see its missing tracker type.

{
    "FirstSeen": "0001-01-01T00:00:00",
    "Tracker": "LimeTorrents",
    "TrackerId": "limetorrents",
    "CategoryDesc": "TV",
    "BlackholeLink": null,
    "Title": "go into pastimes E01 E12 with intro credits etc removed Cumulative Update 01 FARGAZE",
    "Guid": "https://www.limetorrents.pro/go-into-pastimes-E01-E12-with-intro--credits-etc-removed--Cumulative-Update-01--FARGAZE-torrent-10385307.html",
    "Link": "http://10.0.0.125:9117/dl/limetorrents/?jackett_apikey=XXXXXXXXXXXXXXXXXX&path=Q2ZESjhMR0lXZGRCNHZGSHJ1d0w2d0MzUTgzcEgxSDRoa1Aza205QzBwcU1ubDhKbW0zV3ZXd1A4R3prN011TkliY1YtNFlMUEllOVJacUFkRTFGNWc5UzRsdVVzX0lOVC1sVVJBR0tQenNiVmlrXzJqSFNtazR5M0VucElaM1FGWFZFNGNSejBtOVVqamx5dXFlOHhLX2tjdW45ZHdlZ3lIQ2JIZFdUNlByUGwwNVAwMDhsRzRRT2JDOWxWcHRBZF9HbEg4STQ1WmtMZWNyLXJnNGdOdkU3OWVmbzQ4VFEyVEJ2LWJHeno3bE5Pdy1WSWxjUHMwZXUyMlJ6aF80Y2o2c1dGU3gxX2l6LU1LRGh0VE1xeXd3Z1lNdm1qQzJ3bmpvX1pubVVNc2lCZUl5Yg&file=go+into+pastimes+E01+E12+with+intro++credits+etc+removed++Cumulative+Update+01++FARGAZE",
    "Details": "https://www.limetorrents.pro/go-into-pastimes-E01-E12-with-intro--credits-etc-removed--Cumulative-Update-01--FARGAZE-torrent-10385307.html",
    "PublishDate": "2021-02-18T10:10:15.4410384+00:00",
    "Category": [5000, 112972],
    "Size": 7194070016,
    "Files": null,
    "Grabs": null,
    "Description": null,
    "RageID": null,
    "TVDBId": null,
    "Imdb": null,
    "TMDb": null,
    "Author": null,
    "BookTitle": null,
    "Seeders": 2,
    "Peers": 7,
    "Poster": null,
    "InfoHash": null,
    "MagnetUri": null,
    "MinimumRatio": null,
    "MinimumSeedTime": null,
    "DownloadVolumeFactor": 0.0,
    "UploadVolumeFactor": 1.0,
    "Gain": 13.399999618530273
}

Describe alternatives you've considered

No response

garfield69 commented 2 years ago

v0.20.590

swannie-eire commented 2 years ago

@garfield69 @ilike2burnthing Was this field TrackerType also added to the torzbad result as i can see it in the api result but not the torznab result?

heres what im seeing.

torznab

    <item>
      <title>some test</title>
      <guid>https://www.limetorrents.pro/some-test-torrent-17134183.html</guid>
      <jackettindexer id="limetorrents">LimeTorrents</jackettindexer>
      <comments>https://www.limetorrents.pro/some-test-torrent-17134183.html</comments>
      <pubDate>Tue, 22 Feb 2022 09:51:21 +0000</pubDate>
      <size>2523293184</size>
      <description />
      <link>http://10.0.0.125:9117/dl/limetorrents/?jackett_apikey=ppocpie7a6c4wd6txw3vxbbm3g40spme&amp;path=Q2ZESjhMR0lXZGRCNHZGSHJ1d0w2d0MzUTgzeXBoTXV6aDV1bnRIUjlwdlM2RlIyTVZHN2JYeTZQejM1MERGN05YY0FYRjItZGdmU2d0WTZGRDA4bFh4OGFReUxrUHBvM0VCR0N4QVBnTUo2a0EtaWdQcHU3X2R6ckFwYTgyeENic2h0cTdhNU5LRTYybmZtbnpsTW1QZ2loQXB4S2trUUEyZGVBT2dSSTBuT282WE5IbU9IN0lqNFdvS3V0dkZDUWdLVnln&amp;file=some+test</link>
      <category>8000</category>
      <category>127246</category>
      <enclosure url="http://10.0.0.125:9117/dl/limetorrents/?jackett_apikey=ppocpie7a6c4wd6txw3vxbbm3g40spme&amp;path=Q2ZESjhMR0lXZGRCNHZGSHJ1d0w2d0MzUTgzeXBoTXV6aDV1bnRIUjlwdlM2RlIyTVZHN2JYeTZQejM1MERGN05YY0FYRjItZGdmU2d0WTZGRDA4bFh4OGFReUxrUHBvM0VCR0N4QVBnTUo2a0EtaWdQcHU3X2R6ckFwYTgyeENic2h0cTdhNU5LRTYybmZtbnpsTW1QZ2loQXB4S2trUUEyZGVBT2dSSTBuT282WE5IbU9IN0lqNFdvS3V0dkZDUWdLVnln&amp;file=some+test" length="2523293184" type="application/x-bittorrent" />
      <torznab:attr name="category" value="8000" />
      <torznab:attr name="category" value="127246" />
      <torznab:attr name="seeders" value="62" />
      <torznab:attr name="peers" value="724" />
      <torznab:attr name="downloadvolumefactor" value="0" />
      <torznab:attr name="uploadvolumefactor" value="1" />
    </item>

vs

API

{
  "FirstSeen": "0001-01-01T00:00:00",
  "Tracker": "LimeTorrents",
  "TrackerId": "limetorrents",
  "TrackerType": "public",
  "CategoryDesc": "Other",
  "BlackholeLink": null,
  "Title": "some test",
  "Guid": "https://www.limetorrents.pro/some-test-torrent-17134183.html",
  "Link": "http://10.0.0.125:9117/dl/limetorrents/?jackett_apikey=ppocpie7a6c4wd6txw3vxbbm3g40spme&path=Q2ZESjhMR0lXZGRCNHZGSHJ1d0w2d0MzUTgyMDJyb002SkdvVlBXd3dsa0p4eFZhM0t1d0IwMm95ektIYkRGaXF1VWowcGVqM1hwRkNNam5lZnRKZW1mMFoybWdKWGpVQ1NYSzJHSUpxVVU3VnR6T29McVFnR2dOaTFWY1V2ejZCRWtzZC1YclAwNlhQcHFtXzRMZWdxXzJEQjYwdldJVWFQa2FPRzZLdVFrZkRhZndKSER2NFNqQmZpTFRxWERhV0hKX1Fn&file=some+test",
  "Details": "https://www.limetorrents.pro/some-test-torrent-17134183.html",
  "PublishDate": "2022-02-22T10:02:44.6133463+00:00",
  "Category": [8000, 127246],
  "Size": 2523293184,
  "Files": null,
  "Grabs": null,
  "Description": null,
  "RageID": null,
  "TVDBId": null,
  "Imdb": null,
  "TMDb": null,
  "Author": null,
  "BookTitle": null,
  "Seeders": 62,
  "Peers": 662,
  "Poster": null,
  "InfoHash": null,
  "MagnetUri": null,
  "MinimumRatio": null,
  "MinimumSeedTime": null,
  "DownloadVolumeFactor": 0.0,
  "UploadVolumeFactor": 1.0,
  "Gain": 145.69999408721924
}
garfield69 commented 2 years ago
garfield69 commented 2 years ago

v0.20.629