update torrent link to new release

This commit is contained in:
j 2014-10-10 19:13:26 +02:00
commit 89033fd6bd
3 changed files with 7 additions and 5 deletions

View file

@ -44,10 +44,12 @@ Ox.getJSON('json/pandora.json?' + +new Date(), function(pandora) {
Ox.get('https://code.0x2620.org/pandora/.bzr/branch/last-revision', function(data) {
var hash = window.location.hash.substr(1).split('.'),
page = hash[0],
version = data.split(' ')[0];
version = data.split(' ')[0],
torrent = 'magnet:?xt=urn:btih:17fa71ba27ee99fd383da29e85aa7fa7d546e958&dn=pandora-r4395&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=http%3A%2F%2Ftracker.thepiratebay.org%2Fannounce',
torrentInfo = 'pandora-r4395.torrent, 2.9 GiB'
pandora.pages.download = pandora.pages.download.replace(
'{version}', ' The latest revision is r' + version + '.'
);
/{version}/g, ' The latest revision is r' + version + '.'
).replace(/{torrent}/g, torrent).replace(/{torrentInfo}/g, torrentInfo)
page == 'download' && loadPage();
});