Skip to content

Commit 2d617f7

Browse files
committed
Fix SCVR bug
1 parent c593255 commit 2d617f7

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

streamonitor/bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Bot(Thread):
2424
siteslug = None
2525
aliases = []
2626
ratelimit = False
27-
_bulk_update = False
27+
bulk_update = False
2828

2929
sleep_on_private = 5
3030
sleep_on_offline = 5
@@ -164,7 +164,7 @@ def run(self):
164164
while self.running:
165165
try:
166166
self.recording = False
167-
if not self._bulk_update or self.sc == Status.NOTRUNNING:
167+
if not self.bulk_update or self.sc == Status.NOTRUNNING:
168168
self.sc = self.getStatus()
169169
# Check if the status has changed and log the update if it's different from the previous status
170170
if self.sc != self.previous_status:
@@ -222,7 +222,7 @@ def update_cookie():
222222

223223
if self.quitting:
224224
break
225-
elif self._bulk_update:
225+
elif self.bulk_update:
226226
self._sleep(1)
227227
elif self.ratelimit:
228228
self._sleep(self.sleep_on_ratelimit)

streamonitor/managers/bulk_status_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, streamers):
1414
self.logger = log.Logger("bulk_status_manager")
1515

1616
def run(self):
17-
bulk_bots = frozenset([site for site in LOADED_SITES if hasattr(site, 'getStatusBulk')])
17+
bulk_bots = frozenset([site for site in LOADED_SITES if hasattr(site, 'getStatusBulk') and site.bulk_update])
1818
bot_sessions = {}
1919

2020
for bot in bulk_bots:

streamonitor/sites/sexchathu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SexChatHU(RoomIdBot):
99
site = 'SexChatHU'
1010
siteslug = 'SCHU'
1111

12-
_bulk_update = True
12+
bulk_update = True
1313
_performers_list_cache = None
1414
_performers_list_cache_timestamp = 0
1515

streamonitor/sites/stripchat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StripChat(RoomIdBot):
1616
site = 'StripChat'
1717
siteslug = 'SC'
1818

19-
_bulk_update = True
19+
bulk_update = True
2020
_static_data = None
2121
_main_js_data = None
2222
_doppio_js_data = None

streamonitor/sites/stripchat_vr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
class StripChatVR(StripChat):
77
site = 'StripChatVR'
88
siteslug = 'SCVR'
9-
_bulk_update = False
9+
bulk_update = False
1010

1111
vr_frame_format_map = {
1212
'FISHEYE': 'F',
1313
'PANORAMIC': 'P',
1414
'CIRCULAR': 'C',
1515
}
1616

17-
def __init__(self, username):
18-
super().__init__(username)
17+
def __init__(self, username, room_id=None):
18+
super().__init__(username, room_id)
1919
self.stopDownloadFlag = False
2020
self.vr = True
2121

0 commit comments

Comments
 (0)