fix: indentation; add podcast:episode and remove spurious episode number
This commit is contained in:
parent
4f148ac9c1
commit
c7d353502b
2 changed files with 60 additions and 56 deletions
|
@ -34,7 +34,7 @@ params:
|
||||||
# duration: 0 # podcast field: itunes:duration ; expressed in seconds
|
# duration: 0 # podcast field: itunes:duration ; expressed in seconds
|
||||||
# image: "" # podcast field: itunes:image ; image for the episode
|
# image: "" # podcast field: itunes:image ; image for the episode
|
||||||
# explicit: false # podcast field: itunes:explicit
|
# explicit: false # podcast field: itunes:explicit
|
||||||
# episode_number: 0 # podcast field: itunes:episode ; the number of the episode in the series/season
|
# episode_number: 0 # podcast field: itunes:episode and podcast:episode ; the number of the episode in the series/season
|
||||||
# season: # podcast field: itunes:season
|
# season: # podcast field: itunes:season
|
||||||
# number: 0 # the number of the season
|
# number: 0 # the number of the season
|
||||||
# title: ""
|
# title: ""
|
||||||
|
@ -75,7 +75,6 @@ params:
|
||||||
# freeform: "" # Description of the place (128 chars max)
|
# freeform: "" # Description of the place (128 chars max)
|
||||||
# geo: "" # lattitude and longitude expressed in "geo" notation
|
# geo: "" # lattitude and longitude expressed in "geo" notation
|
||||||
# osm: "" # Open Street Map Identifier
|
# osm: "" # Open Street Map Identifier
|
||||||
# episode: 0 # podcast field: podcast:episode ; number of the episode in the season ; ignored if season is 0
|
|
||||||
# licence:
|
# licence:
|
||||||
# name: CC-BY 4.0
|
# name: CC-BY 4.0
|
||||||
# url: https://creativecommons.org/licenses/by/4.0/
|
# url: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
|
|
@ -315,6 +315,11 @@
|
||||||
{{- . | transform.XMLEscape -}}
|
{{- . | transform.XMLEscape -}}
|
||||||
</itunes:episode>
|
</itunes:episode>
|
||||||
{{- "\n" -}}
|
{{- "\n" -}}
|
||||||
|
{{- strings.Repeat $indent " " -}}
|
||||||
|
<podcast:episode>
|
||||||
|
{{- . | transform.XMLEscape -}}
|
||||||
|
</podcast:episode>
|
||||||
|
{{- "\n" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- if eq $podcast_type "serial" -}}
|
{{- if eq $podcast_type "serial" -}}
|
||||||
{{- errorf "missing episode number for episode %q while podcast type is serial" $episode_title -}}
|
{{- errorf "missing episode number for episode %q while podcast type is serial" $episode_title -}}
|
||||||
|
|
Loading…
Reference in a new issue