bunp version

This commit is contained in:
Paul Wilde 2024-12-18 18:14:55 +00:00
parent 28ead874a3
commit 2fed2b054f
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Package
version = "0.1.2"
version = "0.1.3"
author = "Paul Wilde"
description = "Porninvidious re-made in Nim"
license = "BSD-3-Clause"

View file

@ -120,7 +120,7 @@ proc compilePage(content: string, video_uri: string = "", search_query: string =
return page
proc compileRSSPage(content: string, search_query: string = ""): string =
var rss = RESOURCES["rss_start"].replace("Pimvidious",fmt"Pimvidious {search_query}")
var rss = RESOURCES["rss_start"].replace("Pimvidious",fmt"Pimvidious :: {search_query}")
rss = rss.replace("BUILDDATE", now().format("YYYY-MM-dd'T'HH:mm:ss"))
let urls = parseUrls(content)
let thumbs = parseThumbs(content)
@ -140,7 +140,9 @@ proc compileRSSPage(content: string, search_query: string = ""): string =
<title>{title}</title>
<link>{vid_url}</link>
<description>{title}</description>
<media:content url="{vid_thumb}" type="image/png"></media:content>
<media:content url="{vid_thumb}" type="image/png" medium="image">
<media:rating scheme="urn:simple">adult</media:rating>
</media:content>
</item>
"""
rss &= RESOURCES["rss_end"]