Add extract media url service to media extractor (#32331)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Joost Lekkerkerker 2024-04-22 08:53:35 +02:00 committed by GitHub
parent 070385521d
commit 626ec5e3aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,6 +77,15 @@ This will download the file from the given URL.
| `media_content_id` | no | The ID of the content to play. Platform dependent. | | `media_content_id` | no | The ID of the content to play. Platform dependent. |
| `media_content_type` | no | The type of the content to play. Must be one of MUSIC, TVSHOW, VIDEO, EPISODE, CHANNEL or PLAYLIST MUSIC. | | `media_content_type` | no | The type of the content to play. Must be one of MUSIC, TVSHOW, VIDEO, EPISODE, CHANNEL or PLAYLIST MUSIC. |
### Extract media URL service
There is also a service that will directly return the URL in the response of the service.
| Service data attribute | Optional | Description |
|-----------------------| -------- |-----------------------------------------------------------------------------------------------------------|
| `url` | no | The URL of the media to extract. |
| `format_query` | yes | The query that will be used to select the right media. |
### Cookies ### Cookies
Some supported video services provide a better experience when you are logged in. For example, if you use Twitch Turbo or are subscribed to a Twitch streamer, logging in prevents the video stream from showing an "An ad is currently playing. Come back after the break." message until the ad is over. Other examples are private or purchased YouTube videos which you can only watch while logged in. Some supported video services provide a better experience when you are logged in. For example, if you use Twitch Turbo or are subscribed to a Twitch streamer, logging in prevents the video stream from showing an "An ad is currently playing. Come back after the break." message until the ad is over. Other examples are private or purchased YouTube videos which you can only watch while logged in.