teacat / chaturbate-dvr

😎 Chaturbate DVR - auto records the stream when it goes online!
MIT License
141 stars 18 forks source link

Online Models Detected as Offline #61

Open DarkPunk420 opened 2 months ago

DarkPunk420 commented 2 months ago

I use your command line utility in Terminal on Kubuntu 22.04. As of July 1st a number of jurisdictions are enforcing age verification for guest/anonymous accounts on CB, and other sites to follow. To pass the challenge a picture of your face or government ID is required. The result for me is that streams are detected as offline when they are broadcasting. In my case stream captures are only successful about 1 out of 10 attempts. Not sure if this will get worse or not. The results are the same for me in the Web GUI in Chrome whether logged in or not. This clearly isn't a problem with your code, and I'm not sure anything can be done about it. I just thought you would like to know. Obviously, there are other solutions available to the people affected if they still want to use your program.

YamiOdymel commented 2 months ago

hmmm interesting, and that's indeed lot's of information.

May I ask what country you live in?

DarkPunk420 commented 2 months ago

US, hard to say which states will be affected since the law went into affect in California.

SamirPRO1 commented 1 month ago

Florida is ok so far, also most other countries outside US are fine, maybe some way to implement importing cookies from an already logged in browser helps with this

atrujillo314 commented 1 month ago

I may have found the issue that causes this I was using a VPN getting the same error but switched it off and the models were online again

davepmer commented 3 weeks ago

Same issue, no VPN in US. Believe it has to do with the new reverify your age pop up when opening www.chaturbate.com This is stopping the routine to determine if models are on line.

YamiOdymel commented 3 weeks ago

I just tested it, and I don't think that's the case, though I had the same thought.

The stream continues playing in the background even though I haven't agreed to the terms, even after switching to 4G LTE for a new IP.

image

===

I also checked their code, and the 'Agree' button seems to simply close the window and prevent it from reminding again.

buildTermsCookie is used by the browser to remember not to show the notice next time, while window.newrelic is just a monitoring and data collection function.

image

image

davepmer commented 3 weeks ago

Not the screen I get Screenshot from 2024-08-20 10-15-11

YamiOdymel commented 3 weeks ago

OH NO that doesn't look good, what does the verification do? simply ask for birthday?

davepmer commented 3 weeks ago

the verification wants to scan your ID, I used my phone to verify. if I use a browser that I logged into the screen does not reappear, but if I log out or use a browser I never logged into it wants to verify again

davepmer commented 3 weeks ago

So far the only work around is to use a VPN that is not in the US

DarkPunk420 commented 2 weeks ago

I tested manually exporting cookies to cookies.txt for use in Youtube-DL. I was able to successfully capture a stream from CB. After hours of searching, this is all I can offer since I have no experience with Python or GO.

YamiOdymel commented 2 weeks ago

@DarkPunk420 So you copied the cookie after you passed the identity confirmation?

Could you share how the cookie strings look like, or what keys it uses? (remember to censored/delete the value to protect your information)

Maybe I should make an extra field for manually input the cookie. If so, this may also solve #15

DarkPunk420 commented 2 weeks ago

I know very little about cookies. My cookies.txt file has 15 lines in it, and I am not sure what is relevant or needs to be protected. It might help with the other issue since I used a cookie from a logged in account instead of the age verification anonymous cookie.

The cookie that I tested with youtube-dl was from my logged in account. I used a chrome extension (Get cookies.txt Clean) to export the cookie to plain text netscape/mozilla format. Then I used the built in option --cookies in youtube-dl. This was on my windows PC.

youtube-dl -f best --cookies cookies.txt https://chaturbate.com/model/

I have not tested the age verification cookie on my Linux PC. Since youtube-dl isn't setup there I'll test it later.

DarkPunk420 commented 2 weeks ago

So here are the cookie.txt contents(heavily censored). Hope this helps!

From a logged in account: Screenshot_20240827_161923

From Age Verification Cookie: Screenshot_20240827_162217

DarkPunk420 commented 2 weeks ago

After a couple of days this method is still working to capture streams. I did have to manually refresh my cookies though. I was looking into yt-dlp since it shares it's code base with Youtube-Dl, and it does have functionality to pull cookies automatically. However, that functionality was broken by a Chromium update that locks cookies by default.