diff --git a/Find Unique Titles/dist/find.unique.titles.user.js b/Find Unique Titles/dist/find.unique.titles.user.js index 390ed21..988faf4 100644 --- a/Find Unique Titles/dist/find.unique.titles.user.js +++ b/Find Unique Titles/dist/find.unique.titles.user.js @@ -1842,7 +1842,7 @@ const tags = []; if (title.includes("Remux")) tags.push("Remux"); const torrent = { - dom: [ element ], + dom: element, size, tags, resolution @@ -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 }; diff --git a/Find Unique Titles/src/trackers/PTP.ts b/Find Unique Titles/src/trackers/PTP.ts index 46a79eb..d442a2d 100644 --- a/Find Unique Titles/src/trackers/PTP.ts +++ b/Find Unique Titles/src/trackers/PTP.ts @@ -48,7 +48,7 @@ const parseTorrents = (element: HTMLElement) => { tags.push("Remux"); } const torrent: Torrent = { - dom: [element], + dom: element, size, tags, resolution, @@ -111,9 +111,8 @@ export default class PTP extends AbstractTracker { } async *getSearchRequest(): AsyncGenerator { - const requests: Array = []; 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"