Skip to content

Commit

Permalink
Merge pull request #7 from TangentFoxy/main
Browse files Browse the repository at this point in the history
update!
  • Loading branch information
TangentFoxy authored Dec 2, 2024
2 parents de5a447 + 798a4d0 commit 7932151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified docs/podcast.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions podcast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ local index_page_template = [[<html>
<%- description %>
<hr />
<% if #episodes_list > 0 then %>
<% for i = #episodes_list, 1 do %>
<% for i = #episodes_list, 1, -1 do %>
<% local episode = episodes_data[ episodes_list[i] ] %>
<h2><a href="<%- base_url %><%- episode.urlencoded_title %>.html"><%= episode.title %></a></h2>
<img src="<%- base_url %><%- episode.urlencoded_title %>.jpg" />
Expand Down Expand Up @@ -219,7 +219,7 @@ local function publish_episode(episode_title)
local episode_number = #database.episodes_list + 1
episode.episode_number = episode_number
episode.file_size = utility.file_size(episode.file_name .. ".mp3")
episode.published_datetime = os.date("%a, %d %b %Y %H:%M:%S GMT", os.time() + database.timezone_offset * 60 * 60)
episode.published_datetime = os.date("%a, %d %b %Y %H:%M:%S GMT", os.time() - database.timezone_offset * 60 * 60)

database.episodes_list[episode_number] = episode.title

Expand Down

0 comments on commit 7932151

Please sign in to comment.