mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Made some structs private
This commit is contained in:
parent
b1e5718c8d
commit
a378c93d68
1 changed files with 6 additions and 6 deletions
|
|
@ -204,7 +204,7 @@ func extractEpisodes(url string, locales ...crunchyroll.LOCALE) [][]*crunchyroll
|
||||||
return final
|
return final
|
||||||
}
|
}
|
||||||
|
|
||||||
type FormatInformation struct {
|
type formatInformation struct {
|
||||||
// the format to download
|
// the format to download
|
||||||
format *crunchyroll.Format
|
format *crunchyroll.Format
|
||||||
|
|
||||||
|
|
@ -221,7 +221,7 @@ type FormatInformation struct {
|
||||||
Subtitle crunchyroll.LOCALE `json:"subtitle"`
|
Subtitle crunchyroll.LOCALE `json:"subtitle"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fi FormatInformation) Format(source string) string {
|
func (fi formatInformation) Format(source string) string {
|
||||||
fields := reflect.TypeOf(fi)
|
fields := reflect.TypeOf(fi)
|
||||||
values := reflect.ValueOf(fi)
|
values := reflect.ValueOf(fi)
|
||||||
|
|
||||||
|
|
@ -246,7 +246,7 @@ func (fi FormatInformation) Format(source string) string {
|
||||||
return source
|
return source
|
||||||
}
|
}
|
||||||
|
|
||||||
type DownloadProgress struct {
|
type downloadProgress struct {
|
||||||
Prefix string
|
Prefix string
|
||||||
Message string
|
Message string
|
||||||
|
|
||||||
|
|
@ -259,15 +259,15 @@ type DownloadProgress struct {
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dp *DownloadProgress) Update() {
|
func (dp *downloadProgress) Update() {
|
||||||
dp.update("", false)
|
dp.update("", false)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dp *DownloadProgress) UpdateMessage(msg string, permanent bool) {
|
func (dp *downloadProgress) UpdateMessage(msg string, permanent bool) {
|
||||||
dp.update(msg, permanent)
|
dp.update(msg, permanent)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dp *DownloadProgress) update(msg string, permanent bool) {
|
func (dp *downloadProgress) update(msg string, permanent bool) {
|
||||||
if dp.Quiet {
|
if dp.Quiet {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue