Skip to content

Commit 506986b

Browse files
authored
Merge pull request #6 from deckerego/input_v2
Added support for new source naming conventions
2 parents 31895d0 + 512bf9a commit 506986b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/obs_tally_light.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from queue import SimpleQueue
33
import obspython as obs
44
import json
5+
import re
56
import urllib.request
67
import urllib.error
78

@@ -121,7 +122,7 @@ def list_video_source_names():
121122
if sources is not None:
122123
for source in sources:
123124
source_id = obs.obs_source_get_id(source)
124-
if source_id in ['av_capture_input', 'droidcam_obs']:
125+
if re.search("^av_capture.*|^droidcam.*", source_id):
125126
source_name = obs.obs_source_get_name(source)
126127
video_source_names.append(source_name)
127128

0 commit comments

Comments
 (0)