mirror of
https://codeberg.org/hyperreal/AnnasTorrentMirror
synced 2024-11-25 06:03:42 +01:00
Modify intro
This commit is contained in:
parent
99e22a90ec
commit
ec76002ca5
40
main.go
40
main.go
@ -914,7 +914,7 @@ func getTemplateContent(name string) string {
|
||||
<html>
|
||||
<head>
|
||||
<title>hyperreal's Mirror of Anna's Archive</title>
|
||||
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="https://files.hyperreal.coffee/images/archive.svg">
|
||||
<link rel="stylesheet" href="https://files.hyperreal.coffee/css/aa.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
@ -936,9 +936,14 @@ func getTemplateContent(name string) string {
|
||||
<section class="header">
|
||||
<h1 class="title">hyperreal's Mirror of Anna's Archive</h1>
|
||||
</section>
|
||||
<p><strong>This is a mirror of the <a href="https://annas-archive.org/torrents">Anna's Archive torrent page</a></strong>. We strive to keep everything as up-to-date as possible, however, we are not affiliated with Anna's Archive and this list is maintained privately.</p>
|
||||
<p>This torrent list is the “ultimate unified list” of releases by Anna’s Archive, Library Genesis, Sci-Hub, and others. By seeding these torrents, you help preserve humanity’s knowledge and culture. These torrents represent the vast majority of human knowledge that can be mirrored in bulk.</p>
|
||||
<p>These torrents are not meant for downloading individual books. They are meant for long-term preservation. With these torrents you can set up a full mirror of Anna’s Archive, using their <a href="https://software.annas-archive.se/AnnaArchivist/annas-archive">source code</a> and metadata (which can be <a href="https://software.annas-archive.se/AnnaArchivist/annas-archive/-/blob/main/data-imports/README.md">generated</a> or <a href="https://annas-archive.org/torrents#aa_derived_mirror_metadata">downloaded</a> as ElasticSearch and MariaDB databases). We scrape the <a href="https://annas-archive.org/dyn/torrents.json">full torrent list</a> from Anna's Archive every 24 hours. We also have full lists of torrents, as JSON, available <a href="/json">here</a>.</p>
|
||||
<p><strong>This is an unofficial mirror of the <a href="https://annas-archive.org/torrents">Anna's Archive torrent page</a></strong>. I'm not affiliated with Anna's Archive. This list is maintained privately. I am but a humble digital archivist.</p>
|
||||
<p>This site is a modified fork of the <a href="https://github.com/teamcoltra/AnnasTorrentMirror">aa.i4.mom's archive torrent mirror</a>.</p>
|
||||
|
||||
<p>Below is a quote from the original page on <a href="https://annas-archive.org/torrents">Anna's Archive torrent page</a>:</p>
|
||||
<blockquote><p>This torrent list is the "ultimate unified list" of releases by Anna's Archive, Library Genesis, Sci-Hub, and others. By seeding these torrents, you help preserve humanity's knowledge and culture. These torrents represent the vast majority of human knowledge that can be mirrored in bulk.</p>
|
||||
<p>These torrents are not meant for downloading individual books. They are meant for <strong>long-term preservation</strong>. With these torrents you can set up a full mirror of Anna's Archive, using our source code and metadata (which can be generated or downloaded as ElasticSearch and MariaDB databases). We also have full lists of torrents, as JSON.</p>
|
||||
</blockquote>
|
||||
|
||||
<canvas id="seederStatsChart" width="800" height="400"></canvas>
|
||||
<script>
|
||||
async function fetchData() {
|
||||
@ -1028,6 +1033,8 @@ func getTemplateContent(name string) string {
|
||||
}
|
||||
|
||||
createChart();
|
||||
<h2>Generate a Torrent List</h2>
|
||||
<p>Want to help out with the seeding? You can generate a torrent list of torrents to seed based on size and type preferences. The generated list will be in the format of your choice (XML, TXT, or JSON), and will try to include torrents that currently need the most seeders (i.e. the ones with the fewest seeders).</p>
|
||||
</script>
|
||||
<form action="/generate-torrent-list" method="POST" target="_blank">
|
||||
<div class="row">
|
||||
@ -1059,9 +1066,14 @@ func getTemplateContent(name string) string {
|
||||
</div>
|
||||
</form>
|
||||
{{range .}}
|
||||
<h2>{{.TopLevelGroupName}}</h2>
|
||||
<h3>{{.GroupName}}</h3>
|
||||
<table>
|
||||
<div class="torrent-groups">
|
||||
<div class="torrent-group">
|
||||
<h2 class="torrent-group-name">{{.TopLevelGroupName}}</h2>
|
||||
<h3 class="torrent-group-name">{{.GroupName}}</h3>
|
||||
|
||||
<div class="torrent-table-container">
|
||||
<table class="torrent-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Torrent Name</th>
|
||||
<th>Date Added</th>
|
||||
@ -1072,8 +1084,12 @@ func getTemplateContent(name string) string {
|
||||
<th>Magnet Link</th>
|
||||
<th>Torrent Link</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{{range .Torrents}}
|
||||
<tr>
|
||||
<td class="torrent-name ">
|
||||
<td class="{{if .Obsolete}}obsolete{{end}}"><a href="/stats/{{.BTIH}}">{{.DisplayName}}</a></td>
|
||||
<td>{{.FormattedAddedDate}}</td>
|
||||
<td>{{.FormattedDataSize}}</td>
|
||||
@ -1090,6 +1106,7 @@ func getTemplateContent(name string) string {
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{if gt .TotalCount 20}}
|
||||
<a href="/full/{{.GroupName}}">View full list</a>
|
||||
@ -1098,8 +1115,10 @@ func getTemplateContent(name string) string {
|
||||
` + footer,
|
||||
|
||||
"fullList": header + `
|
||||
<div class="torrent-group">
|
||||
<h1>{{.GroupName}} - Full List</h1>
|
||||
<table>
|
||||
<table class="torrent-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Torrent Name</th>
|
||||
<th>Date Added</th>
|
||||
@ -1110,8 +1129,12 @@ func getTemplateContent(name string) string {
|
||||
<th>Magnet Link</th>
|
||||
<th>Torrent Link</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{{range .Torrents}}
|
||||
<tr>
|
||||
<td class="torrent-name ">
|
||||
<td class="{{if .Obsolete}}obsolete{{end}}"><a href="/stats/{{.BTIH}}">{{.DisplayName}}</a></td>
|
||||
<td>{{.FormattedAddedDate}}</td>
|
||||
<td>{{.FormattedDataSize}}</td>
|
||||
@ -1128,6 +1151,7 @@ func getTemplateContent(name string) string {
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="/">Back to main page</a>
|
||||
` + footer,
|
||||
|
Loading…
Reference in New Issue
Block a user