Skip to content

v3.0.0

Compare
Choose a tag to compare
@nwithan8 nwithan8 released this 14 Nov 20:14
· 3 commits to main since this release
4677279

What's Changed

[BREAKING] Path Globbing moving from single global to multiple per-schedule setting

Previously, multiple path glob patterns could be set on each individual schedule, but all relied on a single global root_path/plex_path pair set in Advanced configuration.

Now, the root_path/plex_path is customizable on a per-schedule basis, supporting multiple glob patterns per root_path/plex_pathpair, and multiple root_path/plex_path pairs per schedule.

Example:

date_range:
  enabled: true
  ranges:
    - name: "New Years" # Optional name for logging purposes
      start_date: 2020-01-01 # Jan 1st, 2020
      end_date: 2020-01-02 # Jan 2nd, 2020
      paths:
        - "remote/path/to/video1.mp4"
      path_globbing:
            enabled: true
            pairs:
              - root_path: /local/root/1
                plex_path: /path/to/local/root/1/in/plex
                patterns:
                  - "pattern/1/*.mp4"
                  - "pattern/2/*.mkv"
              - root_path: /local/root/2
                plex_path: /path/to/local/root/2/in/plex
                patterns:
                  - "pattern/3/*.mp4"
                  - "pattern/4/*.mkv"

Above, the single "New Years" date range schedule has multiple path glob pairs and subsequent patterns. This will find anything in /local/root/1/pattern/1/*.mp4, /local/root/1/pattern/2/*.mkv, /local/root/2/pattern/3/*.mp4, and /local/root/2/pattern/4/*.mkv, map them to their corresponding remote (Plex) paths and include them along with any specified traditional paths.

As a result, legacy path globbing is no longer supported. Any legacy path_globs settings on schedules and the global path_globbingsettings under Advanced will be ignored. Users should migrate to the new per-schedule configuration instead.

-      path_globs:
-        - "local/path/to/prerolls/*.mp4"
+      path_globbing:
+			enabled: true
+			pairs:
+			  - root_path: /files
+				plex_path: /path/to/prerolls/in/plex
+				patterns:
+					- "local/path/to/prerolls/*.mp4"
 ...
advanced:
-  path_globbing:
-    enabled: true # If true, use globbing to match paths
-    root_path: /files # The root folder to use for globbing
-    plex_path: /path/to/prerolls/in/plex # The path to use for the Plex server

Related PRs

  • [feat] Move path globbing from single global root/remote pair to multiple per-schedule by @nwithan8 in #10

Full Changelog: 2.0.0...3.0.0