Update YggTorrent URLs to new domain and API endpoints

This commit is contained in:
√(noham)²
2025-12-23 16:48:47 +01:00
parent 592c1c4836
commit 5266d42f71
3 changed files with 6 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ if (torrentTitle.includes('1080')) {
var discordWebhookUrl, discordUserName, categories;
chrome.storage.sync.get(['yggToken', 'discordWebhookUrl', 'discordUserName', 'displayDiscord', 'displayAddCategories', 'categories', 'defaultCategories'], function (value) {
if (value.yggToken) {
downloadButton.setAttribute('href', `https://${window.location.host}/rss/download?id=${torrentId}&passkey=${value.yggToken}`);
downloadButton.setAttribute('href', `https://yggapi.eu/torrent/${torrentId}/download?passkey=${value.yggToken}`);
} else {
var alertYggToken = '<div id="error_ygg_button_alert" class="alert alert-danger" role="alert" style="margin-bottom:0;">Une erreur est survenue, Vérifiez que votre token Ygg soit chargé !</div>';
if (document.readyState !== 'complete') {

View File

@@ -15,7 +15,7 @@ chrome.storage.sync.get(['yggToken'], function (value) {
var downloadIcon = document.createElement('img')
downloadIcon.setAttribute('src', chrome.runtime.getURL("img/download.png"));
downloadButton.appendChild(downloadIcon);
downloadButton.setAttribute('href', "https://" + window.location.host + "/rss/download?id=" + torrentId + "&passkey=" + value.yggToken);
downloadButton.setAttribute('href', "https://yggapi.eu/torrent/" + torrentId + "/download?passkey=" + value.yggToken);
cell.appendChild(downloadButton);
}
}

View File

@@ -27,22 +27,22 @@
"css/style.css",
"img/download.png"
],
"matches": ["https://*.yggtorrent.la/*"]
"matches": ["https://*.yggtorrent.org/*"]
}
],
"content_scripts": [
{
"matches": ["https://*.yggtorrent.la/torrent/*"],
"matches": ["https://*.yggtorrent.org/torrent/*"],
"run_at": "document_idle",
"js": ["js/utilsFunctions.js", "contentScripts/addTorrent/addTorrent.js"]
},
{
"matches": ["https://*.yggtorrent.la/*"],
"matches": ["https://*.yggtorrent.org/*"],
"run_at": "document_idle",
"js": ["js/utilsFunctions.js", "contentScripts/allPages/allPages.js"]
},
{
"matches": ["https://*.yggtorrent.la/engine/search*"],
"matches": ["https://*.yggtorrent.org/engine/search*"],
"run_at": "document_idle",
"js": ["js/utilsFunctions.js", "contentScripts/search/search.js"]