From d2e548fb9264dea44f4b076e0880d1e258d70d9f Mon Sep 17 00:00:00 2001 From: j Date: Mon, 15 Nov 2021 10:11:55 +0000 Subject: [PATCH] add command line example --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 98de011..9de5178 100644 --- a/README.md +++ b/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'