create_m3u: Create a m3u file from a list of URL

View source: R/create_m3u.R

create_m3uR Documentation

Create a m3u file from a list of URL

Description

Creates a m3u (MPEG version 3.0 URL) file from a list of URLs. This file can be read by any multimedia reader (e.g. VLC). These audio/video URLs will be streamed (not downloaded). For more information: https://en.wikipedia.org/wiki/M3U

Usage

create_m3u(data, podcast, path = ".")

Arguments

data

a data.frame created by get_metadata().

podcast

a character of length 1. The name of the podcast.

path

a character of length 1. The folder to save the M3U file.

Value

The content of the M3U file (optional).

See Also

get_metadata()

Examples

## Not run: 
## Retrieve episodes metadata ----

tab <- get_metadata("un-ete-avec-homere", radio = "franceinter")


## Create a m3u playlist ----

x <- create_m3u(tab, "un-ete-avec-homere")
cat(paste0(x, collapse = "\n"))

## End(Not run)

ahasverus/franceinter documentation built on Oct. 15, 2024, 1:56 a.m.