jlplenio / crude-twitch-viewer-bot

Send live viewers to Twitch, youtube and kick with this viewer bot software. The tool offers a user-friendly graphical interface. This program requires HTTP proxies.
GNU Affero General Public License v3.0
326 stars 91 forks source link

Live Viewers Not Counting and Inflated VOD Views #165

Closed Grillekkj closed 3 months ago

Grillekkj commented 1 year ago

Describe the bug
Viewers are not counting on live, when I put any amount it just doesn't increase the number. One interesting thing I noticed was that after the live, my vods had absurd views for my standard metrics, which indicates that the bots inflated the views but in the live itself, the number does not increase, the bot does not crash, all instances turn green and watching, I've even tried to deactivate the headless mode and still, everything is normal and the view doesn't count

jlplenio commented 1 year ago

Do you use the kofi or normal version?

Grillekkj commented 1 year ago

normal version

Em qui., 29 de jun. de 2023 09:03, jlplenio @.***> escreveu:

Do you use the kofi or normal version?

— Reply to this email directly, view it on GitHub https://github.com/jlplenio/crude-twitch-viewer-bot/issues/165#issuecomment-1613023899, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKMH6MGQB3OZA2ERTJR3KDXNVVKJANCNFSM6AAAAAAZX3OCV4 . You are receiving this because you authored the thread.Message ID: @.***>

jlplenio commented 1 year ago

Can others confirm this issue with twitch?

l3franc3 commented 1 year ago

Tried normal 0.6.0 version and happened again, viewers count for a while and then dissapear. Maybe webshare proxies are being blacklisted?

Just wondering...

Grillekkj commented 1 year ago

maybe, i didnt have time this week to test it out again, but on #163 we stated that the stream is starting muted, maybe its that? idk

jlplenio commented 1 year ago

I cannot confirm this, I tested it with 0.6.0 ko-fi version for 20 minutes and 30 viewers, no problems. edit: But, for the ko-fi version, I changed the mechanism to track if an instance is watching. This new mechanism could give a false positive if the stream crashed or is buffering. 🤔

Chroma911 commented 1 year ago

Olá bom dia! Fiz a compra de 30 proxys premium, de acordo com o especificado para uso no app. Simplesmente não contabiliza os espectadores... :/

Grillekkj commented 1 year ago

Olá bom dia! Fiz a compra de 30 proxys premium, de acordo com o especificado para uso no app. Simplesmente não contabiliza os espectadores... :/

@jlplenio Another guy with the same problem, I don't know if you understand Portuguese but basically he said he bought 30 proxies from Webshare as specified and the instances don't count in the live

Chroma911 commented 1 year ago

Olá bom dia! Fiz a compra de 30 proxys premium, de acordo com o especificado para uso no app. Simplesmente não contabiliza os espectadores... :/

responde sempre em inglês maninho, todos aqui falam en inglês. Esse problema que você citou ja está sendo discutido

Sorry, I didn't pay attention to that. Anyway, I have the same reported problem.

jlplenio commented 1 year ago

Thank you for your reports. Keep them coming. I will try again with the normal version.

jnwright commented 1 year ago

using normal v0.4.0 and instances are suddenly not being counted as viewers

yomiyo17 commented 1 year ago

Can others confirm this issue with twitch?

It does inflate the Vod views and the Unique viewers Log on twitch. Cant say anything about not counting viewers

Example: image

jlplenio commented 1 year ago

Still, I cannot recreate this. Tried again with 30 instances for 30 minutes on 0.6.0 normal version. No drops at all.

Can others confirm this issue with twitch?

It does inflate the Vod views and the Unique viewers Log on twitch. Cant say anything about not counting viewers

So, your live viewers remain constant?

yomiyo17 commented 1 year ago

Still, I cannot recreate this. Tried again with 30 instances for 30 minutes on 0.6.0 normal version. No drops at all.

Can others confirm this issue with twitch?

It does inflate the Vod views and the Unique viewers Log on twitch. Cant say anything about not counting viewers

So, your live viewers remain constant?

Yh it is on my end on the Kofi version

Chroma911 commented 1 year ago
Capturar

I performed a live today to test the bot again. In the end, the number of live viewers was only 6, fluctuating constantly. In terms of unique viewers, it reached 260.

jlplenio commented 1 year ago

I performed a live today to test the bot again. In the end, the number of live viewers was only 6, fluctuating constantly. In terms of unique viewers, it reached 260.

You have no proxies, so only one viewer will count?!

Chroma911 commented 1 year ago

I performed a live today to test the bot again. In the end, the number of live viewers was only 6, fluctuating constantly. In terms of unique viewers, it reached 260.

You have no proxies, so only one viewer will count?!

Last week I purchased 30 premium proxies. In theory, it should work.

jlplenio commented 1 year ago

grafik

Your screenshot shows 0 proxies.

Chroma911 commented 1 year ago

grafik

Your screenshot shows 0 proxies.

I hadn't realized that. Isn't the procedure to download the proxy list and attach it to the 'proxy' folder?

jlplenio commented 1 year ago

