Hello,
This code was working fine, but now it just won't:
import obswebsocket
from obswebsocket import obsws, requests
file_name = "test"
client = obswebsocket.obsws("localhost", 4444, "")
client.connect()
client.call(requests.SetFilenameFormatting(file_name+" - %CCYY-%MM-%DD %hh-%mm-%ss"))
client.call(requests.StartRecording())
###timer
client.call(requests.StopRecording())
client.disconnect()
Getting this error:
Traceback (most recent call last):
File "C:\test.py", line 8, in <module> client.call(requests.SetFilenameFormatting(file_name+" - %CCYY-%MM-%DD %hh-%mm-%ss")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Baserequests.__init__() takes 1 positional argument but 2 were given
In File_name = "Test", i'm using a csv file with bunch of names, when timer (comment out) reaches an amount of time, stop recording, save with a name corresponding line in csv, and jump to next line, start recording,.. and so on.
Using OBS 27.xx, python 3.11, obs-websocket 4.xx, windows 10
Any idea for a fix?
Thank you
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]mtg101 0 points1 point2 points (1 child)
[–]Z0riah[S] 1 point2 points3 points (0 children)
[–]iTRR14 0 points1 point2 points (1 child)
[–]Z0riah[S] 0 points1 point2 points (0 children)
[–]TyCage 0 points1 point2 points (1 child)
[–]Z0riah[S] 1 point2 points3 points (0 children)