pandora/pandora/0xdb.jsonc

654 lines
21 KiB
Text
Raw Normal View History

/*
Pan.do/ra Settings
You can edit this file.
*/
2010-09-05 00:31:29 +00:00
{
/*
Capabilities are per user level.
2011-10-13 17:35:33 +00:00
They can either be general:
{level: true} means a user of that level has the capability)
or related to items:
{level: x} means a user of that level has the capability
for items of a rights level up to and including x
*/
2011-08-25 21:14:42 +00:00
"capabilities": {
2011-10-02 15:37:58 +00:00
"canDeleteItems": {"admin": true},
"canDownloadVideo": {"guest": 0, "member": 0, "friend": 4, "staff": 4, "admin": 4},
"canEditMetadata": {"staff": true, "admin": true},
2011-10-27 08:47:57 +00:00
"canEditSitePages": {"staff": true, "admin": true},
2011-10-25 13:59:27 +00:00
"canEditUsers": {"admin": true},
"canPlayClips": {"guest": 2, "member": 2, "friend": 4, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "friend": 4, "staff": 4, "admin": 4},
2011-10-02 15:37:58 +00:00
"canReloadMetadata": {"staff": true, "admin": true},
2011-10-25 13:59:27 +00:00
"canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeFiles": {"staff": true, "admin": true},
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
2011-10-02 15:37:58 +00:00
"canSeeExtraItemViews": {"friend": true, "staff": true, "admin": true}
2011-08-25 21:14:42 +00:00
},
2011-10-13 17:35:33 +00:00
/*
clipKeys are the properties that clips can by sorted by.
If sortOperator is not specified, it will be + for strings and - for numbers.
*/
2011-08-21 08:17:10 +00:00
"clipKeys": [
{"id": "text", "title": "Text", "type": "string"},
2011-10-13 17:35:33 +00:00
{"id": "position", "title": "Position", "type": "float", "sortOperator": "+"},
{"id": "duration", "title": "Duration", "type": "float"},
2011-10-13 17:35:33 +00:00
{"id": "hue", "title": "Hue", "type": "float", "sortOperator": "+"},
{"id": "saturation", "title": "Saturation", "type": "float"},
{"id": "lightness", "title": "Lightness", "type": "float"},
{"id": "volume", "title": "Volume", "type": "float"}
2011-08-21 08:17:10 +00:00
],
2011-10-13 17:35:33 +00:00
// fixme: either this, or group: true in itemKeys, but not both
"groups": [
2011-09-17 23:24:53 +00:00
{"id": "director", "title": "Director", "type": "string"},
{"id": "country", "title": "Country", "type": "string"},
{"id": "year", "title": "Year", "type": "integer"},
{"id": "language", "title": "Language", "type": "string"},
{"id": "genre", "title": "Genre", "type": "string"},
{"id": "writer", "title": "Writer", "type": "string"},
{"id": "producer", "title": "Producer", "type": "string"},
{"id": "cinematographer", "title": "Cinematographer", "type": "string"},
{"id": "editor", "title": "Editor", "type": "string"},
{"id": "actor", "title": "Actor", "type": "string"},
{"id": "keyword", "title": "Keyword", "type": "string"}
2011-01-03 20:39:23 +00:00
],
2011-10-13 17:35:33 +00:00
/*
An itemKey must have the following properties:
id: The id of the key (as known by the server)
title: The title of the key (as displayed by the client)
type: text, string, float, integer, or array of any of these
and can have any of the following properties:
autocomplete: If true, find element will autocomplete
autocompleteSortKey: The key that suggestions will be sorted by
capability: A capability required to see this key
columnRequired: If true, the column can't be removed
columnWidth: Default column width in px
find: If true, will appear as a find option
format: {type: "...", args: [...]}, for special formatting
(Ox.formatType(args) will be called)
group: if true, one can group results by this key
sort: special sort rule (title, person)
sortOperator: sort operator (+, -), in case it differs from the
default for the key's type (+ for strings, - for numbers)
value: {key: "...", type: "..."}, for keys that are derived
from other keys (like number of actors), or "capability"
*/
"itemKeys": [
2011-05-30 13:46:57 +00:00
{
"id": "*",
2011-05-30 13:46:57 +00:00
"title": "All",
2011-09-19 12:29:55 +00:00
"type": "text",
2011-05-30 13:46:57 +00:00
"find": true
},
{
"id": "title",
"title": "Title",
"type": "string",
"autocomplete": true,
"autocompleteSortKey": "votes",
"columnRequired": true,
"columnWidth": 180,
"find": true,
"sort": "title"
},
{
"id": "director",
"title": "Director",
"type": ["string"],
"autocomplete": true,
"columnRequired": true,
"columnWidth": 180,
"find": true,
"group": true,
"sort": "person"
},
{
"id": "country",
"title": "Country",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
"find": true,
"group": true
},
{
"id": "year",
"title": "Year",
2011-10-13 17:35:33 +00:00
"type": "year", // fixme: do we need this?
"autocomplete": true,
"columnWidth": 60,
"find": true,
"group": true
},
{
"id": "language",
"title": "Language",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
"find": true,
"group": true
},
2011-01-23 04:58:40 +00:00
{
"id": "runtime",
"title": "Runtime",
"type": "integer",
"columnWidth": 60,
2011-10-10 07:51:05 +00:00
"format": {"type": "duration", "args": [0, "short"]}
2011-01-23 04:58:40 +00:00
},
{
"id": "writer",
"title": "Writer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"find": true,
"group": true,
"sort": "person"
},
{
2011-01-23 04:58:40 +00:00
"id": "producer",
"title": "Producer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"find": true,
"group": true,
"sort": "person"
},
{
"id": "cinematographer",
"title": "Cinematographer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"find": true,
"group": true,
"sort": "person"
},
{
"id": "editor",
"title": "Editor",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
"find": true,
"group": true,
"sort": "person"
},
{
"id": "actor",
"title": "Actor",
"type": ["string"],
"autocomplete": true,
"find": true,
"group": true,
"sort": "person"
},
2011-01-23 04:58:40 +00:00
{
"id": "numberofactors",
"title": "Number of Actors",
"type": "integer",
"columnWidth": 60,
"value": {"key": "actor", "type": "length"}
2011-01-23 04:58:40 +00:00
},
{
"id": "character",
"title": "Character",
"type": ["string"],
"autocomplete": true,
"find": true,
"sort": "string"
},
{
"id": "name",
"title": "Name",
"type": ["string"],
"autocomplete": true,
"find": true
},
{
"id": "genre",
"title": "Genre",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
"find": true,
"group": true
},
{
"id": "keyword",
"title": "Keyword",
"type": ["string"],
"autocomplete": true,
"find": true,
"group": true
},
{
"id": "summary",
"title": "Summary",
"type": "text",
"find": true
},
{
"id": "trivia",
"title": "Trivia",
"type": ["text"]
},
{
"id": "releasedate",
"title": "Release Date",
"type": "date",
"columnWidth": 120,
"format": {"type": "date", "args": ["%a, %b %e, %Y"]}
},
{
"id": "budget",
"title": "Budget",
"type": "integer",
"columnWidth": 90,
"format": {"type": "currency", "args": ["$", 0]}
},
{
"id": "gross",
"title": "Gross",
"type": "integer",
"columnWidth": 90,
"format": {"type": "currency", "args": ["$", 0]}
},
{
"id": "profit",
"title": "Profit",
"type": "integer",
"columnWidth": 90,
"format": {"type": "currency", "args": ["$", 0]}
},
{
"id": "rating",
"title": "Rating",
"type": "float",
"columnWidth": 60,
"format": {"type": "percent", "args": [10, 2]}
},
{
"id": "votes",
"title": "Votes",
"type": "integer",
"columnWidth": 60,
"format": {"type": "percent", "args": ["auto", 2]}
},
{
"id": "id",
"title": "ID",
"type": "string",
"columnWidth": 90
},
2011-01-23 04:58:40 +00:00
{
"id": "subtitles",
"title": "Subtitles",
"type": "layer",
"find": true
},
{
"id": "duration",
"title": "Duration",
"type": "float",
"columnWidth": 90,
2011-10-10 07:32:50 +00:00
"format": {"type": "duration", "args": []}
},
{
"id": "resolution",
"title": "Resolution",
"type": ["integer"],
"columnWidth": 90
2011-01-23 04:58:40 +00:00
},
{
"id": "aspectratio",
"title": "Aspect Ratio",
"type": "float",
"columnWidth": 90,
"format": {"type": "unit", "args": [":1"]}
},
{
"id": "pixels",
"title": "Pixels",
"type": "integer",
"columnWidth": 90,
"format": {"type": "value", "args": ["px"]}
},
{
"id": "hue",
"title": "Hue",
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["hue"]},
2011-10-25 13:59:27 +00:00
"sortOperator": "+"
},
{
"id": "saturation",
"title": "Saturation",
"type": "float",
"columnWidth": 90,
2011-09-04 04:15:12 +00:00
"format": {"type": "color", "args": ["saturation"]}
},
{
"id": "lightness",
"title": "Lightness",
"type": "float",
"columnWidth": 90,
2011-09-04 04:15:12 +00:00
"format": {"type": "color", "args": ["lightness"]}
},
{
"id": "volume",
"title": "Volume",
"type": "float",
"columnWidth": 60
},
{
"id": "numberofcuts",
"title": "Number of Cuts",
"type": "integer",
"columnWidth": 60,
"value": {"key": "cuts", "type": "length"}
},
{
"id": "cutsperminute",
"title": "Cuts per Minute",
"type": "float",
"columnWidth": 60,
"value": {"key": "cuts", "type": "lengthperminute"}
},
{
"id": "words",
"title": "Words",
"type": "integer",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "words"}
},
{
"id": "wordsperminute",
"title": "Words per Minute",
"type": "float",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "wordsperminute"}
},
{
"id": "size",
"title": "Size",
"type": "integer",
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"columnWidth": 60,
2011-08-25 21:14:42 +00:00
"format": {"type": "value", "args": ["B"]}
},
{
"id": "bitrate",
"title": "Bitrate",
"type": "integer",
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"columnWidth": 60,
2011-10-29 07:45:28 +00:00
"format": {"type": "value", "args": ["bps"]}
},
2011-08-25 21:14:42 +00:00
{
"id": "parts",
"title": "Parts",
"type": "integer",
"capability": "canSeeFiles",
"columnWidth": 60
},
{
"id": "numberoffiles",
"title": "Number of Files",
"type": "integer",
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"columnWidth": 60,
2011-08-25 21:14:42 +00:00
"value": {"key": "files", "type": "length"}
},
{
"id": "filename",
"title": "Filename",
"type": ["string"],
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"find": true
},
{
"id": "published",
"title": "Date Published",
"type": "date",
2011-01-28 08:54:00 +00:00
"columnWidth": 90,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
},
{
"id": "modified",
"title": "Date Modified",
"type": "date",
2011-01-28 08:54:00 +00:00
"columnWidth": 90,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
},
2011-01-23 04:58:40 +00:00
{
"id": "accessed",
"title": "Date Accessed",
"type": "date",
2011-01-28 08:54:00 +00:00
"columnWidth": 90,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
2011-01-23 04:58:40 +00:00
},
{
"id": "viewed",
"title": "Date Viewed",
"type": "date",
2011-01-28 08:54:00 +00:00
"columnWidth": 90,
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
2011-01-23 04:58:40 +00:00
},
{
"id": "popularity",
"title": "Popularity",
"type": "integer",
"columnWidth": 60,
"format": {"type": "percent", "args": ["auto", 2]}
2011-08-25 21:14:42 +00:00
},
2011-10-25 13:59:27 +00:00
{
"id": "rightslevel",
"title": "Rights Level",
2011-10-26 14:52:23 +00:00
"type": "label",
"columnWidth": 90,
"format": {"type": "ColorLevel", "args": [
["Public", "Relaxed", "Regular", "Restricted", "Private"]
]},
2011-10-25 13:59:27 +00:00
"sortOperator": "+"
},
2011-08-25 21:14:42 +00:00
{
"id": "canPlayVideo",
"title": "Can Play Video",
"type": "boolean",
"value": "capability"
},
{
"id": "canPlayClips",
"title": "Can Play Clips",
"type": "boolean",
"value": "capability"
}
],
2011-10-13 17:35:33 +00:00
/*
itemName specifies how items are being referred to.
Anything excessively long may cause layout errors.
*/
2011-01-03 20:39:23 +00:00
"itemName": {
"singular": "Movie",
"plural": "Movies"
},
2010-09-05 00:31:29 +00:00
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "clips", "title": "Clips"},
{"id": "video", "title": "Video"},
2010-09-05 00:31:29 +00:00
{"id": "timeline", "title": "Timeline"},
{"id": "map", "title": "Map"},
{"id": "calendar", "title": "Calendar"},
2011-09-28 17:32:03 +00:00
{"id": "data", "title": "Data"},
{"id": "files", "title": "Files"}
2010-09-05 00:31:29 +00:00
],
2011-01-03 20:39:23 +00:00
"layers": [
{
"id": "privatenotes",
"title": "Private Notes",
"type": "text",
"overlap": true,
"private": true
},
{
"id": "publicnotes",
"title": "Public Notes",
"overlap": true,
"type": "text"
},
{
"id": "subtitles",
"title": "Subtitles",
"type": "text",
"overlay": true,
"sort": [
{"id": "words", "title": "Words", "type": "words"},
{"id": "wordsperminute", "title": "Words per Minute", "type": "wordsperminute"}
]
}
2011-01-03 20:39:23 +00:00
],
2010-09-05 00:31:29 +00:00
"listViews": [
{"id": "list", "title": "as List"},
2011-09-17 07:07:59 +00:00
{"id": "grid", "title": "as Grid"},
//{"id": "info", "title": "with Info"},
2010-09-05 00:31:29 +00:00
{"id": "clips", "title": "with Clips"},
{"id": "timelines", "title": "with Timelines"},
//{"id": "maps", "title": "with Maps"},
//{"id": "calendars", "title": "with Calendars"},
2010-09-05 00:31:29 +00:00
{"id": "clip", "title": "as Clips"},
//{"id": "video", "title": "as Video"},
2010-09-05 00:31:29 +00:00
{"id": "map", "title": "on Map"},
{"id": "calendar", "title": "on Calendar"}
],
2011-06-06 18:38:16 +00:00
"media": {
"importMoviePosters": true,
"importPosterFrames": true
},
"personalLists": [
{"id": "favorites", "title": "Favorites"},
{"id": "most_popular", "title": "Most Popular", "query": {}},
{"id": "recently_viewed", "title": "Recently Viewed", "query": {}},
{"id": "1960s", "title": "1960s", "query": {"conditions": [{"key": "year", "value": "196", "operator": "^"}], "operator": "&"}},
{"id": "movies_with_full_video", "title": "Movies with Full Video", "query": {"conditions": [{"key": "canPlayVideo", "value": true, "operator": "="}], "operator": "&"}},
{"id": "movies_with_clips", "title": "Movies with Clips", "query": {"conditions": [{"key": "canPlayClips", "value": true, "operator": "="}], "operator": "&"}},
{"id": "no_tv_series", "title": "No TV Series", "query": {"conditions": [{"key": "isSeries", "value": false, "operator": "="}], "operator": "&"}}
],
2011-10-28 23:10:00 +00:00
"rightsLevel": {"member": 4, "staff": 3, "admin": 2},
2011-08-25 21:14:42 +00:00
"rightsLevels": [
2011-10-24 10:04:41 +00:00
{"name": "Public", "color": [128, 255, 128]},
{"name": "Relaxed", "color": [192, 255, 128]},
{"name": "Regular", "color": [255, 255, 128]},
{"name": "Restricted", "color": [255, 192, 128]},
{"name": "Private", "color": [255, 128, 128]}
2011-08-25 21:14:42 +00:00
],
"sendReferrer": false,
2010-09-14 13:49:04 +00:00
"site": {
"email": {
// E-mail address in contact form (to)
"contact": "0xdb@0xdb.org",
// E-mail address uses by the system (from)
"system": "0xdb@0xdb.org"
},
2011-10-26 14:52:23 +00:00
// fixme: there should be no magic applied to this file
2011-01-03 20:39:23 +00:00
"id": "{{settings.SITEID}}",
2010-09-14 13:49:04 +00:00
"name": "{{settings.SITENAME}}",
2011-10-27 10:07:44 +00:00
"url": "{{settings.URL}}",
"videoprefix": ""
2010-09-14 13:49:04 +00:00
},
2011-01-21 05:13:41 +00:00
"sitePages": [
{"id": "about", "title": "About"},
{"id": "news", "title": "News"},
{"id": "tour", "title": "Take a Tour"},
{"id": "faq", "title": "Frequently Asked Questions"},
{"id": "terms", "title": "Terms of Service"},
{"id": "rights", "title": "Rights Management"},
{"id": "contact", "title": "Contact"}
2010-09-05 00:31:29 +00:00
],
"totals": [
{"id": "items"},
{"id": "runtime"},
{"id": "files", "admin": true},
{"id": "duration", "admin": true},
{"id": "size", "admin": true},
{"id": "pixels"}
],
"user": {
2011-01-21 19:10:42 +00:00
"level": "guest",
2010-09-05 00:31:29 +00:00
"ui": {
2011-01-03 20:39:23 +00:00
"annotationsSize": 256,
"clipsColumns": 2,
"columns": {
"Colors": {
"columns": ["title", "director", "country", "year", "hue", "saturation", "brightness"],
"columnWidth": {}
}
},
"find": {"conditions": [], "operator": "&"},
2011-09-17 23:24:53 +00:00
"groups": [
{"id": "director", "sort": [{"key": "items", "operator": "-"}]},
{"id": "country", "sort": [{"key": "items", "operator": "-"}]},
{"id": "year", "sort": [{"key": "name", "operator": "-"}]},
{"id": "language", "sort": [{"key": "items", "operator": "-"}]},
{"id": "genre", "sort": [{"key": "items", "operator": "-"}]}
],
2010-12-22 18:28:44 +00:00
"groupsSize": 176,
2011-08-06 01:04:09 +00:00
"icons": "posters",
2011-08-06 01:34:07 +00:00
"infoIconSize": 256,
2011-01-03 20:39:23 +00:00
"item": "",
2011-10-09 13:31:46 +00:00
"itemSort": [{"key": "position", "operator": "+"}],
"itemView": "info",
"listColumns": ["title", "director", "country", "year", "language", "runtime", "genre"],
"listColumnWidth": {},
"listSelection": [],
2011-10-08 17:22:56 +00:00
"listSort": [{"key": "director", "operator": "+"}],
"listView": "grid",
"lists": {},
2011-10-01 13:51:18 +00:00
"mapFind": "",
"mapSelection": "",
2011-01-03 20:39:23 +00:00
"section": "items",
"showAnnotations": true,
"showBrowser": true,
2011-01-17 21:12:52 +00:00
"showControls": true,
2011-09-09 16:37:07 +00:00
"showFlags": true,
2011-01-14 06:24:40 +00:00
"showGroups": true,
"showHome": true,
2011-10-02 15:37:58 +00:00
"showIconBrowser": false,
2010-09-05 00:31:29 +00:00
"showInfo": true,
2011-09-30 03:35:40 +00:00
"showMapControls": false,
"showMapLabels": false,
2011-01-21 05:13:41 +00:00
"showFolder": {
"items": {
"personal": true,
"favorite": true,
2011-09-01 04:46:44 +00:00
"featured": true,
"volumes": true
2011-01-21 05:13:41 +00:00
}
},
2011-01-03 20:39:23 +00:00
"showSidebar": true,
"showSitePosters": false,
2011-01-05 13:06:09 +00:00
"sidebarSize": 256,
2011-01-17 21:12:52 +00:00
"theme": "modern",
2011-09-17 07:07:59 +00:00
"videoPoints": {},
2011-08-17 19:34:55 +00:00
"videoScale": "fit",
"videoMuted": false,
"videoSize": "small",
"videoView": "video",
2011-08-17 19:34:55 +00:00
"videoVolume": 1
2010-09-05 00:31:29 +00:00
},
2011-09-01 04:46:44 +00:00
"username": "",
"volumes": []
},
2011-10-24 10:04:41 +00:00
// fixme: this should include colors
2011-10-02 15:37:58 +00:00
"userLevels": ["guest", "member", "friend", "staff", "admin"],
2011-08-19 14:43:05 +00:00
"video": {
2011-08-20 10:06:18 +00:00
"download": false,
2011-08-19 21:00:22 +00:00
"formats": ["webm", "mp4"],
2011-08-19 14:43:05 +00:00
"resolutions": [96]
}
2010-09-10 10:09:21 +00:00
}