Skip to content

Commit

Permalink
feat(graphql-api): Added more trusted uploaders from 1337x
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Sep 20, 2020
1 parent 39178ce commit 9cee414
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ export class OneThreeThreeSevenXSearchAdapater extends SearchAdapter {
private readonly logger = new Logger(OneThreeThreeSevenXSearchAdapater.name)

/**
* Thse uploaders are Vip Uploaders
* These uploaders are Vip Uploaders / trusted
*/
private readonly trustedUploaders = [
'ETTV',
'EtHD',
'MkvCage',
'mazemaze16'
'mazemaze16',
'MrStark',
'SeekNDstroy',
'Cristie',
'mazemaze16',
'TeamRocker'
]
/**
* Search for a episode
Expand All @@ -39,6 +44,8 @@ export class OneThreeThreeSevenXSearchAdapater extends SearchAdapter {
torrent.title.toUpperCase().includes(this.buildSeasonEpisodeString(episode).toUpperCase())
)

console.log(torrents)

const results = await Promise.all(
foundTorrents.map((torrent) => this.formatTorrent(torrent, domain))
)
Expand Down Expand Up @@ -82,7 +89,7 @@ export class OneThreeThreeSevenXSearchAdapater extends SearchAdapter {
return {
language: 'en',
peers: parseInt(data.leechers, 10),
provider: OneThreeThreeSevenXSearchAdapater.providerName,
provider: `${OneThreeThreeSevenXSearchAdapater.providerName} - ${torrent.uploader}`,
quality: quality,
seeds: parseInt(data.seeders, 10),
size: parseBytes(data.size),
Expand Down

0 comments on commit 9cee414

Please sign in to comment.