basic hygeine fixes

pull/52/head
Akhil Gupta 4 years ago
parent 197b833895
commit 3f22953a66

@ -93,10 +93,10 @@ Podgrab started a tool that I initially built to solve a specific problem I had.
- Auto-download new episodes
- Download on demand
- Podcast Discovery - Search and Add podcasts using iTunes API
- Full-fledged podcast player
- Add using direct RSS feed url / OMPL import / Search
- Full-fledged podcast player - Play downloaded files or stream from original source.
- Add using direct RSS feed URL / OMPL import / Search
- Basic Authentication
- Existing episode detection
- Existing episode file detection - Prevent re-downloading files if already present
- Easy OPML import/export
- Customizable episode names
- Dark Mode

@ -668,6 +668,9 @@ div#large-visualization{
background-color: black;
visibility: hidden;
}
[v-cloak] {
display: none;
}
</style>
</head>
@ -676,7 +679,7 @@ div#large-visualization{
{{template "navbar" .}}
<br />{{$setting := .setting}}
<div id="app">
<div id="app" v-cloak>
<div id="blue-playlist-container">
<!-- Amplitude Player -->

@ -164,6 +164,7 @@ func BackupsPage(c *gin.Context) {
files, err := service.GetAllBackupFiles()
var allFiles []interface{}
setting := c.MustGet("setting").(*db.Setting)
for _, file := range files {
arr := strings.Split(file, string(os.PathSeparator))
@ -185,6 +186,7 @@ func BackupsPage(c *gin.Context) {
c.HTML(http.StatusOK, "backups.html", gin.H{
"backups": allFiles,
"title": "Backups",
"setting": setting,
})
} else {
c.JSON(http.StatusBadRequest, err)

@ -151,6 +151,7 @@ func setupSettings() gin.HandlerFunc {
setting := db.GetOrCreateSetting()
c.Set("setting", setting)
c.Writer.Header().Set("X-Clacks-Overhead", "GNU Terry Pratchett")
c.Next()
}

Loading…
Cancel
Save