|
1 | 1 | ## Getting Started
|
2 | 2 |
|
3 |
| -1. Make sure to obtain all those api keys, you need them later for the `config.json`. |
| 3 | +1. Make sure to obtain all the api keys and tokens as you will need them later on for the `config.json`. |
4 | 4 | - **TMDB API Read Access Token:** [Obtain TMDB API Token](https://www.themoviedb.org/settings/api)
|
| 5 | + - **NOTE** the **TMDB API Read Access Token** is the really, really long one |
5 | 6 | - **Fanart Personal API Key:** [Obtain Fanart API Key](https://fanart.tv/get-an-api-key)
|
6 | 7 | - **TVDB API Key:** [Obtain TVDB API Key](https://thetvdb.com/api-information/signup)
|
7 | 8 | - **Do not** use `"Legacy API Key"`, it only works with a Project Api Key.
|
8 | 9 | - **Plex Token:** [Optain Plex Token](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/)
|
9 | 10 |
|
10 |
| -1. For Docker please contuine here: [Docker](#docker) |
| 11 | +1. For Docker please continue here: [Docker](#docker) |
11 | 12 |
|
12 | 13 | 1. Please install Powershell
|
13 | 14 | - [Linux](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.4)
|
|
30 | 31 | - Clone the Repo:
|
31 | 32 | ```bash
|
32 | 33 | git clone https://github.com/fscorrupt/Plex-Poster-Maker.git
|
| 34 | + ``` |
33 | 35 | - After that you can switch into the cloned Repo/Folder
|
34 | 36 | ```bash
|
35 | 37 | cd Plex-Poster-Maker
|
36 | 38 | ```
|
37 |
| - - You should see somthing like this: |
| 39 | + - You should see something like this: |
38 | 40 | ```
|
39 | 41 | .
|
40 | 42 | ├── backgroundoverlay.png
|
|
62 | 64 | ├── README.md
|
63 | 65 | ├── Release.txt
|
64 | 66 | └── Rocky.ttf
|
65 |
| -1. Copy the `config.example.json` and create a `config.json` |
66 |
| - - Enter all the api keys from **step 1** under the `ApiPart` [Detailed Config Description](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#configuration) |
| 67 | +1. Copy the `config.example.json` to `config.json` and adjust the settings. |
| 68 | + - Enter all the api keys and tokens from **Getting Started - Step 1** under the `ApiPart` [Detailed Config Description](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#configuration) |
67 | 69 | - tvdbapi
|
68 | 70 | - tmdbtoken
|
69 | 71 | - FanartTvAPIKey
|
70 | 72 | - PlexToken
|
71 |
| - - There is only one setting you have to adjust if you are happy with the defaults, this is the path to asset dir. |
72 |
| - - On Linux type it like this: `/PathToAsset/Dir` |
73 |
| - - On Windows like this: `C:\\PathToAsset\\Dir` |
| 73 | + - If you are happy with the default values, you should still ensure that the AssetPath value is set properly. |
| 74 | + - On Linux, like this: `/PathToAsset/Dir` |
| 75 | + - On Windows, like this: `C:\\PathToAsset\\Dir` |
74 | 76 | - **Important** - you have to use double `\\` in Json.
|
75 |
| -1. Please start the Script **(On first run as Administrator/Sudo, cause it has to install a Powershell Module)** |
| 77 | +1. Please start the Script **(On first run, ensure its run as Administrator/Sudo, because it has to install a Powershell Module)** |
76 | 78 | - Linux:
|
77 | 79 | ```
|
78 | 80 | cd /opt/appdata/Plex-Poster-Maker
|
|
85 | 87 | cd C:\Github\Plex-Poster-Maker
|
86 | 88 | .\PlexPosterMaker.ps1
|
87 | 89 | ```
|
88 |
| -1. After that it is recommended to run the script in testing Mode. |
| 90 | +1. After that it is recommended to run the script in `-Testing` Mode. |
89 | 91 |
|
90 |
| - *In this Mode the script will create all kind of posters according to the config settings, so you can see how it would look before you mass run it against your lib.* |
| 92 | + *In this Mode, the script will create sample posters according to the config settings so you can see how it would look before you mass run it against your libraries. These samples will be created in the `test` directory* |
91 | 93 |
|
92 |
| - *You can find examples and more infos here:* |
| 94 | + *You can find examples and more information here:* |
93 | 95 |
|
94 | 96 | *[Info about Testing mode](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#testing-mode)*
|
95 | 97 |
|
96 | 98 | *[Example Images](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#images-from-testing-mode)*
|
97 | 99 |
|
98 | 100 | - Linux:
|
99 | 101 | ```
|
| 102 | + cd /opt/appdata/Plex-Poster-Maker |
100 | 103 | pwsh PlexPosterMaker.ps1 -Testing
|
101 | 104 | ```
|
102 | 105 | - Windows:
|
103 | 106 | ```
|
| 107 | + cd C:\Github\Plex-Poster-Maker |
104 | 108 | .\PlexPosterMaker.ps1 -Testing
|
105 | 109 | ```
|
106 |
| -5. You can now fine tune all the `widht,height,color` of `borders,textboxes and text` in config.json |
107 |
| - - After each change of a setting just rerun the script in testing mode so you can see how it looks. |
108 |
| -6. Final step is to set a schedule and let the script run. |
109 |
| - - You can also manually trigger the poster creation with this: |
| 110 | +5. You can now fine tune all the `width, height, color` of `borders, text boxes and text` in config.json |
| 111 | + - After each change of a setting just rerun the script in `-Testing` mode so you can see how it looks. |
| 112 | +6. The final step is to set a schedule and let the script run. |
| 113 | + - You can also trigger the poster creation on-demand, like this: |
110 | 114 | - Linux:
|
111 | 115 | ```
|
| 116 | + cd /opt/appdata/Plex-Poster-Maker |
112 | 117 | pwsh PlexPosterMaker.ps1
|
113 | 118 | ```
|
114 | 119 | - Windows:
|
115 | 120 | ```
|
| 121 | + cd C:\Github\Plex-Poster-Maker |
116 | 122 | .\PlexPosterMaker.ps1
|
117 | 123 | ```
|
118 | 124 | - Configure Scheduled runs:
|
|
132 | 138 | - You can create a schedule task -> [How-To](https://www.sharepointdiary.com/2013/03/create-scheduled-task-for-powershell-script.html)
|
133 | 139 | ## Docker
|
134 | 140 | 1. Adjust the [docker-compose.yml](https://github.com/fscorrupt/Plex-Poster-Maker/raw/main/docker-compose.yml) to fit your environment.
|
135 |
| - - Required envs and description can be found [here](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#docker) |
| 141 | + - Required environment variables and descriptions can be found [here](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#docker) |
136 | 142 | ```yml
|
137 | 143 | ---
|
138 | 144 | version: "3"
|
|
174 | 180 | docker compose -up -d
|
175 | 181 | ```
|
176 | 182 | - Now it should download everything and start up your container.
|
177 |
| -3. On first run the container will download the required files and also create the flder structure for you. |
178 |
| -4. Please rename the `config.example.json` to `config.json` and adjust the settings. |
179 |
| - - Enter all the api keys from **Getting Started - Step 1** under the `ApiPart` [Detailed Config Description](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#configuration) |
| 183 | +3. On first run the container will download the required files and also create the folder structure for you. |
| 184 | +4. Copy the `config.example.json` to `config.json` and adjust the settings. |
| 185 | + - Enter all the api keys and tokens from **Getting Started - Step 1** under the `ApiPart` [Detailed Config Description](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#configuration) |
180 | 186 | - tvdbapi
|
181 | 187 | - tmdbtoken
|
182 | 188 | - FanartTvAPIKey
|
183 | 189 | - PlexToken
|
184 |
| - - There is only one setting you have to adjust if you are happy with the defaults, this is the path to asset dir. |
185 |
| - - On Linux type it like this: `/PathToAsset/Dir` |
186 |
| - - On Docker you have to use the binded volume path you specified in `docker-compose.yml`, if you use `/assets` without an extra volume binding it will create a folder in your scriptroot where all the asset lands. |
187 |
| - - On Windows like this: `C:\\PathToAsset\\Dir` |
| 190 | + - If you are happy with the default values, you should still ensure that the AssetPath value is set properly. |
| 191 | + - On Linux, like this: `/PathToAsset/Dir` |
| 192 | + - On Docker you have to use the binded volume path you specified in `docker-compose.yml`. If you use `/assets` without an extra volume binding it will create a folder in your scriptroot where all the artwork lands. |
| 193 | + - On Windows, like this: `C:\\PathToAsset\\Dir` |
188 | 194 | - **Important** - you have to use double `\\` in json.
|
189 |
| -1. After that it is recommended to run the script in testing Mode. |
| 195 | +1. After that it is recommended to run the script in `-Testing` Mode. |
190 | 196 |
|
191 |
| - *In this Mode the script will create all kind of posters according to the config settings, so you can see how it would look before you mass run it against your lib.* |
| 197 | + *In this Mode, the script will create sample posters according to the config settings so you can see how it would look before you mass run it against your libraries. These samples will be created in the `test` directory* |
192 | 198 |
|
193 |
| - *You can find examples and more infos here:* |
| 199 | + *You can find examples and more information here:* |
194 | 200 |
|
195 | 201 | *[Info about Testing mode](https://github.com/fscorrupt/Plex-Poster-Maker?tab=readme-ov-file#testing-mode)*
|
196 | 202 |
|
|
202 | 208 | ```sh
|
203 | 209 | docker exec -it ppm pwsh PlexPosterMaker.ps1 -Testing
|
204 | 210 | ```
|
205 |
| -5. You can now fine tune all the `widht,height,color` of `borders,textboxes and text` in config.json |
206 |
| - - After each change of a setting just rerun the script in testing mode so you can see how it looks. |
207 |
| -6. Final step is to set a schedule and let the script run. |
208 |
| - - You can also manually trigger the poster creation with this: |
| 211 | +5. You can now fine tune all the `width, height, color` of `borders, text boxes and text` in config.json |
| 212 | + - After each change of a setting just rerun the script in `-Testing` mode so you can see how it looks. |
| 213 | +6. The final step is to set a schedule and let the script run. |
| 214 | + - You can also trigger the poster creation on-demand, like this: |
209 | 215 | ```sh
|
210 | 216 | docker exec -it ppm pwsh PlexPosterMaker.ps1
|
211 | 217 | ```
|
0 commit comments