lossless1024 / StreaMonitor

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

Flirt4Free doesn't record and is returning unknown error #54

Open prosauce86 opened 1 year ago

prosauce86 commented 1 year ago

I don't think it's user error on my part, everything seems to work fine for other sites. I can see the model is online in the browser but something isn't working. I looked through the flirt4free.py file to see if there was anything obvious but nothing popped out. I also tried turning DEBUG on but there was no additional info. Can you check or advise please

Status: Free space: #####%

+-----------------+------------+---------+-----------------------+ | Username | Site | Started | Status | +-----------------+------------+---------+-----------------------+ | audrey-piper | Flirt4Free | True | Unknown error | | chaturbatable | Chaturbate | False | Not running | | reece-taylor | Flirt4Free | True | Unknown error | | RuthLee | StripChat | True | No stream | | sam-lennox | Flirt4Free | True | Unknown error | | amalia-lynn | Flirt4Free | True | Unknown error | +-----------------+------------+---------+-----------------------+

lossless1024 commented 1 year ago

It works for me. Maybe you can try to remove and re-add the streamers

prosauce86 commented 1 year ago

I've done that several times with no luck. Seems to be only flirt4free that isn't working. Any suggestions to get more info other than just Unknown Error?

prosauce86 commented 1 year ago

Is there really nothing else that can be done to investigate this? I've added and removed streamers in just about every way possible but the result is always "unknown error". Seems really strange that it's working for all sites but this particular one.

ThEnGI commented 1 year ago

You could try to fetch the stream link and pass it directly to FFMPEG and see how it behaves. Through the analysis of the HTML code you have to recover the link of the video stream, the link of the web page is not good.

DerBunteBall commented 1 year ago

Does the Downloader.py shows something?

The extraction StreaMonitor uses works. Both API calls and the web page call work. I created a small extractor which is able to give the URL by using StreaMonitors way.

The only possible things would be:

  1. A network error.
  2. A dependency error. Setup a clean virtual environment for python, install deps cleanly and make sure ffmpeg is usable and has a recent version which is compiled correctly.
  3. Try to emulate StreaMonitors behaviour by doing the same the extractor and downlaoder dows. The code has no error debugging in a way that will give information about every single step the code does. So if something strange happens it will not be obvious and clearly identifiable.

In case you need a clean environment you could also try running StreaMonitor in Docker. I recommand switching Buster to Bullseye. Buster is oldstable and in fact EOL only ELTS is available.

prosauce86 commented 1 year ago

Still no luck with this. Facing the same issue and at this point I'm out of ideas.

Since the last time I've tried:

"Does the Downloader.py shows something?" - No, nothing other than "Unknown error"

Beginning to think it could be some network error but no idea what, especially since I can watch via browser, but that's useless for the purposes of this tool.

prosauce86 commented 1 year ago

Sorry to be a pain with this, but I think I've found part of the issue. Having inspected the html, it seems the model dictionary from the GET request in flirt4free.py is coming back empty, therefore no json to pull the room_id.

window.homePageData = {

  | 'models': [   | ],   | 'favorites': [   | ],   | 'promoMarkup':......

By copying the model id in the network tab of the browser's inspector, I can add it to the model's entry in config.json and I can see "Channel Online". But that's a pain and I don't think the id is a static value. Not sure if anyone else has this issue or I'm just unlucky