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

110 commits

Auteur SHA1 Message Date
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
akuma06
b7aaddf91e Fix filesize fetcher 2017-05-17 00:47:55 +02:00
ElegantMonkey
df2c9bc2f7 Fix conflicts 2017-05-14 21:19:29 -03:00
Atvaark
cd844aec45 Replace 'en-us' literals with the default language
This consolidates the places where a default language has to be set.

- Removed import of the 'userService' package into the 'languages' util
  package
  This was required to prevent a cyclic import between the two packages.
- Added a 'UserRetriever' interface to read the language setting of users
  inside the 'languages' package
2017-05-14 22:10:07 +02:00
ElegantMonkey
f64ecb3d0f Fix conflict 2017-05-14 09:23:16 -03:00
ElegantMonkey
2da2ad4214 FilesizeFetcher -> MetainfoFetcher 2017-05-14 08:20:34 -03:00
Eliot Whalan
f0582f13c2 rename filesize_fetcher to metadata_fetcher 2017-05-14 15:32:02 +10:00
Eliot Whalan
b4eeb1836a Merge branch 'dev' of https://github.com/ewhal/nyaa into dev 2017-05-14 15:09:02 +10:00
Eliot Whalan
7533a66f4e Merge branch 'dev' of https://github.com/ewhal/nyaa into dev 2017-05-14 09:23:28 +10:00
akuma06
ed26ee81eb Merge branch 'dev' into dev 2017-05-14 00:55:17 +02:00
Atvaark
6e546facc0 Fix i18n file errors
- Fixed an error in the spanish and chinese translation file
- Refactored reading the translation files
  Instead of ignoring errors in the non-default language files
  the error will now be returned and the remaining files will
  not be loaded.
- Added a unit test to check if all translation files are valid
- Added an i18n config to specify the translations dir and the
  default language
2017-05-13 22:52:17 +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
Eliot Whalan
bf5fc7edd0 lower timeouts 2017-05-13 16:28:17 +10:00
sfan5
eb10a9baa3 Adjust read & write timeouts 2017-05-12 17:56:22 +02:00
Atvaark
b12e812b36 Add database logmode to the config
This allows users to change the default logging verbosity (errors)
to either *detailed* (prints SQL statements) or *silent*.
Also added support for using a custom logger function.

- Fixed the gorm unit test that checks the automigrations
  They will actually fail if any errors were logged now.
- Added a postgres unit test
  Currently disabled because it would need a running local
  postgres db and  a change to the .travis.yml file to work
  inside the CI build.
2017-05-11 22:28:09 +02:00
Jeff Becker
0e8a3cde3b Merge branch 'cache-interface' into merge-cache-interface 2017-05-11 09:24:20 -04:00
Jeff Becker
059ea7d2a8 abstract out cache 2017-05-11 09:01:53 -04:00
Eliot Whalan
c1cafb9d9a Remove broken caching stuff 2017-05-11 22:22:49 +10:00
Jeff Becker
57895251a3 fix torrent swarm ordering and add timeouts for udp scrape 2017-05-11 07:40:50 -04:00
Jeff Becker
604cf57677 make it work 2017-05-10 18:06:21 -04:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00
Jeff Becker
73f77f1624 properly handle os.Interrupt Signal
This makes systemd not put unit into fail mode when stopping

INFO:

* make sure to use signals.RegisterCloser for everything that should be closed on interrupt

* for any net.Listeners created make sure to wrap them with network.WrapListener and register with signals.RegisterCloser
2017-05-10 08:23:29 -04:00
bakape
7af373b849 cache: Integrate with home handler and add size flag 2017-05-10 13:06:32 +03:00
Chris MacLeod
c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
PantsuDev
9e09dff4d4 Merge pull request #223 from ElegantMonkey/load-translations
Load translations from folder
2017-05-10 06:45:33 +10:00
ElegantMonkey
960ef9babf Load translations from folder 2017-05-09 14:46:16 -03:00
bakape
c46c386981 Better DB error handling 2017-05-09 20:23:21 +03:00
Jeff
18d6ad3992 make rss fast again :^) 2017-05-09 11:07:42 -04:00
akuma06
be6e573465 Moved translations in appropriate directory 2017-05-09 04:12:48 +02:00
Eliot Whalan
eca5079080 Optimize sql queries 2017-05-08 23:50:18 +10:00
akuma06
efb12315a8 Merge pull request #161 from majestrate/i2p-listener
optionally provide i2p connectivity
2017-05-08 03:34:19 +02:00
sfan5
ae89508f23 Search case-sensitivity hotfix 2017-05-07 23:01:06 +02:00
Jeff Becker
37350a1233 add initial optional i2p connectivity 2017-05-07 15:51:37 -04:00
sfan5
9b6b25e7df Allow storage of uploaded .torrent files (disabled by default) 2017-05-07 15:57:24 +02:00
Jeff Becker
1e567c74ca wire up signal handlers for sighup 2017-05-07 08:07:20 -04:00
akuma06
7ffde7a8e1 Merge branch 'master' into master 2017-05-07 02:44:49 +02:00
akuma06
f88b4656a1 Fixed Typo + Added multi language support
Multi language for User package
2017-05-07 02:32:32 +02:00
bakape
919e6fc659 Log server start and address
Useful, when port or host is not the default or knowing, when the server started, with chained comands like `go build && ./nyaa`.
2017-05-07 02:58:15 +03:00
akuma06
dc050d29fc Updated my own branch 2017-05-06 17:53:17 +02:00
ayame-git
5c4d1da8b7 fixed for good now 2017-05-06 21:27:26 +03:00
ayame-git
f7127ab3be oops 2017-05-06 20:55:27 +03:00
ayame-git
1a509f012d fixed parameters 2017-05-06 20:52:41 +03:00
akuma06
a456a5f9f2 Fixed parameters through command line for DB
config is now a singleton
can use config.GetInstance() to know the context
2017-05-06 17:37:56 +02:00
ayame-git
d6ef924fa3 basic upload 2017-05-06 11:36:37 +03:00
Eliot Whalan
377b53f33a Merge branch 'master' of git://github.com/sazuna/nyaa into sazuna-master 2017-05-06 08:33:56 +10:00
sazuna
c007dbd368 RSS feed with common search 2017-05-05 17:48:18 -03:00
akuma06
6b1196f12c Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
Resolved conflicts with new merge
2017-05-05 22:30:56 +02:00
keo
e270571db1 Merge pull request #67 from sfan5/style123
Appearance changes (mostly)
2017-05-05 22:38:41 +03:00
Lietzu
fda3a54e85 Update main.go 2017-05-05 12:46:54 -04:00