You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -28,14 +28,19 @@ Options:
28
28
--no-rename Disable file renaming
29
29
--no-tag Disable file tagging
30
30
--no-cover Disable cover art tagging
31
-
--manual Manually choose the series to tag
31
+
--manual Manually choose the series to tag from search results
32
+
-p|--pattern <PATTERN> Custom regex to parse TV episode information
32
33
-v|--verbose Enable verbose output mode
33
34
--set-default Set the current arguments as the default
34
35
--version Print version number and exit
35
36
-?|-h|--help Show help information
36
37
37
38
```
38
39
40
+
The custom regex pattern is used on the full file path, not just the file name. This allows AutoTag to tag file structures where the series name is not in the file name, e.g. for the structure `Series/Season 1/S01E01 Title.mkv`.
41
+
42
+
The regex pattern should have 3 named capturing groups: `SeriesName`, `Season` and `Episode`. For the example given above, a pattern could be `.*/(?<SeriesName>.+)/Season (?<Season>\d+)/S\d+E(?<Episode>\d+)`.
43
+
39
44
## Config
40
45
AutoTag creates a config file to store default preferences at `~/.config/autotag/conf.json` or `%APPDATA%\Roaming\autotag\conf.json`. A different config file can be specified using the `-c` option. If the file does not exist, a file will be created with the default settings:
41
46
```
@@ -48,6 +53,7 @@ AutoTag creates a config file to store default preferences at `~/.config/autotag
48
53
"renameFiles": true, // Rename files
49
54
"tvRenamePattern": "%1 - %2x%3 - %4", // Pattern to rename TV files, %1 = Series Name, %2 = Season, %3 = Episode, %4 = Episode Title
50
55
"movieRenamePattern": "%1 (%2)" // Pattern to rename movie files, %1 = Title, %2 = Year
56
+
"parsePattern": "" // Custom regex to parse TV episode information
0 commit comments