mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[29] change environmental list separator from ,
to |
This commit is contained in:
parent
3e9aabf7ca
commit
c7bc6dde1d
4 changed files with 33 additions and 18 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.18.3-develop28
|
||||
1.18.3-develop29
|
||||
|
|
|
@ -448,23 +448,23 @@ Perform a collections run immediately to run only the pre-defined collections, b
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Example</th>
|
||||
<td><code>--run-collections "Harry Potter, Star Wars"</code></td>
|
||||
<td><code>PMM_COLLECTIONS=Harry Potter, Star Wars</code></td>
|
||||
<td><code>--run-collections "Harry Potter|Star Wars"</code></td>
|
||||
<td><code>PMM_COLLECTIONS=Harry Potter|Star Wars</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Values</th>
|
||||
<td colspan="2">Comma-separated list of Collection Names to run</td>
|
||||
<td colspan="2">Pipe-separated list of Collection Names to run</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
````{tab} Local Environment
|
||||
```
|
||||
python plex_meta_manager.py --run-collections "Harry Potter, Star Wars"
|
||||
python plex_meta_manager.py --run-collections "Harry Potter|Star Wars"
|
||||
```
|
||||
````
|
||||
````{tab} Docker Environment
|
||||
```
|
||||
docker run -it -v "X:\Media\Plex Meta Manager\config:/config:rw" meisnate12/plex-meta-manager --run-collections "Harry Potter, Star Wars"
|
||||
docker run -it -v "X:\Media\Plex Meta Manager\config:/config:rw" meisnate12/plex-meta-manager --run-collections "Harry Potter|Star Wars"
|
||||
```
|
||||
````
|
||||
|
||||
|
@ -485,12 +485,12 @@ Perform a libraries run immediately to run only the pre-defined libraries, bypas
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Example</th>
|
||||
<td><code>--run-libraries "Movies - 4K, TV Shows - 4K"</code></td>
|
||||
<td><code>PMM_LIBRARIES=Movies - 4K, TV Shows - 4K</code></td>
|
||||
<td><code>--run-libraries "Movies - 4K|TV Shows - 4K"</code></td>
|
||||
<td><code>PMM_LIBRARIES=Movies - 4K|TV Shows - 4K</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Values</th>
|
||||
<td colspan="2">Comma-separated list of Library Names to run</td>
|
||||
<td colspan="2">Pipe-separated list of Library Names to run</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
@ -522,12 +522,12 @@ Perform a metadata files run immediately to run only the pre-defined metadata fi
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Example</th>
|
||||
<td><code>--run-metadata-files "Movies.yml, MovieCharts"</code></td>
|
||||
<td><code>PMM_METADATA_FILES=Movies.yml, MovieCharts</code></td>
|
||||
<td><code>--run-metadata-files "Movies.yml|MovieCharts"</code></td>
|
||||
<td><code>PMM_METADATA_FILES=Movies.yml|MovieCharts</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Available Values</th>
|
||||
<td colspan="2">Comma-separated list of Metadata Filenames to run</td>
|
||||
<td colspan="2">Pipe-separated list of Metadata Filenames to run</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -124,9 +124,24 @@ class ConfigFile:
|
|||
self.ignore_schedules = attrs["ignore_schedules"] if "ignore_schedules" in attrs else False
|
||||
self.start_time = attrs["time_obj"]
|
||||
self.run_hour = datetime.strptime(attrs["time"], "%H:%M").hour
|
||||
self.requested_collections = util.get_list(attrs["collections"]) if "collections" in attrs else None
|
||||
self.requested_libraries = util.get_list(attrs["libraries"]) if "libraries" in attrs else None
|
||||
self.requested_metadata_files = [mf[:-4] if str(mf).endswith(".yml") else mf for mf in util.get_list(attrs["metadata_files"])] if "metadata_files" in attrs and attrs["metadata_files"] else None
|
||||
self.requested_collections = None
|
||||
if "collections" in attrs and attrs["collections"]:
|
||||
self.requested_collections = [s.strip() for s in attrs["collections"].split("|")]
|
||||
self.requested_libraries = None
|
||||
if "libraries" in attrs and attrs["libraries"]:
|
||||
self.requested_libraries = [s.strip() for s in attrs["libraries"].split("|")]
|
||||
self.requested_metadata_files = None
|
||||
if "metadata_files" in attrs and attrs["metadata_files"]:
|
||||
self.requested_metadata_files = []
|
||||
for s in attrs["libraries"].split("|"):
|
||||
s = s.stripe()
|
||||
if s:
|
||||
if s.endswith(".yml"):
|
||||
self.requested_metadata_files.append(s[:-4])
|
||||
elif s.endswith(".yaml"):
|
||||
self.requested_metadata_files.append(s[:-5])
|
||||
else:
|
||||
self.requested_metadata_files.append(s)
|
||||
self.collection_only = attrs["collection_only"] if "collection_only" in attrs else False
|
||||
self.operations_only = attrs["operations_only"] if "operations_only" in attrs else False
|
||||
self.overlays_only = attrs["overlays_only"] if "overlays_only" in attrs else False
|
||||
|
|
|
@ -34,9 +34,9 @@ parser.add_argument("-po", "--playlist-only", "--playlists-only", dest="playlist
|
|||
parser.add_argument("-op", "--operation", "--operations", "-lo", "--library-only", "--libraries-only", "--operation-only", "--operations-only", dest="operations", help="Run only operations", action="store_true", default=False)
|
||||
parser.add_argument("-ov", "--overlay", "--overlays", "--overlay-only", "--overlays-only", dest="overlays", help="Run only overlays", action="store_true", default=False)
|
||||
parser.add_argument("-lf", "--library-first", "--libraries-first", dest="library_first", help="Run library operations before collections", action="store_true", default=False)
|
||||
parser.add_argument("-rc", "-cl", "--collection", "--collections", "--run-collection", "--run-collections", dest="collections", help="Process only specified collections (comma-separated list)", type=str)
|
||||
parser.add_argument("-rl", "-l", "--library", "--libraries", "--run-library", "--run-libraries", dest="libraries", help="Process only specified libraries (comma-separated list)", type=str)
|
||||
parser.add_argument("-rm", "-m", "--metadata", "--metadata-files", "--run-metadata-files", dest="metadata", help="Process only specified Metadata files (comma-separated list)", type=str)
|
||||
parser.add_argument("-rc", "-cl", "--collection", "--collections", "--run-collection", "--run-collections", dest="collections", help="Process only specified collections (pipe-separated list '|')", type=str)
|
||||
parser.add_argument("-rl", "-l", "--library", "--libraries", "--run-library", "--run-libraries", dest="libraries", help="Process only specified libraries (pipe-separated list '|')", type=str)
|
||||
parser.add_argument("-rm", "-m", "--metadata", "--metadata-files", "--run-metadata-files", dest="metadata", help="Process only specified Metadata files (pipe-separated list '|')", type=str)
|
||||
parser.add_argument("-ca", "--cache-library", "--cache-libraries", dest="cache_libraries", help="Cache Library load for 1 day", action="store_true", default=False)
|
||||
parser.add_argument("-dc", "--delete", "--delete-collections", dest="delete_collections", help="Deletes all Collections in the Plex Library before running", action="store_true", default=False)
|
||||
parser.add_argument("-dl", "--delete-label", "--delete-labels", dest="delete_labels", help="Deletes all Labels in the Plex Library before running", action="store_true", default=False)
|
||||
|
|
Loading…
Reference in a new issue