|
1 | 1 | # Bunkrr Uploader |
2 | 2 |
|
3 | | -WORK IN PROGRESS |
4 | | - |
5 | 3 | ## Supports |
6 | 4 | - Bunkrr accounts |
7 | 5 | - Parallel uploads |
8 | 6 | - Retries |
9 | 7 | - Progress bars |
10 | 8 |
|
| 9 | +<div align="center"> |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +</div> |
| 17 | + |
| 18 | + |
| 19 | +```bash |
| 20 | +usage: main.py [-h] [-t str] [-n str] [-c int] [--chunk-size ByteSize] [--use-max-chunk-size bool] [--public bool] [--config-file {Path,null}] [--upload-retries int] [--chunk-retries int] PATH |
| 21 | + |
| 22 | +positional arguments: |
| 23 | + PATH File or directory to look for files in to upload |
| 24 | + |
| 25 | +options: |
| 26 | + -h, --help show this help message and exit |
| 27 | + -t str, --token str API token for your account so that you can upload to a specific account/folder. You can also set the BUNKR_TOKEN environment variable for this (required) |
| 28 | + -n str, --album-name str |
| 29 | + (default: ) |
| 30 | + -c int, --concurrent-uploads int |
| 31 | + Maximum parallel uploads to do at once (default: 2) |
| 32 | + --chunk-size ByteSize |
| 33 | + --use-max-chunk-size bool |
| 34 | + Use the server's maximum chunk size instead of the default one (default: True) |
| 35 | + --public bool Make all files uploaded public (default: True) |
| 36 | + --config-file {Path,null} |
| 37 | + (default: null) |
| 38 | + --upload-retries int How many times to retry a failed upload (default: 1) |
| 39 | + --chunk-retries int How many times to retry a failed chunk or chunk completion (default: 2) |
| 40 | +``` |
| 41 | +
|
11 | 42 | # TODO |
12 | | -- [ ] Use nicegui |
13 | 43 | - [X] Slit API and UploadClient |
14 | | -- [ ] Migrate to `~~Niquests~~ aiohttp |
| 44 | +- [X] Migrate to aiohttp |
15 | 45 | - [ ] Upload logging |
16 | | -- [ ] Replace tqdm with rich progress |
| 46 | +- [X] Replace tqdm with rich progress |
17 | 47 | - [ ] Skipping duplicate uploads |
18 | 48 | - [ ] Private and public directory uploads |
19 | 49 | - [ ] Update README |
20 | | -- [ ] Make it work |
| 50 | +- [X] Make it work |
21 | 51 | - [ ] Add file zipping and cleanup |
22 | 52 | - [ ] Add tests |
23 | 53 | - [ ] Add github runners for tests |
24 | 54 | - [X] Recursive directory upload support |
25 | 55 |
|
| 56 | +
|
| 57 | +
|
26 | 58 | Original code by [alexmi256](https://github.com/alexmi256/bunkrr-uploader) |
0 commit comments