Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Sep 13, 2024
1 parent 6bbd7f3 commit 89a422b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app-filemeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
const config = loadYaml(path.resolve(__dirname, './.config.yaml'));
const meta = loadYaml(path.resolve(__dirname, './package.json'));

console.log('[INFO] TeraBox App', 'v' + meta.version, '(FileMeta Module)');
console.log(`[INFO] ${meta.name_ext} v${meta.version} (FileMeta Module)`);

const yargs = new Argv(config, ['a','l','r']);
const yargs = new Argv(config, ['a','r']);
if(yargs.getArgv('help')){
yargs.showHelp();
process.exit();
Expand Down
4 changes: 2 additions & 2 deletions app-getdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
const config = loadYaml(path.resolve(__dirname, './.config.yaml'));
const meta = loadYaml(path.resolve(__dirname, './package.json'));

console.log('[INFO] TeraBox App', 'v' + meta.version, '(GetDL Module)');
console.log(`[INFO] ${meta.name_ext} v${meta.version} (GetDL Module)`);
let sRoot = '';

const yargs = new Argv(config, ['a','l','r']);
const yargs = new Argv(config, ['a','r']);
if(yargs.getArgv('help')){
yargs.showHelp();
process.exit();
Expand Down
2 changes: 1 addition & 1 deletion app-mktbhash.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
const config = loadYaml(path.resolve(__dirname, './.config.yaml'));
const meta = loadYaml(path.resolve(__dirname, './package.json'));

console.log('[INFO] TeraBox App', 'v' + meta.version, '(Make TBHash Module)');
console.log(`[INFO] ${meta.name_ext} v${meta.version} (Make TBHash Module)`);

const yargs = new Argv(config, ['l','skip-chunks']);
if(yargs.getArgv('help')){
Expand Down
2 changes: 1 addition & 1 deletion app-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
const config = loadYaml(path.resolve(__dirname, './.config.yaml'));
const meta = loadYaml(path.resolve(__dirname, './package.json'));

console.log('[INFO] TeraBox App', 'v' + meta.version, '(Uploader Module)');
console.log(`[INFO] ${meta.name_ext} v${meta.version} (Uploader Module)`);

const yargs = new Argv(config, ['a','l','r','no-rapidupload']);
if(yargs.getArgv('help')){
Expand Down
9 changes: 7 additions & 2 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
4. Select the "Cookies" item in the left panel.
5. Look for the "ndus" cookie value and copy it to ".config.yaml".

For Downloading files using app-getdl.js you need Aria2 RPC server

```yaml
accounts:
MyMainAcc: Y-DSDSD...
MySecondAcc: YDvrwD...
MainAcc: Y-DSDSD...
SecondAcc: YDvrwD...
aria2:
url: http://localhost:6800/jsonrpc
secret: YOUR_ARIA2_RPC_SECRET
```
16 changes: 9 additions & 7 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,28 @@ Install NodeJS version 20 or higher. Then install required modules with npm (or
no options for this script
```
### Upload Folders/Files:
**node "app-uploader.js"**
**node "app-uploader.js" <options>**
```
-a "acc" select account (by name from ".config.yaml")
-l "/" select local directory
-r "/" select remote directory
--no-rapidupload don't use rapidupload function
```
### Create TBHash for RapidUpload:
**node "app-mktbhash.js"**
**node "app-mktbhash.js" <options>**
```
-l "/" select local directory
--skip-chunks don't create chunck hashes
```
### Download Files from Remote:
**node "app-getdl.js"**
### Download Files from Remote via Aria2 RPC:
**node "app-getdl.js" <options>**
```
IN DEVELOPMENT, use alist for now
-a "acc" select account (by name from ".config.yaml")
-r "/" select remote directory
```
### Fetch File Meta Information from Remote:
**node "app-filemeta.js"**
**node "app-filemeta.js" <options>**
```
IN DEVELOPMENT
-a "acc" select account (by name from ".config.yaml")
-r "/" select remote directory
```

0 comments on commit 89a422b

Please sign in to comment.