Commit Graph

75 Commits

Author SHA1 Message Date
kabitofu 2bb12a247b Japanese Translation 2020-11-27 17:49:21 +09:00
Tamas Kocsis 6fcfe5b394 Rev4540, More proper bigfile filtering for OptionalFileList 2020-10-29 02:44:07 +01:00
shortcutme 2b7aebd89d
Fix optional file loading when sites.json load takes more than 1 sec 2020-01-22 16:33:30 +01:00
shortcutme 2b5e57e840
Fix updateing deleted site in contentdb 2020-01-04 16:55:56 +01:00
shortcutme 39442977db
Thread safe access and request log updating in optionalmanager 2020-01-04 16:55:40 +01:00
shortcutme e91fb90a45
Fix tests when running for long time 2019-12-17 14:34:29 +01:00
shortcutme fca9db7972
Try fix Recursive use of cursors ProgrammingError by creating new cursor for every execute and move Lock to db 2019-11-27 03:07:08 +01:00
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