updated script
This commit is contained in:
Binary file not shown.
@@ -84,9 +84,11 @@ func loadPlaylistFile(playlistFile string) ([]string, error) {
|
||||
line := scanner.Text()
|
||||
tags, err := loadPlaylistFileLine(line)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%s line %d: %s", playlistFile, lineNumber, err)
|
||||
}
|
||||
if tags != nil {
|
||||
// return nil, fmt.Errorf("%s line %d: %s", playlistFile, lineNumber+1, err)
|
||||
errMsg := fmt.Errorf("line %d (from %s:%d): %s", len(playlistTags)+1, playlistFile, lineNumber+1, err)
|
||||
fmt.Println(errMsg)
|
||||
playlistTags = append(playlistTags, fmt.Sprintf("BAD LINE --- %s", line))
|
||||
} else if tags != nil {
|
||||
playlistTags = append(playlistTags, *tags)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user