Skip to content

Commit

Permalink
chore(release): 6.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
techmovie committed Jan 9, 2025
1 parent 7ebef87 commit 7021a23
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [6.0.10](https://github.com/techmovie/easy-upload/compare/6.0.9...6.0.10) (2025-01-09)


### Bug Fixes

* **hdt:** update annouce url for hdt ([b9bccfc](https://github.com/techmovie/easy-upload/commit/b9bccfc9986a1875790a8ff5e9a7f2a5806f1990))



## [6.0.9](https://github.com/techmovie/easy-upload/compare/6.0.8...6.0.9) (2025-01-09)


Expand Down
15 changes: 8 additions & 7 deletions dist/easy-upload.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name EasyUpload PT一键转种
// @name:en EasyUpload - Trackers Transfer Tool
// @namespace https://github.com/techmovie/easy-upload
// @version 6.0.9
// @version 6.0.10
// @author birdplane
// @description 一键转种,支持PT站点之间的种子转移。
// @description:en Transfer torrents between trackers with one click.
Expand Down Expand Up @@ -16770,7 +16770,7 @@ ${doubanPart}`);
};
});
};
const getTorrentFileData = async (selector = "", torrentLink = "") => {
const getTorrentFileData = async (selector = "", torrentLink = "", targetSiteName) => {
var _a;
let downloadLink = torrentLink || $$2(selector).attr("href");
if (!downloadLink) {
Expand All @@ -16789,7 +16789,8 @@ ${doubanPart}`);
timeout: 1e4
});
const result = await parseTorrent(buffer.Buffer.from(file));
const announceUrl = ((_a = CURRENT_SITE_INFO.torrent) == null ? void 0 : _a.announce) || "tracker.com";
const siteInfo = PT_SITE[targetSiteName];
const announceUrl = ((_a = siteInfo == null ? void 0 : siteInfo.torrent) == null ? void 0 : _a.announce) || "tracker.com";
const buf = encodeTorrentFile(__spreadProps(__spreadValues({}, result), {
comment: "",
announce: [announceUrl],
Expand Down Expand Up @@ -20161,7 +20162,7 @@ ${screenBBcodeArray.join("")}`;
if (siteInfo.asTarget) {
if (batchSeedSetting.includes(siteName)) {
if (!TORRENT_INFO.torrentData) {
const torrentData = await getTorrentFileData(CURRENT_SITE_INFO.torrentDownloadLinkSelector, CURRENT_SITE_INFO.torrentLink);
const torrentData = await getTorrentFileData(CURRENT_SITE_INFO.torrentDownloadLinkSelector, CURRENT_SITE_INFO.torrentLink, siteName);
if (torrentData) {
TORRENT_INFO.torrentData = torrentData;
}
Expand Down Expand Up @@ -20190,7 +20191,7 @@ ${screenBBcodeArray.join("")}`;
return "";
};
const UploadSiteList = () => {
const handleSiteClickEvent = async (url) => {
const handleSiteClickEvent = async (url, siteName) => {
if (url.match(/hdpost|blutopia|fearnopeer|asiancinema|monikadesign|lst/)) {
const catMap = {
movie: "1",
Expand Down Expand Up @@ -20261,7 +20262,7 @@ ${screenBBcodeArray.join("")}`;
}
const timestamp = `${Date.now()}`;
if (!TORRENT_INFO.torrentData) {
const torrentData = await getTorrentFileData(CURRENT_SITE_INFO.torrentDownloadLinkSelector, CURRENT_SITE_INFO.torrentLink);
const torrentData = await getTorrentFileData(CURRENT_SITE_INFO.torrentDownloadLinkSelector, CURRENT_SITE_INFO.torrentLink, siteName);
if (torrentData) {
TORRENT_INFO.torrentData = torrentData;
}
Expand All @@ -20284,7 +20285,7 @@ ${screenBBcodeArray.join("")}`;
"a",
{
className: "site-item",
onClick: () => handleSiteClickEvent(`${url}${uploadPath}`),
onClick: () => handleSiteClickEvent(`${url}${uploadPath}`, siteName),
children: [
!!favIcon && /* @__PURE__ */ u$1("img", { src: favIcon, className: "site-icon" }),
siteName
Expand Down

0 comments on commit 7021a23

Please sign in to comment.