Skip to content

Commit

Permalink
Fix PTP request
Browse files Browse the repository at this point in the history
  • Loading branch information
Morea committed Aug 25, 2024
1 parent 44a91cd commit 67320fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Find Unique Titles/dist/find.unique.titles.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@
const tags = [];
if (title.includes("Remux")) tags.push("Remux");
const torrent = {
dom: [ element ],
dom: element,
size,
tags,
resolution
Expand Down Expand Up @@ -1875,7 +1875,7 @@
return url.includes("passthepopcorn.me");
}
async* getSearchRequest() {
const nodes = (0, common_dom__WEBPACK_IMPORTED_MODULE_3__.findFirst)(document, "#torrents-movie-view table.torrent_table > tbody", "table.torrent_table > tbody tr.basic-movie-list__details-row", ".cover-movie-list__movie");
const nodes = (0, common_dom__WEBPACK_IMPORTED_MODULE_3__.findFirst)(document.body, "#torrents-movie-view table.torrent_table > tbody", "table.torrent_table > tbody tr.basic-movie-list__details-row", ".cover-movie-list__movie");
yield {
total: nodes.length
};
Expand Down
5 changes: 2 additions & 3 deletions Find Unique Titles/src/trackers/PTP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const parseTorrents = (element: HTMLElement) => {
tags.push("Remux");
}
const torrent: Torrent = {
dom: [element],
dom: element,
size,
tags,
resolution,
Expand Down Expand Up @@ -111,9 +111,8 @@ export default class PTP extends AbstractTracker {
}

async *getSearchRequest(): AsyncGenerator<MetaData | Request, void, void> {
const requests: Array<Request> = [];
const nodes = findFirst(
document,
document.body,
"#torrents-movie-view table.torrent_table > tbody",
"table.torrent_table > tbody tr.basic-movie-list__details-row",
".cover-movie-list__movie"
Expand Down

0 comments on commit 67320fd

Please sign in to comment.