add command line example
This commit is contained in:
parent
e3adbbbbd0
commit
d2e548fb92
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
@ -5,13 +5,19 @@ You can use it to upload one or more files to your pandora instance.
|
|||
No conversion is done on the client side.
|
||||
To upload/sync large repositories use pandora_client
|
||||
|
||||
You can also use pandora-upload as a python script:
|
||||
Upload a file from the command line:
|
||||
|
||||
``` sh
|
||||
pandora-upload -h http://pandora/api/ -m "title=This is an example" -m "date=2021-11-15" /home/example/Videos/video.mp4
|
||||
```
|
||||
|
||||
or you can use pandora-upload in a python script:
|
||||
|
||||
``` python
|
||||
import pandora_client
|
||||
item_id = pandora_client.upload(
|
||||
'http://pandora/api/',
|
||||
['/home/example/Videos/video.mp4',
|
||||
['/home/example/Videos/video.mp4'],
|
||||
{
|
||||
'title': 'This is an example',
|
||||
'date': '2021-11-15'
|
||||
|
|
Loading…
Reference in a new issue