diff options
author | Lorenz Diener <[email protected]> | 2018-06-04 21:20:43 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-04 21:20:43 +0200 |
commit | 465981ea9a5e56e6a8b2cebcc6102849e5bc5acf (patch) | |
tree | 309afa3be515f82785d35b7ae17109148b2cbe28 /docs | |
parent | 362767f91146271e17f7f10bd976940a1544bd5a (diff) | |
download | mastodon.py-465981ea9a5e56e6a8b2cebcc6102849e5bc5acf.tar.gz |
Document and test focus
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst index 85b4b60..0dc31f8 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -409,6 +409,7 @@ Media dicts | |||
409 | # May additionally contain an "fps" field giving a videos frames per second (possibly | 409 | # May additionally contain an "fps" field giving a videos frames per second (possibly |
410 | # rounded), and a "length" field giving a videos length in a human-readable format. | 410 | # rounded), and a "length" field giving a videos length in a human-readable format. |
411 | # Note that a video may have an image as preview. | 411 | # Note that a video may have an image as preview. |
412 | # May also contain a 'focus' dict. | ||
412 | } | 413 | } |
413 | 414 | ||
414 | # Metadata dicts (image) - all fields are optional: | 415 | # Metadata dicts (image) - all fields are optional: |
@@ -429,6 +430,12 @@ Media dicts | |||
429 | 'bitrate': # Average bit-rate of the video in bytes per second | 430 | 'bitrate': # Average bit-rate of the video in bytes per second |
430 | } | 431 | } |
431 | 432 | ||
433 | # Focus Metadata dict: | ||
434 | { | ||
435 | 'x': Focus point x coordinate (between -1 and 1) | ||
436 | 'y': Focus point x coordinate (between -1 and 1) | ||
437 | } | ||
438 | |||
432 | Card dicts | 439 | Card dicts |
433 | ~~~~~~~~~~ | 440 | ~~~~~~~~~~ |
434 | .. _card dict: | 441 | .. _card dict: |