Skip to content

Commit

Permalink
not reuiqred
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaridas committed Jan 27, 2024
1 parent 1bcc681 commit b246661
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const helper = {

normalizeTitle: (torrent, info) => {
let name = '👤 11/2 💾 2 gb ⚙️ therarbg';
let found = false;
const title_list = torrent.title.split("\n");
title_list.forEach(element => {
if (element.includes("👤")) {
Expand All @@ -83,11 +84,18 @@ const helper = {
torrent.title = info.name + ' ' + (info.season && info.episode ? ` ${helper.episodeTag(info.season, info.episode)}` : info.year) + '\n';
torrent.title += '\r\n' + name;
torrent.seeders = seeds;
found = true;
return;
}
}
return;

}
});
if (!found) {
torrent.title = info.name + ' ' + (info.season && info.episode ? ` ${helper.episodeTag(info.season, info.episode)}` : info.year) + '\n';
torrent.title += '\r\n' + name;
torrent.seeders = 11;
}
},

extraTag: (name, searchQuery) => {
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ async function addResults(info, streams, source, signal) {
newStream.sources = global.TRACKERS.map(x => { return "tracker:" + x; }).concat(["dht:" + torrent.infoHash]);

helper.normalizeTitle(torrent, info)
newStream.title = torrent.title;
newStream.seeders = torrent.seeders;

newStream.behaviorHints = {
bingieGroup: "Jackett|" + quality + "|" + newStream.infoHash,
}
Expand Down

0 comments on commit b246661

Please sign in to comment.