so://phie

verbal

A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal

blob: 8e6ccd91a8ff268227538cfae7c2227da74e3b49 (374 bytes)[doc][blame][raw]

1pub fn to_array(value: &str) -> Vec<String> {

2 value

3 .split(',')

4 .map(str::to_string)

5 .filter(|tag| !tag.trim().is_empty())

6 .collect::<Vec<String>>()

7}

8

9pub fn upgrade_to_https(url: &str) -> String {

10 if url.starts_with("http://") {

11 return format!("https://verbal.fm/api/upgrade?redirect={}", &url);

12 }

13 url.to_string()

14}