diff options
Diffstat (limited to 'rhimport/youtubedl_responses.go')
-rw-r--r-- | rhimport/youtubedl_responses.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rhimport/youtubedl_responses.go b/rhimport/youtubedl_responses.go index 6f6d7ee..abc4f11 100644 --- a/rhimport/youtubedl_responses.go +++ b/rhimport/youtubedl_responses.go @@ -30,7 +30,7 @@ import ( "io" ) -type YoutubeDLInfo struct { +type youtubeDLInfo struct { ID string `json:"id"` Title string `json:"title"` URL string `json:"url"` @@ -41,9 +41,9 @@ type YoutubeDLInfo struct { HTTPHeaders map[string]string `json:"http_headers"` } -func NewYoutubeDLInfoFromJSON(data io.Reader) (res *YoutubeDLInfo, err error) { +func newYoutubeDLInfoFromJSON(data io.Reader) (res *youtubeDLInfo, err error) { decoder := json.NewDecoder(data) - res = &YoutubeDLInfo{} + res = &youtubeDLInfo{} if jsonerr := decoder.Decode(res); jsonerr != nil { err = fmt.Errorf("Error parsing JSON response: %s", jsonerr) return |