Skip to content

Commit

Permalink
chore(release): 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
techmovie committed May 25, 2024
1 parent 322c1e9 commit 7eeb18c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 9 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## [5.0.1](https://github.com/techmovie/easy-upload/compare/5.0.0...5.0.1) (2024-05-25)


### Bug Fixes

* style fix ([3b4b0ee](https://github.com/techmovie/easy-upload/commit/3b4b0ee4c3b02970b3f1f9c798f13ec04aeadf83))


### Features

* **mteam:** support to get torrent link ([5523bc9](https://github.com/techmovie/easy-upload/commit/5523bc9e92a48494b92eab127e714f1c3b168262))
* **ttg:** support to fill douban id ([cde8e8f](https://github.com/techmovie/easy-upload/commit/cde8e8f83afbbdc3352cc3a0d8bd606f5eb15779))



# [5.0.0](https://github.com/techmovie/easy-upload/compare/4.2.1...5.0.0) (2024-05-24)


Expand Down
45 changes: 36 additions & 9 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 5.0.0
// @version 5.0.1
// @description easy uploading torrents to other trackers
// @description:en easy uploading torrents to other trackers
// @author birdplane
Expand Down Expand Up @@ -10124,6 +10124,9 @@
imdb: {
selector: 'input[name="imdb_c"]'
},
douban: {
selector: 'input[name="douban_id"]'
},
anonymous: {
selector: 'select[name="anonymity"]',
value: "yes"
Expand Down Expand Up @@ -15242,6 +15245,15 @@ ${description}`;
}, 1e3);
}
}
},
TTG: {
afterHandler: (info) => {
var _a3, _b2;
if (info.doubanUrl) {
const doubanId = (_b2 = (_a3 = info.doubanUrl.match(/\/(\d+)/)) == null ? void 0 : _a3[1]) != null ? _b2 : "";
jQuery(CURRENT_SITE_INFO.douban.selector).val(doubanId);
}
}
}
};

Expand Down Expand Up @@ -18885,7 +18897,7 @@ ${extraScreenshot}`;
const isForbidden = fullInformation.match(/禁转|禁轉|严禁转载|嚴禁轉載|谢绝转载|謝絕轉載|exclusive/);
TORRENT_INFO.isForbidden = !!isForbidden;
if (!processing || processing.match(/raw|encode/)) {
const areaMatch = (_B = descriptionBBCode.match(/(产\s+地|国\s+家)】?\s*(.+)/)) == null ? void 0 : _B[2];
const areaMatch = (_B = descriptionBBCode.match(/(产\s*地|国\s*家|地\s*区)】?\s*(.+)/)) == null ? void 0 : _B[2];
if (areaMatch) {
TORRENT_INFO.area = getAreaCode(areaMatch);
}
Expand Down Expand Up @@ -20457,7 +20469,7 @@ ${description}`;
const screenshots = await getScreenshotsFromBBCode(descr);
let mediaTags = {};
let mediaInfoOrBDInfo = mediainfo;
const isBluray = !!videoType.match(/bluray/i);
const isBluray = !!(videoType == null ? void 0 : videoType.match(/bluray/i));
if (!mediaInfoOrBDInfo) {
const { bdinfo, mediaInfo } = getBDInfoOrMediaInfo(descr);
mediaInfoOrBDInfo = isBluray ? bdinfo : mediaInfo;
Expand All @@ -20470,10 +20482,11 @@ ${description}`;
mediaTags = specs.mediaTags || {};
}
let area = "";
const areaMatch = (_b2 = descr.match(/(产\s+地|国\s+家)】?\s*(.+)/)) == null ? void 0 : _b2[2];
const areaMatch = (_b2 = descr.match(/(产\s*地|国\s*家|地\s*区)】?\s*(.+)/)) == null ? void 0 : _b2[2];
if (areaMatch) {
area = getAreaCode(areaMatch);
}
await getTorrentURL();
return {
sourceSite: CURRENT_SITE_NAME,
sourceSiteType: CURRENT_SITE_INFO.siteType,
Expand Down Expand Up @@ -20534,6 +20547,24 @@ ${description}`;
poster: photo.full || photo.thumb
};
};
var getTorrentURL = async () => {
var _a3, _b2, _c;
const torrentId = (_b2 = (_a3 = location.pathname.match(/detail\/(\d+)/)) == null ? void 0 : _a3[1]) != null ? _b2 : "";
if (!torrentId) {
return "";
}
const formData = new FormData();
formData.append("id", torrentId);
const response = await fetch("https://api.m-team.cc/api/torrent/genDlToken", {
method: "POST",
data: formData,
headers: {
Authorization: localStorage.getItem("auth") || "",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
}
});
CURRENT_SITE_INFO.torrentLink = (_c = response == null ? void 0 : response.data) != null ? _c : "";
};

// src/source/index.ts
var siteNameMap = {
Expand Down Expand Up @@ -21155,15 +21186,11 @@ tr.pad[id*="torrent_"]{
}
#seed-dom .ptp-title-wrapper .site-list li:first-child{
padding: 0;
padding-left: 80px;
padding-left: 95px;
}
#seed-dom .ptp-title-wrapper .search-list li:first-child{
padding-left: 65px;
}
#seed-dom.use-eng .ptp-title-wrapper .site-list li:first-child{
padding: 0;
padding-left: 90px;
}
#seed-dom.use-eng .ptp-title-wrapper .search-list li:first-child{
padding-left: 85px;
}
Expand Down

0 comments on commit 7eeb18c

Please sign in to comment.