katnyaa
1016d5be02
Fix typo
2017-05-22 13:02:02 +00:00
aldacron
29e878a1ec
fixed api_uploader and reverted backend.py change
2017-05-22 00:36:01 -07:00
aldacron
ec72d8bf3d
updated v1 docs
2017-05-21 22:55:42 -07:00
aldacron
8fc81b395e
if is_trusted is not sent and user is trusted, torrent will marked as trusted unless specified. this also enable backward compat of v1
2017-05-21 22:53:28 -07:00
aldacron
c2438f3913
nyaadev is an idiot and broke apiv2
2017-05-21 22:10:05 -07:00
nyaadev
0a258d59e1
temporary ghetto import, will be removed once importing is done.
2017-05-22 01:49:02 +02:00
A nyaa developer
17d3e1e20d
Merge pull request #120 from nyaadevs/anon_upload_captcha
...
Add ReCaptcha to upload page if user is not logged in.
2017-05-21 19:32:04 +02:00
nyaadev
a4c7dd7912
Add ReCaptcha to upload page if user is not logged in.
...
Bring back CSRF to upload form (Use the upload API)
2017-05-21 19:29:21 +02:00
nyaadev
9af778217b
DB CHANGE: Add uploader ip address to torrent column and show on torrent view page for superadmins.
...
Added migration script!: remove sukebei_ lines if your local db does not have those.
Show users ip address on user page for superadmins.
Rename Admin to Moderator internally.
Moderators can now change user level to trusted.
Superadmins can make users moderator.
Improve changing user level.
2017-05-21 19:12:15 +02:00
nyaazi
92a6074fa2
Merge branch 'master' into reports
2017-05-21 18:48:45 +03:00
nyaadev
152e547ac5
Add flask-Migrate + alembic for automated database migrations.
...
Update some dependencies to their latest version.
Make executable scripts executable (chmod +x).
2017-05-21 17:47:16 +02:00
TheAMM
740be1a40a
Fix upload api handler: default to '' to conform better to WTForm
2017-05-21 12:41:34 +03:00
TheAMM
5408f3e7c4
Update upload api V2 + script for is_trusted
2017-05-21 12:28:37 +03:00
UnKnoWn
31d8d9ec5b
Issue #145 : Added CSS change for visited links ( #149 )
...
* Added CSS change for visited links
2017-05-21 11:38:11 +03:00
Anna-Maria Meriniemi
0475e2948d
Merge pull request #148 from nyaadevs/restructure-upload-edit
...
Restructure upload/edit templates
2017-05-21 10:28:46 +03:00
queue
89849ac25f
requirements.txt: add missing statsd
...
for sync_es.py
2017-05-21 01:06:50 -06:00
Yukikaze
3c0f5ee60a
Merge pull request #151 from nyaadevs/syncfaster
...
sync_es: multithread so it can actually keep up
2017-05-21 00:03:07 -07:00
queue
ea2160a49d
sync_es: move io to separate threads, config json
...
throughput is definitely massively improved, testing locally.
hopefully it'll be enough.
config moved a separate file by ops request. lazy lazy
2017-05-21 00:55:19 -06:00
queue
6a4ad827c1
sync_es: instrument with statsd, improve logging
...
also fixed the save time loop and spaced it out
to 10k events instead of 100.
Notably, the event no. of rows caps out at around 5 by default
because of default -binlog-row-event-max-size=8192 in mysql; that's
how many (torrent) rows fit into a single event.
We could increase that, but instead I think it's finally time to finally
multithread this thing; both the binlog read and the ES POST shouldn't
use the GIL so it'll actually work.
2017-05-20 23:19:35 -06:00
nyaazi
e13235fc97
"Unfix" the page
2017-05-20 23:00:42 +03:00
TheAMM
f31efcdaa1
Align fields better, move Anonymous as first flag
2017-05-20 22:50:49 +03:00
TheAMM
af0cca2f8c
Display full category names on upload/edit category lists
2017-05-20 22:50:40 +03:00
TheAMM
b9d88e8960
Restructure upload.html and edit.html as well as route logic
...
Rename variables and reformats user/admin logic
Add an is_trusted field to upload and edit forms
Restructure fields on upload and edit pages
Add simple styling for checkboxes
Add titles (mouseover) for checkboxes with crude explanations
Show Anonymous checkbox during upload and check & disable it for guests
Show Trusted checkbox for users at or above Trusted level
Adjust description field rendering to show field label above it
Add title (mouseover) for edit icon on torrent page
Show uploader for admins on anonymous torrents
Show uploader for admins when editing others' torrents
2017-05-20 22:00:45 +03:00
TheAMM
752a5a1f95
Clean up models.User.level helpers
2017-05-20 21:59:24 +03:00
TheAMM
2ccf23a1f3
Clean up models.User.level helpers
2017-05-20 21:56:22 +03:00
nyaazi
1705bfd6ea
Using the url_for function
2017-05-20 21:53:23 +03:00
nyaazi
04c9ef6685
Redundant query
2017-05-20 15:02:26 +03:00
nyaazi
ec0f8000d7
Usage of WTForms for report action
2017-05-20 14:23:29 +03:00
nyaazi
73c84ce5ec
Remove duplicate reports for already reviewed torrent
2017-05-20 13:58:58 +03:00
nyaazi
354736720b
Implemented report action
...
Actions: Close report, Hide torrent, Delete torrent
2017-05-20 13:33:58 +03:00
TheAMM
95d2bff614
Add cascade to Torrent relationships for entry nuking (debugging purposes)
...
Doesn't change the schema, only how SQA will handle session.delete(Torrent.by_id(1337))
2017-05-20 10:16:01 +03:00
TheAMM
4b4a7b9830
Support BitComet empty directories (ew)
...
This will allow most (if not all) torrents that have been rejected by 'Malformed torrent metadata (path part is empty)'
Adjusts _validate_bytes to disable empty check
Adds the empty check to file tree parsing
2017-05-20 10:12:32 +03:00
Simon Veit Engmann
cc957ccc96
Changed RSS feed to conform to RSS standards and added a namespace
2017-05-20 01:13:04 +02:00
TheAMM
358c75036b
Fix RSS link generation on user pages
...
Also removes a debug print (oops #2 )
2017-05-19 23:20:15 +03:00
nyaazi
e6083325d6
Added reports page v2
2017-05-19 20:53:47 +03:00
nyaazi
799d5914d6
Added reports page
2017-05-19 20:52:04 +03:00
TheAMM
68b5bc045b
Add "magnets" parameter for RSS, slightly clean up home and view_user
2017-05-19 20:11:20 +03:00
nyaazi
98fbe6efb1
Adding report table, route and view.
2017-05-19 20:03:47 +03:00
TheAMM
daef4a9c6a
Finalize RSS ES fix
2017-05-19 19:25:48 +03:00
TheAMM
e7614bcef1
Merge branch 'update-rss-template' of https://github.com/sharkykh/nyaa into sharkykh-update-rss-template
2017-05-19 18:31:10 +03:00
nyaadev
375dcf15ef
Switch to CDN for bootstrap-select and font-awesome css
...
Remove superfluous static files
2017-05-19 15:23:26 +02:00
A nyaa developer
35f6c8b202
Merge pull request #134 from CounterPillow/cdnfix
...
Use cdnjs with SRI and HTTPS for all CDN JS files
2017-05-19 15:08:23 +02:00
nyaadev
2a1f8fab87
pep8
2017-05-19 14:36:33 +02:00
TheAMM
e554f9ae97
Fix category name on icon titletext, fixes #131
...
Also reformats the cat_id if-logic
2017-05-19 15:24:09 +03:00
TheAMM
18ebf201b8
Add a function for getting a id->category name map
...
Redo _create_upload_category_choices to use new function
Also removes (renames) by_id from models.SubCategory (we use composite key)
2017-05-19 15:21:20 +03:00
Nicolas F
c31f3d251b
Use cdnjs with SRI and HTTPS for all CDN JS files
...
SRI means that there's a lesser risk for XSS, and CDNJS itself
recommends always requesting them over HTTPS in their "About" page.
This closes #133
2017-05-19 08:43:49 +02:00
Mart
6406825790
Merge pull request #112 from mc10/patch-1
...
README: Fix typos
2017-05-19 00:26:23 -04:00
Mart
02fa705330
Merge pull request #107 from UnKnoWn-Consortium/patch-2
...
Make profile page more profile
2017-05-19 00:20:41 -04:00
Johnny Ding
1354a10577
Merge pull request #132 from kyamiko/master
...
Fixed possible crash in api_handler.py
2017-05-18 21:15:05 -07:00
TheAMM
52f0050085
Point v2 upload script to v2 endpoint (oops)
2017-05-18 22:37:38 +03:00