private void DownloadYoutube(string value) { string youtubeUrl = YoutubeThumbnail.GetImageUrlFromUrl(value, (YoutubeThumbnail.YoutubeImageType)m_dropdown.value); SetText(string.Format("[![{0}]({2})]({1}) \n{1}", m_altText.text, value, youtubeUrl)); StartCoroutine(StartDownloadPreview(youtubeUrl)); }
private string GetYoutubeImageUrl() { return(YoutubeThumbnail.GetImageUrlFromUrl(m_youtube.text, (YoutubeThumbnail.YoutubeImageType)m_dropdown.value)); }