Would be great to use OnBroadcastActive or OnBroadcastEnd,
Im currently using tv_autorecord and creating a system behind it.
When an autorecord demo ends, it prints "Completed SourceTV demo "auto-20160707-1514-de_dust2.dem", recording time 22.3"
When an autorecord demo starts, it prints "SourceTV broadcast active."
It would be nice to get like the demo name, timestamp when it start, recording time etc.
The only way to get its timestamp is by using this:
Syntax: Select all
demoname = 'auto-20160707-1514-de_dust2.dem'
timepart = "-".join(basename.split("-")[1:3])
savetime = time.mktime(time.strptime(timepart,"%Y%m%d-%H%M"))