Add the proxies from your downloaded file to the proxy\proxy_list.txt

Chroma911 commented 1 year ago

Add the proxies from your downloaded file to the proxy\proxy_list.txt

The instances are dying... out of 30, only 3 are online. And even then, they don't count as live viewers

jnwright commented 1 year ago

Still, I cannot recreate this. Tried again with 30 instances for 30 minutes on 0.6.0 normal version. No drops at all.

Not sure if you mean the app or twitch. It says that they are viewers in the app and they are all green, but the viewer number on the Twitch stream does not increase.

Grillekkj commented 1 year ago

I believe that making this change can potentially solve the issue of muted livestreams and viewers not being counted. It is likely that Twitch removes viewers if the livestream is muted, so it is better to have it unmuted.

Here is the modified code: self.goto_with_retry(self.target_url) self.page.wait_for_timeout(1000) self.page.wait_for_selector(".persistent-player", timeout=15000) self.page.keyboard.press("Alt+t")

Press the "m" key to unmute the Twitch player (or u can get css code, this is just the simple way to make it) self.page.keyboard.press("m")

self.page.wait_for_timeout(1000)

Please note that I haven't personally worked with Playwright, but this modification is based on the assumption that the "Alt+t" key combination is right and that pressing "m" unmutes it. I don't know if i need to put a self.page.wait_for_timeout(1000) between these 2 lines, let me know.

i can make a pull request for this if u agree, just let me know @jlplenio

Grillekkj commented 1 year ago

I managed to find some time and updated the code myself, then built an executable of the program to test my theory of unmuting the live stream. This is actually something on Twitch, but unfortunately, it didn't work. I just tested it, and even with 18 instances, the live stream still had only 8 real viewers. Bots are not counting at all

edit 1: Tested with non headless and still won't count viewers

jlplenio commented 1 year ago

Thank you for your effort and time. Judging by your response, https://github.com/jlplenio/crude-twitch-viewer-bot/pull/167 does not fix your issue?

Grillekkj commented 1 year ago

Thank you for your effort and time. Judging by your response, #167 does not fix your issue?

Nope, I even tried to unmute Google itself, but it didn't work. However, this is probably just one aspect of the overall problem. I just can't figure out what else could be causing it.

Maybe twitch changed something?

jlplenio commented 1 year ago

Like I said. Everything works fine on my end. And there is no real uproar here. So, I think this is an isolated problem. Can you check in the logs that every instance uses a different proxy when it starts?

Grillekkj commented 1 year ago

yes it is, they all using different proxy and user agent

jlplenio commented 1 year ago

I am running out of ideas. Try replacing the webshare proxies with fresh ones. Under Proxy->List grafik

Grillekkj commented 1 year ago

replaced all 11 days ago, for this error

Em ter., 4 de jul. de 2023 15:20, jlplenio @.***> escreveu:

I am running out of ideas. Try replacing the webshare proxies with fresh ones. Under Proxy->List [image: grafik] https://user-images.githubusercontent.com/16845311/250970403-4f57b12f-8d0e-4f97-a414-cc16fa1d4e0f.png

— Reply to this email directly, view it on GitHub https://github.com/jlplenio/crude-twitch-viewer-bot/issues/165#issuecomment-1620602096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKMH6PRAEOKXXYKPWWHAWLXORNGHANCNFSM6AAAAAAZX3OCV4 . You are receiving this because you authored the thread.Message ID: @.***>

jlplenio commented 1 year ago

Then I am at a loss.

Grillekkj commented 1 year ago

same tho, im running some tests on my machine

Em ter., 4 de jul. de 2023 15:34, jlplenio @.***> escreveu:

Then I am at a loss.

— Reply to this email directly, view it on GitHub https://github.com/jlplenio/crude-twitch-viewer-bot/issues/165#issuecomment-1620611593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKMH6MPOLTAGK746YAANE3XORO3HANCNFSM6AAAAAAZX3OCV4 . You are receiving this because you authored the thread.Message ID: @.***>

jnwright commented 12 months ago

Could this have to do with Chrome's Memory Saver feature that they put out a few months ago? It deactivates tabs that aren't being used to save memory. I've noticed that if I'm watching a stream regularly and mute it, the player pauses after a while. Maybe that's what's happening here if the bot views are going in muted-- they never count. People have gotten around it by putting the player at 1% volume instead of mute and/or turning off the memory saver feature + adding twitch as an exception. Turning the setting off didn't work for me, though.

Grillekkj commented 12 months ago

I don't think so, I'm pretty sure Playwright doesn't have a feature to enable/disable Chrome's memory saver, and my Google Chrome doesn't have it activated. I don't know if Playwright actually doesn't have it; I've done a small search and didn't find anything about it. Maybe add twitch as an exception is a thing but I don't really know how to do it.

Cloudstrifeff7 commented 10 months ago

Square boxes many times turn yellow instead of green, however Twitch apparently counts them as viewers for me.

jlplenio commented 9 months ago

Do they stay yellow? Ad breaks might be counted as yellow. Unsure, though.