From 945ad1651d9de1cea0e12fc9bd72192d3dc00f71 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 8 Oct 2017 13:04:46 +0200 Subject: [PATCH] Update format --- source/_components/media_extractor.markdown | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/source/_components/media_extractor.markdown b/source/_components/media_extractor.markdown index ac97b505f9d..1eb54f61e83 100644 --- a/source/_components/media_extractor.markdown +++ b/source/_components/media_extractor.markdown @@ -41,14 +41,23 @@ media_extractor: music: bestaudio[ext=mp3] ``` -This configuration sets query for all service calls like: ```{"entity_id": "media_player.my_sonos", "media_content_id": "https://soundcloud.com/bruttoband/brutto-11", "media_content_type": "music"}``` to 'bestaudio' with mp3 extension. +This configuration sets query for all service calls like to 'bestaudio' with the mp3 extension: + +```json +{ + "entity_id": "media_player.my_sonos", + "media_content_id": "https://soundcloud.com/bruttoband/brutto-11", + "media_content_type": "music" +} +``` Query examples with explanations: - * **bestvideo** - best video only stream - * **best** - best video + audio stream - * **bestaudio[ext=m4a]** - best audio stream with m4a extension - * **worst** - worst video + audio stream - * **bestaudio[ext=m4a]/bestaudio[ext=ogg]/bestaudio** - best m4a audio, otherwise best ogg audio and only then any best audio + + * **bestvideo**: Best video only stream + * **best**: Best video + audio stream + * **bestaudio[ext=m4a]**: Best audio stream with m4a extension + * **worst**: Worst video + audio stream + * **bestaudio[ext=m4a]/bestaudio[ext=ogg]/bestaudio**: Best m4a audio, otherwise best ogg audio and only then any best audio More info about queries [here](https://github.com/rg3/youtube-dl#format-selection)