{ "format_version": 1, "retired": [ { "key": "notes", "type": "longtext" } ], "id": "film", "name": "Film", "plural": "Films", "picture": null, "builtin": false, "visibility": "owner", "engine": null, "columns": [ { "key": "title", "name": "Title", "type": "text", "required": true, "placeholder": "The film's or series' title" }, { "key": "year", "name": "Year", "type": "text", "placeholder": "2019" }, { "key": "poster", "name": "Poster", "type": "photo" }, { "key": "backdrop", "name": "Backdrop", "type": "photo" }, { "key": "kind", "name": "Kind", "type": "choice", "choices": [ "film", "series", "clip" ], "labels": { "film": "Film", "series": "Series", "clip": "Clip" }, "default": "film" }, { "key": "status", "name": "Status", "type": "choice", "choices": [ "want_to_watch", "watching", "watched", "stopped" ], "labels": { "want_to_watch": "Want to watch", "watching": "Watching", "watched": "Watched", "stopped": "Stopped" }, "default": "want_to_watch" }, { "key": "file", "name": "Film", "type": "file", "readonly": true }, { "key": "watched_on", "name": "Watched", "type": "date" }, { "key": "rating", "name": "Rating", "type": "number", "units": { "one": "{n} of 5", "other": "{n} of 5" } }, { "key": "review", "name": "Review", "type": "longtext", "placeholder": "What you thought of it" }, { "key": "minutes", "name": "Length", "type": "number", "format": "duration", "units": { "one": "minute", "other": "minutes" } }, { "key": "director", "name": "Director", "type": "text", "placeholder": "Who directed it" }, { "key": "cast", "name": "Cast", "type": "text", "placeholder": "Who is in it" }, { "key": "genres", "name": "Genres", "type": "text" }, { "key": "synopsis", "name": "Synopsis", "type": "longtext" }, { "key": "certificate", "name": "Certificate", "type": "text" }, { "key": "language", "name": "Language", "type": "text" }, { "key": "country", "name": "Country", "type": "text" }, { "key": "tmdb_id", "name": "TMDB", "type": "text", "readonly": true }, { "key": "imdb_id", "name": "IMDb", "type": "text", "readonly": true }, { "key": "tvdb_id", "name": "TheTVDB", "type": "text", "readonly": true }, { "key": "original_title", "name": "Original title", "type": "text", "placeholder": "The title in its own language" }, { "key": "chapters", "name": "Chapters", "type": "longtext", "readonly": true, "hidden": true }, { "key": "subtitles", "name": "Subtitle tracks", "type": "longtext", "readonly": true, "hidden": true }, { "key": "subtitle_work", "readonly": false, "name": "Subtitle work", "type": "choice", "choices": [ "find", "generate", "finding", "generating", "translating", "ready", "none", "failed", "file" ], "labels": { "find": "Waiting for your Mac to find them", "generate": "Waiting for your Mac to make them", "finding": "Finding", "generating": "Making", "translating": "Translating", "ready": "Ready", "none": "None found", "failed": "Not made", "file": "Waiting for your Mac to lay your file" }, "hidden": true }, { "key": "subtitle_note", "name": "Subtitles", "type": "text", "readonly": true }, { "key": "oshash", "name": "OpenSubtitles hash", "type": "text", "readonly": true, "hidden": true }, { "key": "subtitle_choice", "name": "Subtitles chosen", "type": "text", "readonly": true, "hidden": true }, { "key": "subtitle_offset", "name": "Subtitle timing", "type": "number", "readonly": true, "hidden": true }, { "key": "subtitle_given", "name": "Subtitles you gave", "type": "file", "readonly": true, "hidden": true }, { "key": "subtitle_given_language", "name": "Your subtitles' language", "type": "text", "readonly": true, "hidden": true }, { "key": "original", "name": "The original file", "type": "file", "readonly": true, "hidden": true }, { "key": "original_bytes", "name": "The original's size", "type": "number", "readonly": true, "hidden": true }, { "key": "original_sha256", "name": "The original's fingerprint", "type": "text", "readonly": true, "hidden": true }, { "key": "video_range", "name": "Picture range", "type": "text", "readonly": true, "hidden": true }, { "key": "sdr_variant", "name": "An SDR picture beside it", "type": "bool", "readonly": true, "hidden": true }, { "key": "in_hidden", "name": "In Hidden", "type": "bool", "readonly": true, "hidden": true }, { "key": "poster_before", "name": "The poster before a frame was picked", "type": "photo", "readonly": true, "hidden": true }, { "key": "poster_from", "name": "Where the picked poster was taken", "type": "number", "readonly": true, "hidden": true }, { "key": "position", "name": "Watched to", "type": "number", "format": "duration", "readonly": true }, { "key": "position_at", "name": "Last watched", "type": "date", "format": "calendar-datetime", "readonly": true }, { "key": "recommended_by", "name": "Recommended by", "type": "link", "link_to": "person" }, { "key": "recommended_by_name", "name": "Recommended by (name)", "type": "text", "placeholder": "Someone not in People" }, { "key": "watched_with", "name": "Watched with", "type": "text", "placeholder": "Who you watched it with" }, { "key": "added_on", "name": "Added", "type": "date" }, { "key": "last_watched_at", "name": "Last watched", "type": "date", "format": "calendar-datetime", "readonly": true }, { "key": "needs_mac", "name": "Converting on your Mac", "type": "bool", "readonly": true }, { "key": "source_file", "name": "The file as it came", "type": "file", "readonly": true }, { "key": "source_url", "name": "From", "type": "text", "readonly": true }, { "key": "uploader", "name": "By", "type": "text", "placeholder": "Who put it online" }, { "key": "filled_from", "name": "Filled from", "type": "longtext", "readonly": true }, { "key": "sha256", "name": "The file's fingerprint", "type": "text", "readonly": true }, { "key": "height", "name": "Picture height", "type": "number", "readonly": true }, { "key": "bitrate", "name": "Bitrate", "type": "number", "readonly": true }, { "key": "on_phone", "name": "On this phone", "type": "choice", "choices": [ "absent", "keeping", "kept" ], "labels": { "absent": "Not on this phone", "keeping": "Coming down", "kept": "On this phone" }, "readonly": true }, { "key": "sent_by", "name": "Sent by", "type": "text", "readonly": true }, { "key": "sent_by_number", "name": "Sent from", "type": "text", "readonly": true }, { "key": "sent_at", "name": "Sent", "type": "date", "format": "calendar-datetime", "readonly": true }, { "key": "send_id", "name": "Send", "type": "text", "readonly": true } ], "seal": { "clear": [ "poster", "backdrop", "kind", "status", "file", "watched_on", "position", "position_at", "added_on", "last_watched_at", "needs_mac", "source_file", "on_phone", "filled_from", "sent_at", "send_id", "subtitle_work", "subtitle_choice", "subtitle_offset", "original", "original_bytes", "video_range", "sdr_variant", "subtitle_given", "subtitle_given_language", "poster_before", "poster_from" ], "blind": [ "title" ] }, "title": "title", "date": "last_watched_at", "project": null, "order": null, "slip": { "title": "title", "subtitle": "year", "trailing": "status", "photo": "poster", "toggle": null, "player": "file" }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "poster", "title", "year", "kind", "status", "rating", "minutes", "subtitle_note" ] }, { "heading": "Watched", "columns": [ "watched_on", "last_watched_at", "watched_with", "recommended_by", "recommended_by_name" ] }, { "heading": "Review", "columns": [ "review" ] }, { "heading": "Film", "columns": [ "synopsis", "director", "cast", "genres", "certificate", "language", "country", "backdrop", "added_on", "on_phone", "tmdb_id", "imdb_id" ] } ], "sort": { "column": "title", "descending": false }, "empty": { "title": "A seat for your first film." }, "instructions": "One row per film or series the owner owns as files, means to watch or has watched; kind is film or series. A film with a file plays in the app: file is the stream the object serves (an HLS master under films// made by the Mac, or a playable MP4 or MOV kept whole as films//whole.); a film whose file still needs converting holds the upload in source_file with needs_mac true until the Mac importer's stream lands; a film with neither is a want-to-watch poster. A series holds no file: its seasons are film_season rows and their episodes film_episode rows. status is want_to_watch, watching, watched or stopped; watched_on is the day the owner finished it, last_watched_at when it last played, both stamped by the player or by Mark watched, never guessed. position (seconds into the film, the resume point) and position_at are written by the phone's player alone; a series' position_at is the time any of its episodes last played. rating is out of 5; review is the owner's words. Details (synopsis, cast, genres, certificate, language, country, director, minutes, tmdb_id, imdb_id, poster and backdrop) come from the file's own tags, then its folder and name (Title (2019).mkv), then find_film { query } | { film } at the object (TMDB), each filling only empty columns; filled_from says, as JSON, where each lookup's columns came from. added_on is the day the row was made. sha256 is the SHA-256 of the file as it came in (the same file twice is already here); height (the picture's height in pixels) and bitrate (kilobits a second) are the file's, read when it came in: of two files of the same title and year, the taller then the denser is kept. on_phone is answered by each phone (absent, keeping, kept) and never stored. Lists are this table's groups. Every play is also a watch row. subtitles is the one answer to which subtitle tracks the film's stream carries, as JSON, one entry per WebVTT rendition in its master: { language (BCP 47), name (as the player lists it), source (embedded: a text track inside the file; sidecar: a .srt/.vtt/.ass beside it; opensubtitles: found on OpenSubtitles.com; generated: transcribed on the Mac by whisper.cpp in the film's own language; translated: a generated or found track's text translated, its timings kept), made_at (ISO-8601), file (the rendition's WebVTT in the film's folder), forced?, from? (a translation's source language), by? (the OpenSubtitles file id, the whisper model or the translator) }, written by the Mac alone. subtitle_work is what the Mac is asked or doing: Find subtitles sets find and Make subtitles sets generate (the Mac's film:subtitles --queue drains both), then finding, generating or translating while it works, then ready, none (nothing found and nothing made) or failed; subtitle_note is the one line it keeps current, shown on the film. oshash is the OpenSubtitles hash of the file as it came in (its size and its first and last 64 KB), read at import so a later Find subtitles matches timings without the file. subtitle_choice is the subtitle track the owner last chose in the player for this film (the rendition's language and name as JSON, or off), written by the phone's player and restored at the next play. subtitle_offset is the owner's timing shift for this film's subtitles, in milliseconds (negative shows them earlier, positive later), set in the player in 100 ms steps and reset to 0; absent is 0. The core keeps it and its words; the players only shift the cues. original is the film's original file, kept untouched beside its stream and sealed like it: the key of a small sealed index (films//original//index.json) naming the piece count, piece size, total bytes, sha256 and file extension of the fixed-size sealed pieces beside it, which the Mac reads by range; original_bytes is its size and original_sha256 the SHA-256 of the whole file. All three are written by the Mac importer alone, after the stream (a film plays before its original is up); empty means the film keeps no original yet. The phone never fetches the original. video_range is the stream's picture range as its top variant has it: SDR, PQ (HDR10, Dolby Vision's base) or HLG, read from the picture's transfer by the Mac importer. sdr_variant is true once the master also lists an SDR picture (H.264, BT.709, tone-mapped from the HDR one, in video-sdr/ beside it) so a screen that shows no HDR (an SDR TV, an AirPlay receiver) plays the film; an HDR film without it plays only on an HDR screen. Both are written by the Mac alone (film:import, film:sdr). Give subtitles is the owner's own subtitle file: the phone picks a .srt or .vtt from its files, keeps it sealed in the film's folder as subtitle_given (films//given/sub-.), says its language in subtitle_given_language where the file's name says one (Film.en.srt; else empty, and the Mac takes the first language the owner reads) and sets subtitle_work to file; the Mac's film:subtitles --queue lays it as a track (source sidecar) in place of none, then ready or failed as for any ask.", "commands": [ { "id": "play", "label": "Play", "kind": "update", "method": "shell.player", "data": { "table": "film", "op": "play" }, "bindings": { "id": "$id" }, "receipt": "Playing {name}", "object": "slip" }, { "id": "play_from_start", "label": "Play from the start", "kind": "update", "method": "shell.player", "data": { "table": "film", "op": "play", "at_s": 0 }, "bindings": { "id": "$id" }, "when": { "position": { "not": [ false, 0 ] } }, "receipt": "Playing {name} from the start", "object": "slip" }, { "id": "mark_watched", "label": "Mark watched", "kind": "update", "method": "films.mark", "data": { "table": "film", "watched": true }, "bindings": { "id": "$id" }, "when": { "status": [ "want_to_watch", "watching", "stopped" ] }, "receipt": "Watched {name}", "object": "stamp" }, { "id": "mark_unwatched", "label": "Mark unwatched", "kind": "update", "method": "films.mark", "data": { "table": "film", "watched": false }, "bindings": { "id": "$id" }, "when": { "status": "watched" }, "receipt": "{name} is unwatched", "object": "folder" }, { "id": "find_details", "label": "Find details", "kind": "update", "method": "object.act", "data": { "act": "find_film" }, "bindings": { "film": "$id" }, "when": { "tmdb_id": [ false, "" ] }, "receipt": "Looking up {name}", "object": "loop" }, { "id": "find_subtitles", "label": "Find subtitles", "kind": "update", "verb": "update_record", "data": { "table": "film", "patch": { "subtitle_work": "find" } }, "bindings": { "id": "$id" }, "when": { "file": { "not": [ false, "" ] }, "subtitle_work": { "not": [ "find", "generate", "finding", "generating", "translating", "file" ] } }, "receipt": "Your Mac will look for subtitles for {name}", "object": "loop" }, { "id": "generate_subtitles", "label": "Make subtitles", "kind": "update", "verb": "update_record", "data": { "table": "film", "patch": { "subtitle_work": "generate" } }, "bindings": { "id": "$id" }, "when": { "file": { "not": [ false, "" ] }, "subtitle_work": { "not": [ "find", "generate", "finding", "generating", "translating", "file" ] } }, "receipt": "Your Mac will make subtitles for {name}", "object": "pencil" }, { "id": "give_subtitles", "label": "Give subtitles", "kind": "update", "method": "films.subtitleFile", "data": { "table": "film" }, "bindings": { "id": "$id" }, "when": { "file": { "not": [ false, "" ] }, "subtitle_work": { "not": [ "find", "generate", "finding", "generating", "translating", "file" ] } }, "pick": { "argument": "path", "kind": "file", "label": "A subtitle file", "accept": [ "srt", "vtt" ] }, "receipt": "Your Mac will add your subtitles to {name}", "object": "slip" }, { "id": "keep_on_phone", "label": "Keep on phone", "kind": "update", "method": "settings.openFlow", "data": { "flow": "keepFilm", "origin_table": "film" }, "bindings": { "origin_id": "$id" }, "when": { "kind": "film", "on_phone": "absent" }, "receipt": "Keeping {name} on this phone", "object": "folder" }, { "id": "keep_series", "label": "Keep series", "kind": "update", "method": "settings.openFlow", "data": { "flow": "keepFilm", "origin_table": "film" }, "bindings": { "origin_id": "$id" }, "when": { "kind": "series", "on_phone": "absent" }, "receipt": "Keeping {name} on this phone", "object": "folder" }, { "id": "remove_download", "label": "Remove download", "kind": "update", "method": "settings.openFlow", "data": { "flow": "removeFilmDownload", "origin_table": "film" }, "bindings": { "origin_id": "$id" }, "when": { "on_phone": [ "keeping", "kept" ] }, "receipt": "Removed {name} from this phone", "object": "bin" } ], "card": { "face": "film.poster", "offers": [ "film.poster" ], "pages": [ "review" ], "fields": [ { "slot": "photo", "column": "poster" }, { "slot": "title", "column": "title" }, { "slot": "year", "column": "year" }, { "slot": "state", "column": "status", "also": [ "needs_mac" ], "only": [ "want_to_watch", "watching", "watched", "stopped" ] }, { "slot": "date", "column": "watched_on" }, { "slot": "used", "column": "position" }, { "slot": "limit", "column": "minutes" }, { "slot": "facts", "column": "kind" }, { "slot": "count", "column": "rating" }, { "slot": "body", "column": "review" } ], "opens": { "table": "film_season", "by": "film", "order": [ "number" ], "when": { "column": "kind", "values": [ "series" ] } } }, "groups": { "stack": "covers" }, "create": { "label": "Add a film", "doors": [ { "id": "files", "label": "Add files", "object": "pouch", "files": { "types": [ "public.mpeg-4", "com.apple.quicktime-movie", "public.avi", "org.matroska.mkv" ], "many": true } }, { "id": "folder", "label": "Add a folder", "object": "portfolio", "files": { "types": [ "public.folder" ] } }, { "id": "find", "label": "Find a film", "object": "frame", "act": { "name": "find_film", "argument": "query", "lands": "film" } } ] }, "related": [ { "label": "Seasons", "table": "film_season", "column": "film" }, { "label": "Episodes", "table": "film_episode", "column": "series" } ], "send": { "columns": [ "title", "year", "poster", "backdrop", "kind", "file", "minutes", "director", "cast", "genres", "synopsis", "certificate", "language", "country", "tmdb_id", "imdb_id", "tvdb_id", "original_title", "chapters", "sha256", "height", "bitrate" ], "files": [ "poster", "backdrop", "file" ], "folders": [ "file" ], "same": [ [ "sha256" ], [ "imdb_id" ], [ "tmdb_id" ] ], "with": [ { "table": "film_season", "by": "film" } ] } }