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

20 commits

Auteur SHA1 Message Date
hamper
1a608faa44 Add website link and remake flag to api (#797) 2017-05-28 14:22:39 +10:00
akuma06
0f66ec9340 Trackers in Torrents + Missing comments + Function renaming (#768)
* Missing comments and Function renaming

* Added some missing comments
* Renamed functions to get user followers/following
* GetFollowers to get followers
* GetLikings to get who the user is following

* Renaming + Add support of previous trackers

* Renaming user.Likings in user.Followers
* Renaming user.Liked in user.Likings
* Add a new string field Trackers in torrent model
* Trackers from torrent file are now populated to the databse
* Needed trackers are added to the torrent trackers if not provided or
if trackers is empty in DB (backward compatibility)

* New check and url encoding

* No more regex for verifying tracker url
* Encodes tracker url for "&" & "?" character possibly existing in
tracker url and breaking magnet link

* Improvements

* Trackers are now encoded in torrent.ParseTrackers
* Faster check by using the for loop of checktrackers
* No more boolean, we need to check len of array returned
* torrent.Trackers can be directly used in url as they are encoded like
: tr=tracker1&tr=tracker2&tr=...
2017-05-27 00:45:18 +02:00
akuma06
6481e90a0c Golint friendly next (#756)
* Gofmt friendly

Keeping Go source code in line with what they preconize

* Golint Friendly Next

So I have made some variables unexported
Added comments in every function that I know what it does
Removed some deprecated stuff that I was sure of
Added a comment on possible deprecated methods "Is it deprecated?"
Changed some variable/method name according to golint recommendations

* Update filelist.go
2017-05-26 12:12:52 +02:00
tomleb
babf0a37f0 Cleanups and fixes (#623)
* Keep naming consistent

* Remove execute bit from files

* Default to DefaultLanguage (without passing it to the func)

* Remove commented code

* Use Content-Type to get language json

* Lines of 400 characters is dumb

* Update new repo in README

* Remove useless script since we fallback to a defaultlang

* Fix fallback language panic

* Fix uninitialized MaxPerPage when not in querystr

The issue was that the req.MaxPerPage was not set (default to 0) when
the query string didn't include "max". This makes the server query the
whole db since the resulting limit is 0.

* Fix creating empty torrents (only worked once)

* Lines of 400 characters is still dumb
2017-05-19 12:55:59 +10:00
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
ayame-git
d5370705c0 converts hash to uppercase 2017-05-12 04:28:00 +03:00
ayame-git
d94f8102d1 convert base32 hash to base16 2017-05-12 00:59:00 +03: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
ayame-git
1bf4012eb2 yea.. 2017-05-10 21:42:20 +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
ayame-git
b758a966d3 validator rewrite 2017-05-09 23:24:32 +03:00
ayame-git
59ed2ec4c6 update 2017-05-09 21:54:50 +03:00
ayame-git
c59e15e610 upload changes 2017-05-09 20:37:39 +03:00
ayame-git
42fe689628 using reflect 2017-05-09 19:37:40 +03:00
ayame-git
71b2b798b8 search query 2017-05-09 18:09:45 +03:00