tvshow

package
v0.0.0-...-1bad096 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "tvshows <directory>",
	Short: "TV Shows batch formatting",
	Args:  cobra.MinimumNArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		extensions, _ := cmd.Flags().GetStringArray("ext")
		tvShows, err := loadTVShows(media.WD, extensions)
		dryRun, _ := cmd.Flags().GetBool("dry-run")
		if err != nil {
			return err
		}
		if len(tvShows) == 0 {
			console.Success("Nothing to process")
		} else {
			printAll(media.WD, tvShows)
			if !dryRun {
				process(media.WD, tvShows, media.UID, media.GID)
			}
		}
		return nil
	},
}

Cmd is the TV Shows-specific format command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL