In a case you wanna add support of getting description from any web tracker, here the instruction:
You need to create folowing files:
- src/background/strategies/
newStrategy
.js (your strategy implementation) - Examples - tests/strategies/
newStrategy
.js (test for your strategy) - Examples
You need to implements follwing methods:
get name()
- Name of the strategyasync findHash()
- Return object of respoce type-
- Example of respoce object:
{
name: 'Name of torrent',
poster: 'Link to poster of torrent',
description: 'Description of torrent in text format.',
contentCategory: 'Category of torrent'
... Other additional files
}
Add post to app/trackers-images.js
:
{
info.trackers.includes('1337x')
&&
<a href={`https://example.com/${info.yourFiledForLink}`}><img src='list to image' style={{height: 32}} /></a>
}