{ "views": [ { "id": "films", "label": "Films", "visibility": "owner", "is_default": true, "read": { "table": "film", "where": { "kind": "film" }, "empty": { "line": "empty_views.cinemas.films", "table": true } }, "sort": { "column": "title", "descending": false } }, { "id": "series", "label": "Series", "visibility": "owner", "is_default": false, "read": { "table": "film", "where": { "kind": "series" }, "empty": { "line": "empty_views.cinemas.series", "table": true } }, "sort": { "column": "title", "descending": false } }, { "id": "watched", "label": "Watched", "visibility": "owner", "is_default": false, "read": { "table": "film", "where": { "status": "watched" }, "empty": { "line": "empty_views.cinemas.watched", "table": true } }, "sort": { "column": "last_watched_at", "descending": true } }, { "id": "all", "label": "All", "visibility": "owner", "is_default": false, "read": { "table": "film", "empty": { "line": "empty_views.cinemas.all", "table": true } }, "sort": { "column": "added_on", "descending": true } }, { "id": "a_to_z", "label": "A to Z", "visibility": "owner", "is_default": false, "read": { "table": "film", "empty": { "line": "empty_views.cinemas.a_to_z", "table": true } }, "sort": { "column": "title", "descending": false } }, { "id": "on_phone", "label": "On this phone", "visibility": "owner", "is_default": false, "read": { "table": "film", "where": { "on_phone": [ "kept", "keeping" ] }, "empty": { "line": "empty_views.cinemas.on_phone", "table": true } }, "sort": { "column": "title", "descending": false }, "acts": [ "cinemas_keep_everything", "cinemas_cellular", "cinemas_budget", "export_library" ], "lists_before": true } ], "id": "cinemas", "name": "Films", "purpose": "The films and series you own as files: Films, Series, what you watched, All, A to Z, your own lists and what this phone keeps.", "picture": { "photo": "photo:aa30ee64d799b856e6219185544162815159ad9493bfb3e181c24898c805d0ec" }, "card_stock": "slate", "fan_tile": { "stock": { "photo": "photo:b17205b5dcee81c72f5911f736e75902be3bab334dab2624222309d38d2649eb" }, "type": "letterboard", "pictures": { "list": { "photo": "photo:bf4d4b02aaee9037390cb2b917bd17c6a159f788ea0c56772fe22474ee7315c6" }, "more": { "photo": "photo:c58bbbe7ef0d93dbd82611dc1d27f210ddbd58c14638920b6bd37e5faad4f54e" }, "new_list": { "photo": "photo:75c9019b2ed60d8beac36b640f5b7aa257465a6ef806a2a5ebf974af74bde608" } }, "views": { "a_to_z": { "photo": "photo:1ab99051b8c0ef77a46f53ecb7c68c7671bd8799c2d23b80d31e5dd836af64ea" }, "all": { "photo": "photo:f03e91db5416697577015960d41e58384d41abdfc301353f869ec3ea1b899445" }, "films": { "photo": "photo:7f39f76ce507f174bf796beb0a4beae88abba9e9513e079e8cae12b03d43cfaf" }, "on_phone": { "photo": "photo:f3e913d83fde78bc544b133225f9cf9e2b078a53021fe1e6a4bd9e8dbd19900c" }, "series": { "photo": "photo:9c0ee0d6fd55bd7735ffe172578cda1f0e17f597af8a1b78f76ba16397fb06c5" }, "watched": { "photo": "photo:e92914851c0fb169f3a2fab4f1f0ed4091deca44e8f2df2ddfdc2aebebbdb3ce" } }, "acts": { "account_back_up": { "photo": "photo:388b549c0499a81bb9611e9e430ccf164a502c8da901df269c06f80d2c4d458b" }, "account_sign_in": { "photo": "photo:2adb19bca9740f6e506de3f4ca05362e51c201ef38186afd4251194811afbbc9" }, "account_sign_out": { "photo": "photo:d19c26dceffb81bd4b65c9644c175964885d6d327cb6b0951295f03a7f6edff4" }, "bin": { "photo": "photo:d057a48a26bdf244a697f0836b748f592c0515d889dbc636c85f8278683c1989" }, "cinemas_budget": { "photo": "photo:7b3765b6dac242a42c8b859af5bb57ca73797e471a003f1696d1d1e129c27a75" }, "cinemas_cellular": { "photo": "photo:b8bc632f0653711b666fbb8e4a87b1c59ecf428855cf1543734e1253f9074d81" }, "cinemas_keep_everything": { "photo": "photo:a1ca49b9cfa9cabdfe718cb93586c884c3bbb8fefa5cc035115bbdd36a72fd6b" }, "export_library": { "photo": "photo:388b549c0499a81bb9611e9e430ccf164a502c8da901df269c06f80d2c4d458b" }, "find_details": { "photo": "photo:77bfaee16f5a453d23c8220c5c1f32e45132ebf411f7398b4c54167726655da1" }, "find_subtitles": { "photo": "photo:d96a48e65dd23e5c918e673739bea2cd73d9acb49bed16d76adfa79d83de948b" }, "generate_subtitles": { "photo": "photo:77bfaee16f5a453d23c8220c5c1f32e45132ebf411f7398b4c54167726655da1" }, "give_subtitles": { "photo": "photo:d96a48e65dd23e5c918e673739bea2cd73d9acb49bed16d76adfa79d83de948b" }, "group": { "photo": "photo:15a93d6a4b105c23e0342647b710a3e84fc258695a543ef6331c71f21293922f" }, "keep_on_phone": { "photo": "photo:1224decc5d93c7a83b67fa2255bf7c903086bd80d805ae10b7bd135c499a625d" }, "keep_season": { "photo": "photo:1224decc5d93c7a83b67fa2255bf7c903086bd80d805ae10b7bd135c499a625d" }, "keep_series": { "photo": "photo:50c6114d95e2e2d07f028f70c7d13fd80dd57f46de468fc4fd7626db9347b834" }, "list_member_earlier": { "photo": "photo:388b549c0499a81bb9611e9e430ccf164a502c8da901df269c06f80d2c4d458b" }, "list_member_later": { "photo": "photo:1224decc5d93c7a83b67fa2255bf7c903086bd80d805ae10b7bd135c499a625d" }, "list_member_remove": { "photo": "photo:cb78fbfbcb6a30c07b047291fd6df0c3b46113cb2931a13048562c763bb5f8f7" }, "list_move_earlier": { "photo": "photo:388b549c0499a81bb9611e9e430ccf164a502c8da901df269c06f80d2c4d458b" }, "list_move_later": { "photo": "photo:1224decc5d93c7a83b67fa2255bf7c903086bd80d805ae10b7bd135c499a625d" }, "list_remove": { "photo": "photo:d057a48a26bdf244a697f0836b748f592c0515d889dbc636c85f8278683c1989" }, "list_remove_picture": { "photo": "photo:d057a48a26bdf244a697f0836b748f592c0515d889dbc636c85f8278683c1989" }, "list_rename": { "photo": "photo:77bfaee16f5a453d23c8220c5c1f32e45132ebf411f7398b4c54167726655da1" }, "list_set_picture": { "photo": "photo:a25893d31ad52f9781e716310aa5e2541b5ab33b9878172e5cdcb159d75a66c3" }, "mark_unwatched": { "photo": "photo:d8cfe06fd7fd77939e1d6cff6c1e16f61d707aa11282ffe571a0258e1c607906" }, "mark_watched": { "photo": "photo:e92914851c0fb169f3a2fab4f1f0ed4091deca44e8f2df2ddfdc2aebebbdb3ce" }, "play": { "photo": "photo:b0eafa854938423f3e673f58f083da2f329125f4f6d34ce2b56d6f5aea190e4f" }, "play_from_start": { "photo": "photo:397831de47464edcb390f55afec33b1e0b87dc435a9a726b8aa52d759057c64c" }, "remove_download": { "photo": "photo:cb78fbfbcb6a30c07b047291fd6df0c3b46113cb2931a13048562c763bb5f8f7" }, "send": { "photo": "photo:388b549c0499a81bb9611e9e430ccf164a502c8da901df269c06f80d2c4d458b" }, "unsend": { "photo": "photo:d057a48a26bdf244a697f0836b748f592c0515d889dbc636c85f8278683c1989" }, "when": { "photo": "photo:e92914851c0fb169f3a2fab4f1f0ed4091deca44e8f2df2ddfdc2aebebbdb3ce" } }, "doors": { "files": { "photo": "photo:7a320839cbe2da602d730d6b79f58d6e86ca960b452c39c4071cc47bee2441b4" }, "find": { "photo": "photo:d96a48e65dd23e5c918e673739bea2cd73d9acb49bed16d76adfa79d83de948b" }, "folder": { "photo": "photo:e089a08864cdeeefa68c138476a7932a7a8565dadad6c47c9f4e8819e9d46d57" } } }, "tables": [ "film", "film_season", "film_episode", "watch", "vault_key" ], "instructions": "Films (Cotton Cinemas) keeps the films and series the owner owns as files: one film row per film or series, film_season and film_episode rows under a series, and one watch row per time something played, written by the player alone. Films (where it opens) and Series are by kind, by title; Watched is status watched, by last_watched_at; All is every film and series, the latest added first (added_on); A to Z is every film and series by title; then each list; On this phone what this phone keeps. A film or series played part-way keeps its resume point (position_at) and shows it on its poster. Lists are record groups of films and series (a record_group row with table_id film, each film in it a group_member row), made by the owner or an assistant: a list to watch is one of them, never a view. Films come in as files (the share sheet, Add files, Add a folder, the Mac's film:import) or as a want-to-watch poster from find_film { query }, which asks TMDB through the object; find_film { film } fills only a film's empty columns, and its seasons' and episodes'. Never make a film row with a file the object does not hold, and never guess a date, a rating or a length. The watch history is for reading: \"what did we watch last winter\" is the watch rows' started_at, film and with.", "automations": [], "acts": [ { "id": "cinemas_keep_everything", "label": "Keep everything", "object": "parcel" }, { "id": "cinemas_cellular", "label": "Mobile data for downloads", "object": "handset" }, { "id": "cinemas_budget", "label": "Storage budget", "object": "loop" }, { "id": "account_sign_in", "label": "Sign in", "object": "envelope" }, { "id": "account_back_up", "label": "Sync now", "object": "folder" }, { "id": "account_sign_out", "label": "Sign out", "object": "slip" }, { "id": "export_library", "label": "Export library", "object": "parcel" } ], "author": { "device": "cotton", "name": "Cotton" }, "signature": null }