Skip to content

Commit 5b270dc

Browse files
committed
finishing touches
1 parent 3b4d0f7 commit 5b270dc

File tree

7 files changed

+73
-5
lines changed

7 files changed

+73
-5
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.16.2-develop48
1+
1.16.3

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
("_divider", ),
131131
("Scheduling Guide", "home/guides/scheduling"),
132132
("Image Asset Directory Guide", "home/guides/assets"),
133+
("Formula 1 Metadata Guide", "home/guides/formula"),
133134
("_divider", ),
134135
("Discord Server", "https://discord.gg/NfH6mGFuAB", True),
135136
("Sponsor", "https://github.com/sponsors/meisnate12", True),

docs/config/trakt.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ trakt:
3333
3. Enter `urn:ietf:wg:oauth:2.0:oob` for `Redirect uri`.
3434
4. Click the `SAVE APP` button.
3535
5. Record the `Client ID` and `Client Secret` as `client_id` and `client_secret` in your Configuration File.
36-
6. Navigate to `https://trakt.tv/oauth/authorize?response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob&client_id=<<CLIENT_ID>>` replacing `<<CLIENT_ID>>` with your Client ID.
37-
7. Record the `PIN` as `pin` in your Configuration File.
36+
6. Click the Green Authorize Button next to the Redirect URI
37+
38+
![Trakt Authorize](trakt.png)
39+
8. Record the `PIN` as `pin` in your Configuration File.
3840

3941
* Run the script shortly after obtaining your pin I don't know if it expires at any point or not.

docs/config/trakt.png

3 KB
Loading

docs/home/guides/formula.md

+65
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,67 @@
11
# Formula 1 Metadata Guide
22

3+
This is a guide for setting up Formula 1 in Plex using the `f1_season` metadata attribute.
4+
5+
Most of this guide is taken from a reddit [post](https://www.reddit.com/r/PleX/comments/tdzp8x/formula_1_library_with_automatic_metadata/) written by /u/Toastjuh.
6+
7+
## Folder structure
8+
9+
Let's start with the basics:
10+
11+
* Every Formula 1 season will be a TV Show in Plex. Season 2001, Season 2002, etc.
12+
* Every race will be a Season in Plex. Season 1 will be the Australian GP, Season 2 will be the Bahrain GP etc.
13+
* Every session will be an Episode in Plex. Episode 1 will be Free Practice 1, Episode 2 will be Free Practice 2 etc.
14+
15+
The folder format is like this:
16+
```
17+
Formula -> Library Folder
18+
├── Season 2018 -> Folder for each F1 Season
19+
│ ├── 01 - Australian GP -> Folder for each Race in a season
20+
│ ├── 01x10 - Australian GP - Highlights.mkv
21+
│ ├── 01x01 - Australian GP - Free Practice 1.mkv
22+
│ ├── 01x02 - Australian GP - Free Practice 2.mkv
23+
│ ├── 01x03 - Australian GP - Free Practice 3.mkv
24+
│ ├── 01x04 - Australian GP - Pre-Qualifying Buildup.mkv
25+
│ ├── 01x05 - Australian GP - Qualifying Session.mkv
26+
│ ├── 01x06 - Australian GP - Post-Qualyfing Analysis.mkv
27+
│ ├── 01x07 - Australian GP - Pre-Race Buildup.mkv
28+
│ ├── 01x08 - Australian GP - Race Session.mkv
29+
│ ├── 01x09 - Australian GP - Post-Race Analysis.mkv
30+
│ ├── 01x10 - Australian GP - Highlights.mkv
31+
│ ├── 02 - Bahrein GP
32+
│ ├── 01x10 - Bahrein GP - Highlights.mkv
33+
│ ├── 01x01 - Bahrein GP - Free Practice 1.mkv
34+
│ ├── 01x02 - Bahrein GP - Free Practice 2.mkv
35+
│ ├── 01x03 - Bahrein GP - Free Practice 3.mkv
36+
│ ├── 01x04 - Bahrein GP - Pre-Qualifying Buildup.mkv
37+
│ ├── 01x05 - Bahrein GP - Qualifying Session.mkv
38+
│ ├── 01x06 - Bahrein GP - Post-Qualyfing Analysis.mkv
39+
│ ├── 01x07 - Bahrein GP - Pre-Race Buildup.mkv
40+
│ ├── 01x08 - Bahrein GP - Race Session.mkv
41+
│ ├── 01x09 - Bahrein GP - Post-Race Analysis.mkv
42+
│ ├── 01x10 - Bahrein GP - Highlights.mkv
43+
```
44+
45+
What matters for plex and for pmm.
46+
* The show name can be whatever you want it to be but the pre created metadata file will only work if you use just the year numbers.
47+
* The season folder can be called whatever you want as long as plex scans it in with the Season Number matching the race number.
48+
* The episodes must follow plex's naming convention to have them scanned in properly but in order for PMM to update the metadata the files need to be specifically name like above.
49+
50+
## Metadata File
51+
52+
```yaml
53+
metadata:
54+
Season 2021:
55+
f1_season: 2021
56+
round_prefix: true
57+
Season 2020:
58+
f1_season: 2020
59+
round_prefix: true
60+
```
61+
62+
* Add `round_prefix: true` to have the race number appended to the beginning of the Race Name.
63+
* Add `shorten_gp: true` to shorten `Grand Prix` to `GP` in all titles.
64+
65+
Add an entry for every season you want to set the metadata for. The name needs to correspond with the name the season has in Plex!
66+
67+
The posters of races you can get from https://www.eventartworks.de/

docs/metadata/metadata/show.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The available attributes for editing shows, seasons, and episodes are as follows
8686
| `year` | Year of show for better identification | &#9989; | &#10060; | &#10060; |
8787
| `tmdb_show` | TMDb Show ID to use for metadata useful for miniseries that have been compiled into a movie | &#9989; | &#10060; | &#10060; |
8888
| `tmdb_movie` | TMDb Movie ID to use for metadata useful for movies that have been split into segments | &#9989; | &#10060; | &#10060; |
89-
| `f1_season` | F1 Season Year to make the Show represent a Season of F1 Races | &#9989; | &#10060; | &#10060; |
89+
| `f1_season` | F1 Season Year to make the Show represent a Season of F1 Races. See [Formula 1 Metadata Guide](../../home/guides/formula) for more information. | &#9989; | &#10060; | &#10060; |
9090
| `round_prefix` | Used only with `f1_season` to add the round as a prefix to the Season (Race) Titles i.e. `Australian Grand Prix` --> `01 - Australian Grand Prix` | &#9989; | &#10060; | &#10060; |
9191
| `shorten_gp` | Used only with `f1_season` to shorten `Grand Prix` to `GP` in the Season (Race) Titles i.e. `Australian Grand Prix` --> `Australian GP` | &#9989; | &#10060; | &#10060; |
9292
| `seasons` | Mapping to define Seasons | &#9989; | &#10060; | &#10060; |

plex_meta_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def run_collection(config, library, metadata, requested_collections):
940940
library.status[mapping_name]["sonarr"] += sonarr_add
941941

942942
valid = True
943-
if builder.build_collection and (
943+
if builder.build_collection and not builder.blank_collection and (
944944
(builder.smart_url and len(library.get_filter_items(builder.smart_url)) < builder.minimum)
945945
or (not builder.smart_url and len(builder.added_items) + builder.beginning_count < builder.minimum)
946946
):

0 commit comments

Comments
 (0)