lossless1024 / StreaMonitor

Adult live stream downloader for advanced people. I could have chosen a better name.
GNU General Public License v3.0
198 stars 52 forks source link

MFC away state errors #31

Closed rydiy closed 1 year ago

rydiy commented 1 year ago

Streamers on MFC can enter an away state where their account stays logged in and present in the chatroom, but the video broadcast is temporarily disabled.

StreaMonitor seems unprepared for this user state, throwing tons of errors and spamming traceroutes to the console every few seconds.

I'm not sure if this always happens or only under certain circumstances (I've only been using StreaMonitor for a day or two) but there probably ought to be a more elegant way to handle this fairly common occurrence.

lossless1024 commented 1 year ago

I haven't seen this state before. If you encounter this, please go to https://share.myfreecams.com/ and save the page source and send it to me somehow. Then I can do something with it.

rydiy commented 1 year ago

If you want to try to reproduce it yourself, users who are away get a little tag on their thumbnail just like "Club Show" or "TruePrivate". I don't see any at the moment, but I've attached a screenshot I found on some blog.

away-blur

I'll keep an eye out for an active instance to hopefully provide some more useful context, but here's a paste of the last time I observed the error just after I opened this issue:

2022-10-29 21:42:02,772 - INFO - [MFC] username_redacted: Channel online
2022-10-29 21:42:02,772 - INFO - [MFC] username_redacted: Started downloading show
FException in thread Thread-415:
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/***/***/***/StreaMonitor/StreaMonitor-master/streamonitor/downloaders/ffmpeg.py", line 15, in execute
    ff.run(stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
  File "/Users/***/Library/Python/3.9/lib/python/site-packages/ffmpy.py", line 106, in run
    raise FFRuntimeError(self.cmd, self.process.returncode, out[0], out[1])
ffmpy.FFRuntimeError: `ffmpeg -user_agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" -c:a copy -c:v copy "downloads/username_redacted [MFC]/username_redacted-20221029-214203.mp4"` exited with status 1

STDOUT:

STDERR: