Commit 603afd6f authored by Julius Künzel's avatar Julius Künzel
Browse files

Add providers

parent bffa093d
......@@ -4,7 +4,6 @@ archiveorg.json
freesound.json
pexels_photo.json
pexels_video.json
filmmusicio.json
pixabay_photo.json
DESTINATION ${DATA_INSTALL_DIR}/kdenlive/resourceproviders)
{
"name": "Internet Archive Movies",
"homepage": "https://archive.org",
"description": "",
"type": "video",
"logoUrl":"",
"integration": "buildin",
"attributionHtml":"",
"apikey":"",
"api": {
"root": "https://archive.org",
"search": {
"req": {
"path": "/advancedsearch.php",
"method": "GET",
"params": [
{ "key": "rows", "value": "%perpage%" },
{ "key": "page", "value": "%pagenum%" },
{ "key": "output", "value": "json"},
{ "key": "fl[]", "value": "creator"},
{ "key": "fl[]", "value": "description"},
{ "key": "fl[]", "value": "identifier"},
{ "key": "fl[]", "value": "licenseurl"},
{ "key": "fl[]", "value": "title"},
{ "key": "q", "value": "(%query%)+AND+mediatype:(movies)" }
]
},
"res": {
"format": "json",
"resultCount":"response.numFound",
"list":"response.docs",
"name": "title",
"id":"identifier",
"url":"$http://archive.org/details/{identifier}",
"licenseUrl":"licenseurl",
"attributionText": "%generateDefault",
"description": "description",
"author": "creator",
"width": "width",
"height": "height",
"imageUrl": "image"
}
},
"downloadUrls": {
"req": {
"path": "/details/%id%",
"method": "GET",
"params": [
{ "key": "output", "value": "json"}
]
},
"res": {
"format": "json",
"downloadUrls": {"key":"files", "isObject":true, "url":"$http://archive.org/download/%id%{&}", "format": "format", "name":"${source} {format} {width}x{height}"}
}
}
}
}
{
"name": "Freesound",
"homepage": "https://freesound.org",
"type": "sound",
"integration": "buildin",
"downloadOAuth2": true,
"clientkey": "%freesound_apikey%",
"api": {
"root": "https://freesound.org/apiv2",
"oauth2": {
"authorizationUrl": "https://freesound.org/apiv2/oauth2/authorize/",
"accessTokenUrl": "https://freesound.org/apiv2/oauth2/access_token/",
"clientId": "fFo1lNyrTSJDp5PAGgKg"
},
"search": {
"req": {
"path": "/search/text/",
"method": "GET",
"params": [
{ "key": "format", "value": "json" },
{ "key": "fields", "value": "id,url,name,description,license,filesize,duration,username,download,previews,images,type" },
{ "key": "filter", "value": "icense:(\"Attribution\"+OR+\"Creative+Commons+0\")"},
{ "key": "page_size", "value": "%perpage%" },
{ "key": "page", "value": "%pagenum%" },
{ "key": "query", "value": "%query%" },
{ "key": "token", "value": "%clientkey%" }
]
},
"res": {
"format": "json",
"resultCount":"count",
"list":"results",
"name":"name",
"filetype":"type",
"id":"id",
"url":"url",
"licenseUrl":"license",
"description": "description",
"author": "username",
"authorUrl": "$https://freesound.org/people/{username}",
"duration": "duration",
"filesize":"filesize",
"downloadUrl": "download",
"previewUrl": "previews.preview-hq-mp3",
"imageUrl": "images.waveform_m"
}
}
}
}
{
"name": "Pexels Photos",
"homepage": "https://pexels.com",
"type": "image",
"integration": "buildin",
"clientkey":"%pexels_apikey%",
"api": {
"root": "https://api.pexels.com/v1",
"search": {
"req": {
"path": "/search",
"method": "GET",
"header": [
{ "key": "Authorization", "value": "%clientkey%" }
],
"params": [
{ "key": "locale", "value": "%shortlocale%" },
{ "key": "per_page", "value": "%perpage%" },
{ "key": "page", "value": "%pagenum%" },
{ "key": "query", "value": "%query%" }
]
},
"res": {
"format": "json",
"resultCount":"total_results",
"list":"photos",
"id":"id",
"url":"url",
"licenseUrl":"$https://www.pexels.com/license/",
"author": "photographer",
"authorUrl": "photographer_url",
"width": "width",
"height": "height",
"downloadUrl": "src.original",
"imageUrl": "src.tiny"
}
}
}
}
{
"name": "Pexels Video",
"homepage": "https://pexels.com",
"type": "video",
"integration": "buildin",
"clientkey":"%pexels_apikey%",
"api": {
"root": "https://api.pexels.com/videos",
"search": {
"req": {
"path": "/search",
"method": "GET",
"header": [
{ "key": "Authorization", "value": "%clientkey%" }
],
"params": [
{ "key": "locale", "value": "%shortlocale%" },
{ "key": "per_page", "value": "%perpage%" },
{ "key": "page", "value": "%pagenum%" },
{ "key": "query", "value": "%query%" }
]
},
"res": {
"format": "json",
"resultCount":"total_results",
"list":"videos",
"id":"id",
"url":"url",
"licenseUrl":"$https://www.pexels.com/license/",
"author": "user.name",
"authorUrl": "user.url",
"width": "width",
"height": "height",
"duration": "duration",
"imageUrl": "image",
"downloadUrls": { "key": "video_files", "url":"link", "name":"${quality} {width}x{height}"}
}
}
}
}
{
"name": "Pixabay Photos",
"homepage": "https://pixabay.com/",
"type": "image",
"integration": "buildin",
"clientkey":"%pixabay_apikey%",
"api": {
"root": "https://pixabay.com/api/",
"search": {
"req": {
"path": "",
"method": "GET",
"params": [
{ "key": "per_page", "value": "%perpage%" },
{ "key": "page", "value": "%pagenum%" },
{ "key": "q", "value": "%query%" },
{ "key": "key", "value": "%clientkey%" }
]
},
"res": {
"format": "json",
"resultCount":"total",
"list":"hits",
"id":"id",
"url":"pageURL",
"licenseUrl":"$https://pixabay.com/service/license/",
"author": "user",
"authorUrl": "$https://pixabay.com/users/{user}-{user_id}/",
"width": "imageWidth",
"height": "imageHeight",
"downloadUrl": "largeImageURL",
"imageUrl": "previewURL"
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment