diff options
| author | Jokler <jokler@protonmail.com> | 2020-01-31 22:34:31 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-02-22 23:20:10 +0100 |
| commit | ca4c0158f417b87f04313053a3f656f2de4e803b (patch) | |
| tree | 8eeb45f789d409f2b45e857f0ce743d2cf29640a /src/youtube_dl.rs | |
| parent | 757edd214f841e8d95e4c5430d7ead7a0e8fecbb (diff) | |
| download | pokebot-ca4c0158f417b87f04313053a3f656f2de4e803b.tar.gz pokebot-ca4c0158f417b87f04313053a3f656f2de4e803b.zip | |
Make titles of audio metdata non optional
Diffstat (limited to 'src/youtube_dl.rs')
| -rw-r--r-- | src/youtube_dl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/youtube_dl.rs b/src/youtube_dl.rs index c6012f0..b62d4b3 100644 --- a/src/youtube_dl.rs +++ b/src/youtube_dl.rs @@ -9,7 +9,7 @@ use log::debug; #[derive(Serialize, Deserialize, Clone, Debug)] pub struct AudioMetadata { pub url: String, - pub title: Option<String>, + pub title: String, } pub async fn get_audio_download_url(uri: String) -> Result<AudioMetadata, String> { |
