0f66ec9340
* 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=... |
||
---|---|---|
.. | ||
api_handler.go | ||
database_dump_handler.go | ||
faq_handler.go | ||
home_handler.go | ||
init.go | ||
language_handler.go | ||
modpanel.go | ||
not_found_handler.go | ||
router.go | ||
rss_handler.go | ||
search_handler.go | ||
template.go | ||
template_functions.go | ||
template_test.go | ||
template_variables.go | ||
torrent_report_handler.go | ||
upload.go | ||
upload_handler.go | ||
user_handler.go | ||
view_torrent_handler.go | ||
wrap_handler.go |