Fix show more formats collapse
This commit is contained in:
parent
681225c2ae
commit
247cc211fa
|
@ -25,12 +25,18 @@
|
|||
</div>
|
||||
{{if gt (len $video.OtherFormats) 0}}
|
||||
<div class="d-grid my-3">
|
||||
<button class="btn btn-secondary" data-bs-toggle="collapse"
|
||||
data-bs-target="#{{$root.Meta.ID}}-{{$vidIndex}}-collapse">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-secondary"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#collapse-{{$root.Meta.ID}}-{{$vidIndex}}"
|
||||
aria-expanded="false"
|
||||
aria-controls="collapse-{{$root.Meta.ID}}-{{$vidIndex}}"
|
||||
>
|
||||
See More Formats
|
||||
</button>
|
||||
</div>
|
||||
<div id="{{$root.Meta.ID}}-{{$vidIndex}}-collapse" class="collapse">
|
||||
<div id="collapse-{{$root.Meta.ID}}-{{$vidIndex}}" class="collapse">
|
||||
<div class="downloads d-flex d-md-grid flex-column">
|
||||
{{range $index, $format := $video.OtherFormats}}
|
||||
{{$label := sprintf "ext: %s, resolution: %s, filesize: %s, note: %s" $format.Ext $format.Resolution
|
||||
|
|
|
@ -117,8 +117,6 @@ func LoadConfig(paths ...string) (*Config, error) {
|
|||
}
|
||||
}
|
||||
|
||||
viper.Debug()
|
||||
|
||||
config := DefaultConfig()
|
||||
if err := viper.Unmarshal(config); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue