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

2009 commits

Auteur SHA1 Message Date
tomleb
e3e3bb020e Use raw entry for sorting by text 2017-05-31 22:04:49 -04:00
tomleb
7ecae17679 Merge pull request #872 from tomleb/some_fix
Fix single letter search and wrong column name
2017-05-31 21:32:33 -04:00
tomleb
212027c6a6 Use minimum 1 ngram (ie: for Gantz O) 2017-05-31 21:20:58 -04:00
tomleb
418254af3f Fix wrong column name in torrents_action 2017-05-31 21:20:04 -04:00
tomleb
ba683c3bcb Improve search and fix '*' in search box (#871)
* Improve ES search

The new performance is very good.
Some examples on my 1.5gb vm:
INFO[0153] Query 'shingeki' took 6 milliseconds.
INFO[0125] Query 'アニメ' took 17 milliseconds.
INFO[0102] Query 'shingeki -kyojin horrible ' took 12 milliseconds

Looking at the criteria we wanted here:
https://pad.riseup.net/p/i8DrilHDWRvf, it meets:

1. Fast: sub-100ms for a typical query, sub-50ms is good and sub-20ms is
optimal
2. Prefix match: "horrible" finds horriblesubs
3. Substring match? "アニメ" finds "TVアニメ"
4. Position-independent terms ("shingeki kyojin" finds the same as
"kyojin shingeki")
5. Works with short term lengths correctly and fast (no in "kyoukai no
kanata", 04 in "horrible shingeki 04" etc)
7. (nice to have) search negation: shingeki kyojin -horriblesubs

* Use match_all query instead of *, fix *
2017-06-01 08:38:29 +10:00
Steindór
00a885af28 changed session cookie expiry (#870) 2017-06-01 08:38:05 +10:00
Steindór
4f11748da1 Header fixes (#863)
* Put the mascot into the cookie as well, major js cleanup

* Update en-us.all.json

* removed redundant translation

* made the dropdown menu look and function better

* fixed responsiveness issue

* made this look better with the /g/ theme
2017-06-01 08:37:27 +10:00
akuma06
08c342e4e7 Added a check on LastID function 2017-05-31 21:07:56 +02:00
akuma06
70e97a6cce Update README.md 2017-05-31 18:15:28 +02:00
akuma06
f6e7d2035f Update README.md 2017-05-31 18:07:58 +02:00
sisimouto
723c0ca87b Update th-th.all.json (#862) 2017-05-31 23:58:58 +10:00
akuma06
face67892b Merge pull request #861 from NyaaPantsu/xhr-torrent-refresh
Xhr torrent refresh
2017-05-31 12:40:10 +02:00
akuma06
b546e6b1d3 Forgot parameters to Get() 2017-05-31 12:39:38 +02:00
akuma06
133947df0a Updating xhr request
* Querying when request has failed
* Added a maximum consecutive query parameter to limit query when server
has shutdown
* By default I've put it to -1 (no maximum), it can be modified
* Stopping with an error when too many failed query
* Removing log message in torrents.js
2017-05-31 12:36:39 +02:00
akuma06
e52ee35cac Merge remote-tracking branch 'refs/remotes/origin/dev' into xhr-torrent-refresh 2017-05-31 12:36:32 +02:00
akuma06
db126ed2e4 Merge pull request #860 from NyaaPantsu/build-version
Add Build version
2017-05-31 12:30:52 +02:00
akuma06
3a4feafd91 Forgot an equal sign for travis 2017-05-31 12:26:39 +02:00
akuma06
9e0424ec5e Add Build version
Main version can be set in config/default_config.yml
Build version need to be set by build command: go build -ldflags "-X
main.buildversion=$(date -u +.%Y%m%d.%H%M%S)"
Or by using package.sh
Or by using the godep command: godep go build -ldflags "-X
main.buildversion=$(date -u +.%Y%m%d.%H%M%S)"
2017-05-31 12:20:06 +02:00
akuma06
9b89556a17 Merge pull request #859 from Myrmece/patch-2
Updated translation.
2017-05-31 10:50:28 +02:00
akuma06
e116b30b40 Better handle of test files
After some thoughts, it is better to use the config from config files
than default ones
2017-05-31 10:49:01 +02:00
Myrmece
b314098065 Updated translation. 2017-05-31 10:30:02 +02:00
Marcel Haazen
7a89b46c4a Some SEO and SMO works (#794)
* Update index.html

Small format change to RSS link
Addes SMO
Remove Cartel tag

* Update index.html

Added Social Icon

* Update index.html

* maybe the right one???
2017-05-30 21:48:35 -05:00
tomleb
45da57fd0d Playbook to install latest nyaa straight from github (#843)
* Playbook to install latest nyaa straight from github

* Backup old nyaa dir before pulling latest
2017-05-30 21:48:20 -05:00
tomleb
360b35a08f Add reindexing every 5 minutes, and a bunch of other things (#852)
* Fix error messages with ES results

* Add lsof for debugging

* Add torrents table variable to index sukebei

* Use elasticsearch alias for hotswapping index

* Increase max open files, increase ES heap size

* Add reindex script and reindex triggers

We use a table to store the actions happened to the torrents table.
When the torrents table is INSERTED/UPDATED/DELETED, the trigger kicks
in and an entry is made to the reindex_torrents table.

The reindex_nyaapantsu.py script is then used to query the
reindex_torrents table and apply the correct reindex action to
elasticsearch. The entries are then removed for reindex_torrents table.

* Reindex every 5 minutes as cronjob
2017-05-30 21:22:12 -05:00
akuma06
5376b9e271 New config files (#854)
* New config files

As decided, config files are parsed at runtime.
I decided to go for YAML config files because there can be comments in
it.
There are 2 files:
* config/default_config.yml <= which shouldn't be edited unless we add a
config parameter
* config/config.yml <= which is the user-defined config. This file
shouldn't be commited

Changed every call to config.XXX to config.Conf.XXX (look to the new
stucture of config in config/types.go)

Of course, putting config parameters in config.yml overrides config in
config_default.yml. You don't have to put everything in it, just add
what you want to override.

* Fixing test

Replacing conf.New by config.Conf

* Fixing call to config.Conf to config.Config{} in test files

* Might have fixed testing with this

Printf instead of Fatalf

* Renaming config.yml in example file

* Forbid commiting config.yml

* Should be now fixed

* Do not need this file anymore
2017-05-30 21:21:57 -05:00
Steindór
ffbbacb84a Maskot to cookie (#857)
* Put the mascot into the cookie as well, major js cleanup

* Update en-us.all.json

* removed redundant translation
2017-05-30 21:21:35 -05:00
tomleb
0d70ed3038 Dump database in format usable by pg_restore 2017-05-30 21:20:22 -05:00
sfan5
3b6b81aa8d Fixing other peoples shit again & translation (#853)
* Fix login when running on localhost

* Translatable edit/delete buttons on view page

* Bold completed count on view page

* Don't create global variables in report button js

* Update german translation

* Update trackers (#803)

Remove baka-sub.cf as it's always broken
Add IPv6 version of leechers-paradise
2017-05-31 08:36:00 +10:00
Mitki
aeb8039250 Mascot button loses its translation when clicked (#855) 2017-05-31 00:02:40 +02:00
akuma06
d70a521696 Merge remote-tracking branch 'refs/remotes/origin/dev' into xhr-torrent-refresh 2017-05-30 23:10:12 +02:00
akuma06
2aa8bb12bf Merge pull request #849 from Myrmece/patch-1
Updated translation.
2017-05-30 17:04:51 +02:00
akuma06
a7c95a937b Merge pull request #848 from MMP0/patch-12
Update Japanese translations
2017-05-30 17:04:38 +02:00
akuma06
efe00f1f61 Merge pull request #842 from NyaaPantsu/xhr-torrent-refresh
Xhr torrent refresh
2017-05-30 17:04:25 +02:00
akuma06
ae1628e921 Some js fixes and improvements
Better handling of Torrents.StopRefresh()
Keep the order of torrents
Encode html entities from torrent name (prevent execution of unwanted
html tags)
2017-05-30 15:19:45 +02:00
Myrmece
2247dc0475 Updated translation. 2017-05-30 14:44:45 +02:00
MMP0
c49eaf325b Update ja-jp.all.json 2017-05-30 21:29:19 +09:00
MMP0
806c4525a2 Update ja-jp.all.json 2017-05-30 21:26:46 +09:00
akuma06
b5476c7d66 Merge remote-tracking branch 'refs/remotes/origin/dev' into xhr-torrent-refresh 2017-05-30 14:19:13 +02:00
akuma06
13a6c9bc25 Merge pull request #846 from mitki/translation
Footer translation
2017-05-30 14:18:55 +02:00
akuma06
e3c8e6a3b1 Merge pull request #845 from steindornatorinn/cookie-fix2
This should fix the cookie domain issues
2017-05-30 14:16:51 +02:00
akuma06
b0cf17c77c Renamed the search argument FromID instead of TorrentID 2017-05-30 14:12:42 +02:00
akuma06
5f89baaddb Merge pull request #844 from tomleb/remake_filter
Use old nyaa behavior for FilterRemakes
2017-05-30 14:01:52 +02:00
mitki
94ecaea291 [TL] Updated pt-br 2017-05-29 21:53:31 -03:00
mitki
16b84dbe6a [TL] Updated en-us 2017-05-29 21:53:14 -03:00
mitki
ef2b7f2894 translation support 2017-05-29 21:52:49 -03:00
Steindór
bf500d9c16 Update cookie_helper.go 2017-05-30 00:50:23 +00:00
Steindór
037506e464 Merge branch 'dev' into cookie-fix2 2017-05-30 00:46:59 +00:00
bragason
2e2e5608d4 This should fix the cookie domain issues 2017-05-30 00:42:36 +00:00
tomleb
6b90f21207 Use old nyaa behavior for FilterRemakes 2017-05-29 20:15:49 -04:00
Mitki
765077864a Update pt-br.all.json (#841)
* Update pt-br.all.json

* Update pt-br.all.json
2017-05-30 09:17:26 +10:00