You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know you didn't really make it to stabilizing RSS functionality, but it would be really great to be able to have a little more control. I'm trying to modify some stuff to make a podcast feed - I'm getting pretty close, but struggling a bit with modifying stuff in the item section without doing things manually.
Variables themselves seem to work, but not hfun_s with local context. So for example, here I can assign a local variable episode_length, and get it inserted, but what I'd really like to do is have it use the rss_enclosure file, and calculate the size directly.
Another example here, you define how a pubDate section of RSS is formatted - I wanted to change the time to be 8am in the ETC time zone, eg something like
function hfun_rss_pubdate(lc::Xranklin.LocalContext; tohtml=true)
dt = DateTime(getvar(lc, :rss_pubdate, Date(1)), Time(8,0,0))
return Dates.format(dt, "e, d u yyyy HH:MM:SS -0500")
end
But I can't seem to access the LocalContext struct. If instead I try getlvar, the variable doesn't seem to exist (everything comes in with Date(1)
The text was updated successfully, but these errors were encountered:
I know you didn't really make it to stabilizing RSS functionality, but it would be really great to be able to have a little more control. I'm trying to modify some stuff to make a podcast feed - I'm getting pretty close, but struggling a bit with modifying stuff in the
item
section without doing things manually.Variables themselves seem to work, but not
hfun_
s with local context. So for example, here I can assign a local variableepisode_length
, and get it inserted, but what I'd really like to do is have it use therss_enclosure
file, and calculate the size directly.Another example here, you define how a
pubDate
section of RSS is formatted - I wanted to change the time to be 8am in the ETC time zone, eg something likeBut I can't seem to access the
LocalContext
struct. If instead I trygetlvar
, the variable doesn't seem to exist (everything comes in withDate(1)
The text was updated successfully, but these errors were encountered: