Commit graph

68 commits

Author SHA1 Message Date
shortcutme
1c607645c7
Track and stop site connected greenlets on delete 2019-11-19 02:07:51 +01:00
shortcutme
d166a16a24
Use function flagging in plugins 2019-08-26 03:20:07 +02:00
shortcutme
3e97c154a0
Remove hard-coded directory path from plugins 2019-08-02 16:05:19 +02:00
shortcutme
e34a9d452a
Allow filter optional files by inner path 2019-07-10 03:11:20 +02:00
shortcutme
efc5211451
Test optional file renames in OptionalManager plugin 2019-04-23 01:58:37 +02:00
shortcutme
f2bf5b12bd
Support optional file rename in OptionalManager plugin 2019-04-23 01:58:21 +02:00
shortcutme
dccda1af92
Pass optionalRemoved return value 2019-04-23 01:57:57 +02:00
radfish
ec6fd48b86 Bigfile: fix piece field bitmask to be used as bytearray consistently (#1982)
* Bigfile: make Piecefield array a bytearray

We want an array of characters. Py2 strings made sense to
use as an array of characters, but Py3 strings are different
and no longer a good choice.

* Bigfile: store bits as binary instead of char

* BigFile: rename to/from string -> to/from bytes

Since the type was changed to bytearray.
2019-04-16 15:14:19 +02:00
shortcutme
998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
krzotr
1c8fba4286
OptionalManager file info - set bytes_downloaded to file size if a file is fully downloaded 2019-04-13 23:07:13 +02:00
shortcutme
4fe4d0a7e7
BEGIN / END no longer necessary as there is no autocommit in new db module 2019-03-16 02:18:53 +01:00
shortcutme
b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
tangdou1
7a47d58ad4 Update zh.json for more respect (#1867)
* Update zh.json

* Update zh.json

* Update zh.json
2019-01-22 11:00:17 +01:00
shortcutme
ba9228b142
Is downloading status based on bad_files 2019-01-20 19:15:21 +01:00
Mickaël Schoentgen
e8298726ca Fix DeprecationWarning: invalid escape sequence
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-06 15:15:47 +01:00
shortcutme
0157ade1c9
Don't autodelete optional files from owned files 2018-11-29 14:32:32 +01:00
shortcutme
c734e13753
Escape pinned file names 2018-11-26 00:17:29 +01:00
shortcutme
f54443d7f8
Reset pinned cache on file deletion 2018-10-15 13:18:18 +02:00
shortcutme
3d82ad9222
Fix optional used bytes calculation 2018-10-15 13:18:00 +02:00
shortcutme
393c66385f
Add pinning notification based on number of files 2018-10-15 13:17:42 +02:00
shortcutme
b008195abd
Set pin using ContentManager function 2018-10-15 13:16:55 +02:00
shortcutme
ad2c11413e
Allow to filter to pinned files on optionalfilelist 2018-10-15 13:16:35 +02:00
shortcutme
1e2853c950
Update hashfield on update peer numbers 2018-10-15 13:15:36 +02:00
shortcutme
16b40a731a
Test pinned cache, download piece queue reset, pinned optional file delete 2018-10-15 13:13:43 +02:00
shortcutme
9b4b9334a3
Remove pinned status of a file on file deletion 2018-10-15 13:12:46 +02:00
shortcutme
96d40d9816
Don't modify pinned status on file downloaded 2018-10-15 13:12:27 +02:00
shortcutme
407b003cd6
Add all piece of an optional file to download queue if one of the piece is downoaded 2018-10-15 13:11:23 +02:00
shortcutme
8129d5e6af
Don't remove pinned files from download queue 2018-10-15 13:10:34 +02:00
shortcutme
c12454a8e9
Don't delete pinned file if it removed by owner 2018-10-15 13:09:43 +02:00
shortcutme
0f49d412b5
Stop auto pinning files larger than 20MB 2018-10-15 13:07:53 +02:00
shortcutme
b33551e62e
Exclude files larger than 20MB from garbage collection 2018-10-15 13:06:50 +02:00
shortcutme
8bb4d149b6
Fix comment typo 2018-10-15 13:05:24 +02:00
shortcutme
854fda4530
Skip updating hashfiled of inactive sites 2018-10-15 13:05:18 +02:00
shortcutme
7d3d0f7ceb
Add test for different files with same hash_id 2018-03-29 03:13:37 +02:00
shortcutme
101d2ea9b6
Check optional file downloaded status from sql if optionalmanager is present 2018-03-29 02:59:59 +02:00
shortcutme
c1397bbaf7
Attach optionalmanager events to ContentManager instead of WorkerManager 2018-03-29 02:58:24 +02:00
shortcutme
16a9f38844
Use renamed optionalRemoved function 2018-03-29 02:57:06 +02:00
shortcutme
f162987a4f
Rename optionalRemove to optionalRemoved and accept hash only by id 2018-03-29 02:54:52 +02:00
shortcutme
ad1d81dccf
Cache inner_path to sha512 hash for bigfiles to avoid loading content.json every time 2018-03-18 21:25:28 +01:00
shortcutme
1250b45694
Fix bigfile info on non-existent files 2018-01-28 16:42:56 +01:00
shortcutme
d7b6c54b08
Move get used optional file size to separate function 2018-01-19 02:14:29 +01:00
shortcutme
046877599e
Don't create empty piecefield for every optional file 2017-10-13 01:15:43 +02:00
shortcutme
7905e12fc3
Rev3097, Add peer info for bigfiles even if it's not downloaded 2017-10-06 00:42:19 +02:00
shortcutme
07caaa6b48
Fix removed is_pinned flag on content.json update 2017-10-05 19:24:39 +02:00
shortcutme
aa9e8b067f
Send websocket event on optional file deletion 2017-10-04 13:17:36 +02:00
shortcutme
e5963f8a76
OptionalFileDelete API call only works on downloaded files 2017-10-04 13:17:18 +02:00
shortcutme
e5b851b171
Add progress information to bigfiles 2017-10-04 13:16:02 +02:00
shortcutme
282f06b65e
Filter for OptionalFileList API call that allows to list non-downloaded files and only bigfiles 2017-10-04 13:15:44 +02:00
shortcutme
e8a439cad3
Mark my optional files using directory on signing instead of file path 2017-10-04 13:14:24 +02:00
shortcutme
cd025316db
Auto-pin downloaded bigger files 2017-10-04 13:13:00 +02:00