Preview a folder before saving it
GET
/vod/watch-folders/preview/read Read: looks, changes nothing. Scopes
What a scan would find in a folder: counts, and up to 8 files and how they are read. It stops at 20,000 files or about 15 seconds. A problem comes back on the field it is about, e.g. {"path": "…"}.
Query parameters
extensionsstringfolderstring (uuid)kindstringmovies- Moviesseries- TV showsboth- Movies and TV shows
One of:
"movies""series""both"""pathstringrootstringincoming- Incoming foldermedia- Media folder
One of:
"incoming""media"""serverstring (uuid)sourcestringnode- A servers3- A bucket
One of:
"node""s3"Default:
"node"storagestring (uuid)
Response
200 OK
filesintegerrequiredmoviesintegerrequiredepisodesintegerrequiredshowsintegerrequiredignoredintegerrequiredFiles that are not video files.
skippedintegerrequiredFiles the folder's kind would leave out.
in_panelintegerrequiredFiles whose title the panel has already.
watched_byobjectrequiredcan be nullA watch folder already watching this place.
idstring (uuid)requirednamestringrequired
truncatedbooleanrequirednotestringrequiredcan be nullexamplesobject[]requiredUp to 8 files and how they are read.
namestringrequiredThe file name.
kindstringrequiredmovieorepisode.titlestringrequiredyearintegerrequiredcan be nullshowstringrequiredcan be nullseasonintegerrequiredcan be nullepisodeintegerrequiredcan be null
Errors
- 400
{field: problem}. - 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.