Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

183 commits

Auteur SHA1 Message Date
ElegantMonkey
a55cf2a803 Use NoCount version of GetTorrents
The normal GetTorrents version always called COUNT(*) on the query,
which consistently took around 300 ms. With the NoCount, the SELECT
queries take 5-50 ms.
2017-05-14 18:24:41 -03:00
ElegantMonkey
cae0026a67 Add fail cooldown
After a set cooldown, torrents that failed to be fetch will be able
to be fetched again. Set FailCooldown to -1 to disable.
2017-05-14 18:10:39 -03:00
ElegantMonkey
83de593a65 Exclude failed operations from query
Instead of loading more rows to compensate for failed operations,
exclude them at the query.
2017-05-14 16:47:48 -03:00
ElegantMonkey
58869114d7 Don't update Length if it hasn't changed 2017-05-14 12:21:49 -03:00
ElegantMonkey
7d8cbe1393 Add Upload and Download limiters, rely on unique_index for avoiding duplicates
The FileList that is read with GetTorrents is empty, as it's only loaded with
GetTorrentById. So, always insert the new FileList on the database, and rely on
the unique_index to avoid duplications.
2017-05-14 11:35:03 -03:00
ElegantMonkey
839e6068df Add FileList view to view.html template
Also added the code for FileList loading on torrentService.
2017-05-14 10:19:19 -03:00
ElegantMonkey
e1f1c9d0c3 Update MetainfoFetcher query logic
It used to update only torrents with NULL or 0 filesizes, setting
both their filesizes and the file lists. Now, it looks for both
NULL or 0 filesizes and empty file lists.
2017-05-14 09:05:20 -03:00
ElegantMonkey
2da2ad4214 FilesizeFetcher -> MetainfoFetcher 2017-05-14 08:20:34 -03:00
ElegantMonkey
80034bb52b Also read file lists from metadata, fix Length == 0 2017-05-13 23:12:18 -03:00
ElegantMonkey
a1dc2d3587 Add error message to log 2017-05-13 21:30:06 -03:00
akuma06
ed26ee81eb Merge branch 'dev' into dev 2017-05-14 00:55:17 +02:00
ElegantMonkey
4d69ee4eaa Use buffered channels, add test for invalid hash 2017-05-13 19:35:35 -03:00
akuma06
0d7678ea8b Merge pull request #438 from mitki/patch-2
Password length
2017-05-14 00:30:23 +02:00
ElegantMonkey
fb677d4d9d Use sync.WaitGroup for FetchOperations 2017-05-13 16:07:39 -03:00
ElegantMonkey
a068984af3 Add filesize fetcher mode 2017-05-13 14:58:48 -03:00
Mitki
1745e7e17e Update formValidator.go 2017-05-13 13:20:21 -03:00
sfan5
72ab7a490c Minor optimization about fetching old comments 2017-05-13 17:30:29 +02:00
sfan5
c0be570e54 Torrent Reassign feature for modpanel 2017-05-13 17:29:21 +02:00
sfan5
90c52bf7d3 Update list of dead trackers 2017-05-13 15:18:40 +02:00
PantsuDev
44b327e1a3 Merge pull request #395 from sfan5/searchperf
(Search) performance
2017-05-13 12:24:03 +10:00
sfan5
b2581f549b Display human-readable report reason in modpanel
Also fixes the "list all torrent reports" subpage
2017-05-12 20:43:38 +02:00
sfan5
c5fe70800d Disable CTEs and TSQuery for now 2017-05-12 19:38:08 +02:00
sfan5
5cb672b06a Stop RSS from being so slow 2017-05-12 17:54:08 +02:00
sfan5
dc509ff18c Stateless cookie auth 2017-05-12 12:40:31 +02:00
PantsuDev
ac92ddfeba Merge pull request #391 from sfan5/memes
Fixes & Features
2017-05-12 20:25:05 +10:00
sfan5
6b341c7b03 No captchas for trusted users or admins, closes #330 2017-05-12 12:05:36 +02:00
Eliot Whalan
bcaac0961f Revert "Stateless cookies (#372)"
This reverts commit 2f06fb8fa1.
2017-05-12 16:42:15 +10:00
ayame-git
d5370705c0 converts hash to uppercase 2017-05-12 04:28:00 +03:00
ayame-git
af2c47c2f2 Merge branch 'master' of github.com:ewhal/nyaa into api 2017-05-12 00:59:35 +03:00
ayame-git
d94f8102d1 convert base32 hash to base16 2017-05-12 00:59:00 +03:00
sfan5
019f37dc4d Stateless cookies (#372)
* Remove eddie4.nl tracker

It resolves to the same IP address as leechers-paradise which we already have.

* Remove database usage from cookie auth

* Hide "Remember Me" as it doesn't work yet
2017-05-11 16:18:56 -05:00
Jeff
100ecffda7 fix scraper, optimize updates so it doesn't suck massive ass (#367)
* fix scraper, optimize updates so it doesn't suck massive ass

* fucking ass
2017-05-11 14:06:47 -05:00
Jeff Becker
217038eea0 only scrape torrents uploaded within 90 days 2017-05-11 09:40:33 -04:00
Jeff Becker
57895251a3 fix torrent swarm ordering and add timeouts for udp scrape 2017-05-11 07:40:50 -04:00
ayame-git
51c5f198b4 Merge branch 'master' of github.com:ewhal/nyaa into api 2017-05-11 14:38:46 +03:00
sfan5
09ff949945 Make account bans work 2017-05-11 12:05:55 +02:00
ayame-git
da8b2dc9c4 base16 and base32 2017-05-11 07:23:02 +03:00
ayame-git
ac6f4f82fb welll fuck me 2017-05-11 07:12:54 +03:00
ayame-git
42c79c2794 applied akuma dup fix 2017-05-11 06:25:41 +03:00
ayame-git
d879f76e16 ? 2017-05-11 06:05:52 +03:00
ayame-git
cc5baed9c1 stuff 2017-05-11 06:04:11 +03:00
ayame-git
c32fd6e7b7 torrent upload 2017-05-11 05:56:59 +03:00
Jeff Becker
d3d2f62ea6 fix buffer size 2017-05-10 18:10:20 -04:00
Jeff Becker
c6427ba600 Merge remote-tracking branch 'origin/master' into scraper 2017-05-10 18:08:10 -04:00
Jeff Becker
604cf57677 make it work 2017-05-10 18:06:21 -04:00
akuma06
ceb9e039f1 Renchon can't be deleted! 2017-05-10 22:55:50 +02:00
akuma06
dee08850cf Fixing 2017-05-10 22:42:11 +02:00
sfan5
d178ab23b6 Make email verification work correctly
Previously the email was set before it had been verified, which was very wrong.
2017-05-10 22:10:31 +02:00
ayame-git
755a426931 reports are deleted with torrents 2017-05-10 22:29:59 +03:00
ayame-git
4ada27a3cc no need for potato fix anymore 2017-05-10 21:50:27 +03:00