** this software is still under development, its not recommended to use it now. **
the squawk content directory server (CDS) serves mediafiles from the local storage. the mediafile are enriched with local and remote metadata.
To install the server from source you need cmake and a recent c++ (C++14) compiler installed. The developmeent packages of the dependencies must be available to the compiler.
start the content directory server from the command line:
cds [OPTION...]
| name | value | description |
|---|---|---|
| --directory | PATH | path to the directory with the mediafiles. Multiple entries will result in a list containing all directories. |
| --listen | IP | API Webserver IP-Adress to bind to. |
| --http-port | PORT | API Webserver IP Port to bind to. |
| --tmp-directory | PATH | temporary folder for the thumbnails. |
| --tmdb-key | KEY | API key for tmdb. |
| --amazon-access-key | KEY | Access key for amazon. |
| --amazon-key | KEY | API key for amazon. |
| --redis | HOST | Redis Database (default: localhost) (default: localhost) |
| --redis-port | PORT | Redis Database port (default: 6379) (default: 6379) |
| --help | Print help |
all the requests have the base url of your server: http://<SERVER_IP>:<PORT>
the directory is structured as a tree. the content can be traversed from the root node.
beside of the class specific attributes, the node will always contain the key, parent and cls attributes.
GET /{node}/nodes
| name | value | description |
|---|---|---|
| node | {key} | select from which parent node the list is created. root, for the keys file, ebook, movie, album, serie, artist and image the type collection is returned. |
| name | value | description |
|---|---|---|
| sort | alpha, timestamp | sort list alphanumerical or by last access timestamp. |
| order | asc, desc | sort ascending or descending. default ist ascending. |
| filter | tag | filter results by tag. |
| index | {digit} | start index of the result list. |
| count | {digit} | number of results in the result list. |
GET /{digit}
GET /[ebook|movie|album|serie|artist|image]/name|{keyword}
GET rescan
| name | value | description |
|---|---|---|
| flush | true, false | flush the database before import the files. |
for information retrievel the following database services can be used:
binary dependencies needs to be installed on the target system.
these libraries will be downloaded and staticaly linked during the compile process.
Content type
Image
Digest
Size
36.5 MB
Last updated
almost 9 years ago
docker pull squawk/cds