Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
Fixed 720 default due to quality overwriting in cli declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
s32x committed Jul 1, 2016
1 parent d24b33b commit b4e53b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anirip/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func GetHTTPResponse(method, urlStr string, body io.Reader, header http.Header,
} else {
request.Header = http.Header{}
}
request.Header.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36")
request.Header.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36")

// Attaches all cookies passed
for _, cookie := range cookies {
Expand Down
4 changes: 2 additions & 2 deletions crunchyroll/episode.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ func (episode *CrunchyrollEpisode) GetEpisodeInfo(quality string, cookies []*htt
standardConfigReqHeaders.Add("Host", "www.crunchyroll.com")
standardConfigReqHeaders.Add("Origin", "http://static.ak.crunchyroll.com")
standardConfigReqHeaders.Add("Content-type", "application/x-www-form-urlencoded")
standardConfigReqHeaders.Add("Referer", "http://static.ak.crunchyroll.com/versioned_assets/StandardVideoPlayer.fb2c7182.swf")
standardConfigReqHeaders.Add("X-Requested-With", "ShockwaveFlash/19.0.0.245")
standardConfigReqHeaders.Add("Referer", "http://static.ak.crunchyroll.com/versioned_assets/StandardVideoPlayer.f3770232.swf")
standardConfigReqHeaders.Add("X-Requested-With", "ShockwaveFlash/22.0.0.192")
standardConfigResponse, err := anirip.GetHTTPResponse("POST",
"http://www.crunchyroll.com/xml/?"+queryString.Encode(),
bytes.NewBufferString(formData.Encode()),
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
Name: "trim, t",
Value: "daisuki,aniplex,sunrise",
Usage: "desired intros to be trimmed off of final video",
Destination: &quality,
Destination: &trim,
},
}
app.Commands = []cli.Command{
Expand Down

0 comments on commit b4e53b8

Please sign in to comment.