removed comment fix & moved comment fix to sort

This commit is contained in:
2026-05-07 15:20:52 +02:00
parent 8cdd2ed0ec
commit 978b7a319f
4 changed files with 23 additions and 110 deletions

View File

@@ -32,14 +32,9 @@ type NavidromeArgs struct {
NavidromePass string `arg:"--navidrome-pass,env:ND_PASS,required"`
}
type FixCommentCmd struct {
Path string `arg:"positional,required"`
}
type args struct {
Info *InfoCmd `arg:"subcommand:info"`
Sort *SortCmd `arg:"subcommand:sort"`
FixCommentTag *FixCommentCmd `arg:"subcommand:fix-comment"`
SyncPlaylists *SyncPlaylists `arg:"subcommand:sync-playlist"`
Verbose bool `arg:"-v" default:"false"`
DryRun bool `arg:"--dry-run" default:"false"`
@@ -58,8 +53,6 @@ func Run() {
ripsort.Scan(args.Info.File)
case args.Sort != nil:
ripsort.Sort(args.Sort.Dst, args.Sort.Path)
case args.FixCommentTag != nil:
ripsort.FixComment(args.FixCommentTag.Path, args.DryRun)
case args.SyncPlaylists != nil:
ripsort.SyncPlaylists(
args.SyncPlaylists.SpotifyClientID,