// Retrieves the contents of another file relative to the location // of the playlist file func (c *Channel) GetFile(file string, query string) []byte { url := c.playlistURL() path_components := strings.Split(url, "/") file_name := path_components[len(path_components)-1] url = strings.Split(url, file_name)[0] url = url + file + "?" + query return proxy.GetBytesForURL(url) }
// Retrives contents of the Playlist file for the channel func (c *Channel) GetPlaylistFile() []byte { return proxy.GetBytesForURL(c.playlistURL()) }