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

42 commits

Auteur SHA1 Message Date
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
bittebitte
0305151068 Update email.go 2017-05-12 18:47:09 -05:00
akuma06
39a7305892 Merge pull request #371 from Atvaark/postgres_tests
Add database logmode to the config
2017-05-11 23:20:12 +02: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
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
8b6ddd95c2 forgot file 2017-05-11 09:29:08 -04: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
Jeff Becker
92c666f595 only use coppersurfer 2017-05-10 18:23:20 -04:00
Jeff Becker
25657ce67f add copper surfer to default 2017-05-10 18:21:04 -04:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00
Eliot Whalan
19abfdb7a3 Add doko.moe tracker 2017-05-10 20:09:12 +10:00
Eliot Whalan
a34a74ce09 disable uploads 2017-05-10 18:59:41 +10: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
sfan5
60ecfb797a Stateless Email Verification 2017-05-10 00:04:07 +02:00
sfan5
3b65df9cdd Prepare for storage of uploaded .torrent files 2017-05-09 16:42:12 +02:00
Eliot Whalan
b1ab6acd14 Re-disable uploads 2017-05-09 10:17:11 +10:00
sfan5
5482fa9290 Save current user for uploads 2017-05-08 23:54:09 +02:00
sfan5
975ce5e6d4 Don't look for old comments on new torrents 2017-05-08 23:53:37 +02:00
sfan5
2c151bc26e Make login work 2017-05-08 22:50:56 +02:00
akuma06
efb12315a8 Merge pull request #161 from majestrate/i2p-listener
optionally provide i2p connectivity
2017-05-08 03:34:19 +02:00
Eliot Whalan
d1bb68f8f2 Disable uploading of torrents by default 2017-05-08 08:16:20 +10: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
sfan5
f9b29af311 Better / fixed validation of uploaded torrent files 2017-05-07 13:53:51 +02:00
Andrew Zhao
b922938c27 use util to generate magnets 2017-05-06 18:10:35 -07:00
sfan5
20214fa770 Remove duplicate tracker
pirateparty.gr tracker is the same as the coppersurfer one
2017-05-07 00:07:58 +02:00
yiiT
74abbfebe7 Additional trackers
Added tracker.pirateparty.gr, tracker.internetwarriors.net, eddie4.nl, and mgtracker.org
2017-05-06 16:41:56 -05:00
akuma06
4182e22262 Fix #1 2017-05-06 22:27:21 +02:00
akuma06
30a53a79ec Forgot files 2017-05-06 22:14:02 +02:00
akuma06
5ef953ff55 User Package (WIP)
Added services and utils needed
2017-05-06 21:21:39 +02:00
akuma06
61ac1bb7c3 Added tool for sending emails 2017-05-06 20:07:03 +02:00
akuma06
dc050d29fc Updated my own branch 2017-05-06 17:53:17 +02:00
ayame-git
19a72dfe08 config file works now 2017-05-06 21:43:15 +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
Eliot Whalan
0d6f5ef50b Add caching? 2017-05-06 15:30:32 +10:00
sfan5
cfa8d2544b Reorder trackers (2502cc57df) 2017-05-05 18:44:45 +02:00
Eliot Whalan
f50a0f9ace Merge branch 'master' of github.com:ewhal/nyaa 2017-05-05 23:18:18 +10:00
akuma06
ade17dad04 Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
2017-05-05 15:08:02 +02:00
akuma06
f6709f9ace Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
	models.go
2017-05-05 14:51:19 +02:00
akuma06
9586f1e731 Rearranged Files
Configurations are separated in files in the folder config
Connection to database by a package to import when needed
Models will be in a model package for better maintenance
Services access to the models
Utils are tools or functions that can be used anywhere
main.go cleaned a bit and other files modifications are there for the above modifications
2017-05-05 14:20:51 +02:00