Commit Graph

111 Commits

Author SHA1 Message Date
Oha-you
7a7cdcacf3 fix: Check filenames properly, use separate function without '/' 2021-04-17 14:48:52 +03:00
Oha-you
452254c691 add: Validate if files inside torrents have valid filenames 2021-04-15 01:15:53 +03:00
Oha-you
3b8cbab91f fix: Validate if the uploaded file is a valid torrent 2021-04-14 23:01:45 +03:00
HDVinnie
8ef0446933 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-01-14 02:57:55 +00:00
HDVinnie
3e97e3941b update: torrent upload message 2021-01-13 21:57:42 -05:00
HDVinnie
c7401b7ea8 refactor: preslash simple functions
- performance
2021-01-05 17:45:46 -05:00
HDVinnie
7f77d02dd1 refactor: encapsed strings to sprintf 2021-01-02 17:46:39 -05:00
HDVinnie
c413575d44 refactor: api torrent controller
- Combine Ifs
2020-12-31 12:58:10 -05:00
HDVinnie
8a9d94e07a update: preslash simple functions
- performance
2020-12-31 12:41:46 -05:00
HDVinnie
0ffcc0bf46 refactor: api torrent controller 2020-12-30 01:21:27 -05:00
HDVinnie
a5ffe4a71a cleanup: api torrent controller 2020-12-28 23:13:42 -05:00
HDVinnie
467d31f10a refactor: constructor promotions 2020-12-17 23:25:50 -05:00
HDVinnie
51c8d70f94 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-12-16 03:32:01 +00:00
HDVinnie
45d9602d17 update: torrent api
- add keywords support
2020-12-15 22:31:49 -05:00
HDVinnie
78b5958686 refactor: use null comparison instead of empty 2020-12-02 21:19:45 -05:00
HDVinnie
817ce03fd0 refactor: insecure uniqid usage 2020-12-02 21:18:16 -05:00
HDVinnie
80ea54dc57 fix: torrent api 2020-11-23 18:14:15 -05:00
HDVinnie
992245bbcc Apply fixes from StyleCI
[ci skip] [skip ci]
2020-10-28 20:42:44 +00:00
HDVinnie
e5a4a16ddf refactor: meta data system
- Complete rewrite of meta data system
- New media hub feature.
- Torrent Bumping Refactor
- Wish System Disabled until refactored
- Fetch meta command added for fetchinng new meta on prexsisnting torrents.
- plus alot more
- closes #1428
- closes #1344
- closes #1147
- closes #361
2020-10-28 16:42:22 -04:00
PyR8zdl
4cb4dfd17a Fixes featured torrents not being set to freeleech and doubleup when uploaded via API 2020-08-07 17:26:30 -05:00
HDVinnie
0733269867 update: phpdoc blocks 2020-07-22 16:57:13 -04:00
HDVinnie
a975116218 refactor: preslash simple functions
- Add pre-slash to short named functions to improve performance by almost 30%
-  @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie
e7ccde0190 refactor: rename property to match type 2020-07-22 14:50:41 -04:00
HDVinnie
67edb56d01 fix: resolutions system 2020-06-09 22:06:13 -04:00
HDVinnie
296e4f590b update: torrent api controller 2020-06-06 22:36:16 -04:00
HDVinnie
f8e93da99e update: api torrent controller 2020-06-06 21:45:06 -04:00
HDVinnie
7c1c37d52e update: torrent request types 2020-05-26 20:08:52 -04:00
HDVinnie
ee85ab10ba update: torrent types 2020-05-26 13:45:43 -04:00
HDVinnie
3d3de56ccb update: queries 2020-05-26 13:22:18 -04:00
HDVinnie
78608a4666 refactor: space after sole ! operators
-  There should be a space after sole `!` operators
2020-04-14 22:31:48 -04:00
HDVinnie
887fc2be78 chore: styleci 2020-04-07 14:24:15 -04:00
HDVinnie
657fe1d1d7 update: torrent api
- update torrent resource to parse torrent size
- add filter params for torrent size, info_hash and file_name
2020-04-07 14:20:15 -04:00
HDVinnie
a724a9c1eb update: simplify if else to ternary 2020-03-22 11:45:41 -04:00
PyR8zdl
5b7decc002 styleci fixes 2020-03-20 14:09:25 -05:00
PyR8zdl
d71ca03455 Fixed indent's 2020-03-20 14:02:20 -05:00
PyR8zdl
efc65e45d1 Fixed more issues. Mostly tested. 2020-03-18 20:08:32 -05:00
PyR8zdl
dd67d63cbb Fixed Logical Operator 2020-03-18 16:23:21 -05:00
PyR8zdl
91122f532c ADD new options on torrent upload **STILL TESTING**
Adds options to set torrent as Featured, DoubleUp, Freeleech, and Sticky on upload api endpoint.

I've done limited testing on this and I'm worndering if this could be done better.
2020-03-18 16:00:13 -05:00
shlandturtle
89396e8068 fix: internal in API 2020-03-08 17:27:08 +00:00
HDVinnie
408bfafc3e Apply fixes from StyleCI
[ci skip] [skip ci]
2020-03-05 15:47:30 +00:00
HDVinnie
4b9c006a05 chore: phpdoc blocks cleanup 2020-03-05 10:46:14 -05:00
staticza
e3df04bca4 Fix error in check/delete of torrent after failing validation
Check / delete of torrent file was referencing the incorrect disk.  It was referring to `torrent` instead of `torrents`.
2020-03-02 00:58:49 +02:00
Ben Johnson
aa32a893fa tests: Implement TorrentController API tests
As part of this effort, a dedicated "torrents" storage location was
added to filesystems.php, which affects the torrent file storage
location. Accordingly, the torrent files in existing installations will
need to be moved (or symlinked) upon upgrade. The primary reason for
this change is mentioned in the Laravel docs: "This convention will
keep your publicly accessible files in one directory that can be easily
shared across deployments when using zero down-time deployment systems
like Envoyer."
2020-02-24 15:24:50 -05:00
HDVinnie
605c337204 refactor: encapsed strings to sprintf 2020-02-17 13:52:20 -05:00
HDVinnie
29cd6e8eb6 refactor: use identical over equal with same type 2020-02-16 21:04:19 -05:00
HDVinnie
c8d953a3ad Merge branch 'master' into development 2020-02-12 18:03:21 -05:00
HDVinnie
e47afe4ab4 chore: styleci 2020-02-12 14:51:22 -05:00
HDVinnie
80c842e39c chore: update license block
- make styleci happy
2020-02-12 14:49:18 -05:00
HDVinnie
dbb928f940 chore: update license block 2020-02-12 14:45:59 -05:00
HDVinnie
8d72989943 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-12 17:41:17 +00:00