Ejemplo n.º 1
0
    // Token: 0x060059CA RID: 22986 RVA: 0x001F290C File Offset: 0x001F0D0C
    private IEnumerator FindURIs(string url, Action onDone = null)
    {
        if (this.foundURIs.ContainsKey(url))
        {
            this.foundURIs.Remove(url);
        }
        yield return(YoutubeDL.FindBestVideoURL(url, false, delegate(string found)
        {
            if (!this.foundURIs.ContainsKey(url))
            {
                this.foundURIs.Add(url, new List <string>
                {
                    found
                });
            }
            else
            {
                this.foundURIs[url].Add(found);
            }
        }, delegate(string err)
        {
            Debug.LogError(err);
        }));

        if (!this.foundURIs.ContainsKey(url))
        {
            this.foundURIs.Add(url, new List <string>());
        }
        if (onDone != null)
        {
            onDone();
        }
        yield break;
    }