@ -14,7 +14,7 @@
</a> -->
<h1 align="center" style="margin-bottom:0px">Podgrab</h1>
<p align="center">Current Version -2021.08.25</p>
<p align="center">Current Version -2021.09.20</p>
<p align="center">
A self-hosted podcast manager to download episodes as soon as they become live
@ -67,7 +67,7 @@
class="u-full-width"
src="/podcastitems/{{.ID}}/image"
alt="{{ .Title }}"
lazy="lazy"
loading="lazy"
/>
</div>
<div class="columns ten">
@ -125,7 +125,7 @@
:src=" getEpisodeImage(item)"
v-bind:alt="item.Title"
@ -132,7 +132,7 @@
<table>
<tr>
<td>Current Version</td>
<td> 2021.08.25</td>
<td> 2021.09.20</td>
</tr>
<td>Website</td>
@ -346,6 +346,10 @@ func createConfigFolderIfNotExists(folder string) string {
return createFolder(folder, dataPath)
}
func deletePodcastFolder(folder string) error {
return os.RemoveAll(createDataFolderIfNotExists(folder))
func getFileName(link string, title string, defaultExtension string) string {
fileUrl, err := url.Parse(link)
checkError(err)
@ -676,6 +676,12 @@ func DeletePodcast(id string, deleteFiles bool) error {
db.DeletePodcastItemById(item.ID)
err = deletePodcastFolder(podcast.Title)
if err != nil {
return err
err = db.DeletePodcastById(id)