mynttt / UpdateTool

A tool to update the IMDB ratings for Plex libraries that contain movies/series and use the IMDB agent to receive ratings
GNU General Public License v3.0
250 stars 12 forks source link

Environment variable not reflecting when running from bat file on Windows. #108

Closed diimaan closed 10 months ago

diimaan commented 1 year ago

Hi I am running the updatetool on Windows with the batch file. I recieve the following error even though I have added the Environment Variabel in the batch file!

[INFO ] - 2023-04-13 10:58:18 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$0: Found library [SERIES] tvs (ID=3) with agent: tv.plex.agents.series and 488 item(s).
[INFO ] - 2023-04-13 10:58:18 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$0: Found library [SERIES] Remote TV Shows (ID=23) with agent: tv.plex.agents.series and 102 item(s).
[INFO ] - 2023-04-13 10:58:18 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$2: New TV Show Agent Library with ID: 3 will not be processed by UpdateTool. Please register with environment variable UNLOCK_FOR_NEW_TV_AGENT to unlock proceessing capabilities.
[INFO ] - 2023-04-13 10:58:18 @ ImdbDockerImplementation$ImdbBatchJob.lambda$run$2: New TV Show Agent Library with ID: 23 will not be processed by UpdateTool. Please register with environment variable UNLOCK_FOR_NEW_TV_AGENT to unlock proceessing capabilities.

And this is how my batch file looks!

set PLEX_DATA_DIR=C:\Users\xxxx\AppData\Local\Plex Media Server
set TMDB_API_KEY=xxxxxxxx
set TVDB_API_KEY=xxxxxxxx
set UNLOCK_FOR_NEW_TV_AGENT="3;23"
java -jar UpdateTool-1.7.1.jar imdb-docker {schedule=12}

Let me know if I have missed something!

mynttt commented 10 months ago

I think on Windows set UNLOCK_FOR_NEW_TV_AGENT="3;23" must be set UNLOCK_FOR_NEW_TV_AGENT=3;23 as else Java reads it in as "3;23" instead of 3;23 and the does not parse it properly.