This commit is contained in:
2026-05-30 09:24:42 +08:00
parent 6c3de4b2ef
commit e054f458bb
17 changed files with 533 additions and 78 deletions

View File

@@ -75,8 +75,12 @@ func (block *TagBlock) GetTags(ch playlist.Channel) []string {
// Init инициализирует объекты тегов из тегфайла
func Init(path string) []TagBlock {
pathNormalized, _ := utils.ExpandPath(path)
_, err := os.Stat(pathNormalized)
pathNormalized, err := utils.ExpandPath(path)
if err != nil {
log.Println("Warning: all channels will be untagged due to error:", err)
return nil
}
_, err = os.Stat(pathNormalized)
if err != nil {
log.Println("Warning: all channels will be untagged due to error:", err)
return nil