Resource icon

Auto Twitch Category 4

Misiphear

New Member
Misiphear submitted a new resource:

Auto Twitch Category - obs script that updates twitch category automatically

Automates Twitch Category

How it works:
  • Monitors task manager for game executables
  • Changes Twitch category when detected (e.g., CS2.exe -> "Counter-Strike")
  • Defaults to "Just Chatting" if no game detected
Install:
  1. Download script
  2. Place in OBS scripts folder
  3. Add script in OBS (Tools > Scripts)
Prerequisites:
  • OBS Studio (28.0.0+)
  • Python version 3.9 or later
  • Libraries: obspython, requests, psutil
Costumization: add...

Read more about this resource...
 

Ashta66

New Member
Hello,

Trying to use the script after installation I got this error code after clicking "Login with Twitch" button :

{"status":400,"message":"invalid client"}

Thanks for you help
 

Misiphear

New Member
Hello,

Trying to use the script after installation I got this error code after clicking "Login with Twitch" button :

{"status":400,"message":"invalid client"}

Thanks for you help
Hey Ashta66,

Usually this error means your client_id in your config.json file is incorrect!
so, check for typos inside config.json missing commas(,) make sure that client id is correct
{ "client_id": "your_client_id_here", "client_secret": "your_client_secret_here", "broadcaster_name": "your_twitch_username_here" }


Thank you and have the best one, Ashat66
 
Last edited:

Misiphear

New Member
Heyy, @Ashta66 and @beats_beats

New version of the script should help with this issue​

briefly the related changes are:
We force http://localhost:1111 meaning update your application on dev.twitch to this new port- Previously we had port 80 on the code side and http://localhost on twitch app, it is not bad but it requires more privilages. Which can cause issues like the ones mentioned

Summrized​

1. Update OAuth Redirect URLs on twitch app to http://localhost:1111 or add this one as well
2. And get the updated script place where you keept old script so it has access to the configured config.json ,
(common location: C:\Program Files\obs-studio\data\obs-plugins\frontend-tools\scripts)
3. Always run obs as administrator to minimize issues


note if you are using port 1111 for another application, you can use another port above 1024 and make sure you match it in auto-category4.py too. line 194. And run obs as administrator to minimize potential issues. Hope all works out! have fun streaming
 
Top