doc/06-post.md in ayadn-1.6.0 vs doc/06-post.md in ayadn-1.7.0

- old
+ new

@@ -92,18 +92,53 @@ # EMBED PICTURES You can embed one or several pictures in a post (with `post`, `write`, `reply` and `pm`). -Just add the `-e` (or `--embed`) option **at the end** of the command line, followed by one or several file paths separated by spaces. +Just add the `-E` (or `--embed`) option **at the end** of the command line, followed by one or several file paths separated by spaces. Accepted file formats are `jpg`, `png` and `gif`. Examples: ``` -ayadn -P Meet my cat -e lolcat.jpg -ayadn -P "@ericd Hey, meet my pets" -e ~/lolcat.jpg ./doge.jpeg -ayadn -W -e ~/lolcat.png -ayadn -R 23362460 -e "Desktop/dancing lolcat.gif" -ayadn pm @ericd -e /users/dad/lol\'cat.JPG /users/mom/my\ doge.PNG +ayadn -P Meet my cat -E lolcat.jpg +ayadn -P "@ericd Hey, meet my pets" -E ~/lolcat.jpg ./doge.jpeg +ayadn -W -E ~/lolcat.png +ayadn -R 23362460 -E "Desktop/dancing lolcat.gif" +ayadn pm @ericd -E /users/dad/lol\'cat.JPG /users/mom/my\ doge.PNG ``` + +# EMBED VIDEOS + +You can embed a video hosted online in a post. Currently works with Youtube and Vimeo only. + +Add the `-Y` option for Youtube or `-V` for Vimeo **at the end** of the command line, followed by the video URL. + +Examples: + +``` +ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY +ayadn -P Elixir -V http://vimeo.com/103927232 +ayadn -W -Y https://www.youtube.com/watch?v=Ei8CFin00PY +ayadn -R 23362460 -Y https://www.youtube.com/watch?v=Ei8CFin00PY +ayadn pm @ericd -Y https://www.youtube.com/watch?v=Ei8CFin00PY +``` + +Unfortunately, very few App.net clients treat video embedding properly. So I would advise to include the video URL in the text body anyway, for better compatibility. + +# EMBED MOVIE POSTER + +You can embed a movie poster in a normal post with option `-M`. + +This is compatible with other options, eg embedding other images. + +Warning: contrary to the `movie` command, this option doesn't check with the user if the movie is valid. The poster is retrieved from IMDb and is automatically embedded in the post. + +Examples: + +``` +ayadn -P "I'll be back" -M terminator +ayadn -W -M truman show -E ~/Pics/my_face.jpg +ayadn -R 23362460 -M the dark knight +``` +