func GetEpisode(c *http.Client, auth AuthConfig, videoID string) (Episode, error) {
	url := "https://beta-api.crunchyroll.com/cms/v2" + auth.Bucket + "/episodes/" + videoID + "?locale=en-US&Signature=" + auth.Signature + "&Key-Pair-Id=" + auth.KeyPairID + "&Policy=" + auth.Policy
	req, err := http.NewRequest(http.MethodGet, url, nil)

	if err != nil {
		return Episode{}, err
	}

	req.Header.Add("User-Agent", common.UserAgent)
	req.Header.Add("Accept-Language", "en-US;q=1.0")

	resp, err := c.Do(req)

	if err != nil {
		log.Fatal(err)
		return Episode{}, err
	}

	defer resp.Body.Close()

	var episode Episode
	body, err := ioutil.ReadAll(resp.Body)

	if err != nil {
		log.Fatal(err)
		return Episode{}, err
	}

	json.Unmarshal([]byte(body), &episode)

	return episode, nil
}
// GetEpisode returns information about the episode
GetEpisode returns information about the episode
// GetEpisode returns information about the episode
func GetEpisode(c *http.Client, auth AuthConfig, videoID string) (Episode, error) {
	url := "https://beta-api.crunchyroll.com/cms/v2" + auth.Bucket + "/episodes/" + videoID + "?locale=en-US&Signature=" + auth.Signature + "&Key-Pair-Id=" + auth.KeyPairID + "&Policy=" + auth.Policy
	req, err := http.NewRequest(http.MethodGet, url, nil)
	if err != nil {
		return Episode{}, err
	}
	req.Header.Add("User-Agent", common.UserAgent)
	req.Header.Add("Accept-Language", "en-US;q=1.0")
	resp, err := c.Do(req)
	if err != nil {
		log.Fatal(err)
		return Episode{}, err
	}
	defer resp.Body.Close()
	var episode Episode
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
		return Episode{}, err
	}
	json.Unmarshal([]byte(body), &episode)
	return episode, nil
}
func GetEpisode ( c * http . Client , auth AuthConfig , videoID string ) ( Episode , error ) { url := " " + auth . Bucket + " " + videoID + " " + auth . Signature + " " + auth . KeyPairID + " " + auth . Policy req , err := http . NewRequest ( http . MethodGet , url , nil ) if err != nil { return Episode { } , err } req . Header . Add ( " " , common . UserAgent ) req . Header . Add ( " " , " " ) resp , err := c . Do ( req ) if err != nil { log . Fatal ( err ) return Episode { } , err } defer resp . Body . Close ( ) var episode Episode body , err := ioutil . ReadAll ( resp . Body ) if err != nil { log . Fatal ( err ) return Episode { } , err } json . Unmarshal ( [ ] byte ( body ) , & episode ) return episode , nil }
GetEpisode returns information about the episode
GetEpisode returns information about the episode