mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add method parameter to internal request function
This commit is contained in:
parent
e31b8730da
commit
1c37c3e699
6 changed files with 20 additions and 15 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/grafov/m3u8"
|
||||
"net/http"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
|
|
@ -72,7 +73,7 @@ func (s *Stream) Formats() ([]*Format, error) {
|
|||
|
||||
// fromVideoStreams returns all streams which are accessible via the endpoint.
|
||||
func fromVideoStreams(crunchy *Crunchyroll, endpoint string) (streams []*Stream, err error) {
|
||||
resp, err := crunchy.request(endpoint)
|
||||
resp, err := crunchy.request(endpoint, http.MethodGet)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue