Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/router
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
..
api_handler.go Golint friendly next (#756) 2017-05-26 12:12:52 +02:00
database_dump_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
faq_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
home_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
init.go
language_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
modpanel.go Golint friendly next (#756) 2017-05-26 12:12:52 +02:00
not_found_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
router.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
rss_handler.go Golint friendly next (#756) 2017-05-26 12:12:52 +02:00
search_handler.go Elasticsearch integration (WIP) (#730) 2017-05-26 09:48:14 +10:00
template.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
template_functions.go CSS-only tree view. (#753) 2017-05-26 11:53:18 +10:00
template_test.go
template_variables.go New profile user menu (#761) 2017-05-26 14:33:55 +02:00
torrent_report_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00
upload.go Trackers in Torrents + Missing comments + Function renaming (#768) 2017-05-27 00:45:18 +02:00
upload_handler.go Trackers in Torrents + Missing comments + Function renaming (#768) 2017-05-27 00:45:18 +02:00
user_handler.go New profile user menu (#761) 2017-05-26 14:33:55 +02:00
view_torrent_handler.go Golint friendly next (#756) 2017-05-26 12:12:52 +02:00
wrap_handler.go Golint friendly (#747) 2017-05-25 21:54:58 +02:00