Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube ads read in PMMS #98

Open
Thnight86041 opened this issue Aug 2, 2024 · 27 comments
Open

YouTube ads read in PMMS #98

Thnight86041 opened this issue Aug 2, 2024 · 27 comments

Comments

@Thnight86041
Copy link

Currently on the latest version of pmms I have all the ads for each video taken from youtube. Is there a way to patch ?

@Edmondio
Copy link

Edmondio commented Aug 3, 2024

same for me ..

@dahtslash
Copy link

Same... if I find a workaround Ill pull. Damn yt.

@JordanZABOT
Copy link

JordanZABOT commented Aug 8, 2024

The workaround I was trying to do involved auto-clicking the skip ads button but I kept running into issues. I just didn't have time to continue working on it. Maybe I will find some motivation to work on it this weekend

@JordanZABOT
Copy link

Figured it out. The issue has to do with the DUI being hosted on github.io. If you throw the DUI up on a domain that you control or even hosted on the fivem server itself and change this line to wherever you host it, it does not play ads anymore

pmms/config.lua

Line 726 in 5f55601

Config.dui.urls.https = "https://kibook.github.io/pmms-dui"

@FerhatTurbo
Copy link

FerhatTurbo commented Aug 9, 2024

Figured it out. The issue has to do with the DUI being hosted on github.io. If you throw the DUI up on a domain that you control or even hosted on the fivem server itself and change this line to wherever you host it, it does not play ads anymore

pmms/config.lua

Line 726 in 5f55601

Config.dui.urls.https = "https://kibook.github.io/pmms-dui"

Can you give some more details?

@Thnight86041
Copy link
Author

Figured it out. The issue has to do with the DUI being hosted on github.io. If you throw the DUI up on a domain that you control or even hosted on the fivem server itself and change this line to wherever you host it, it does not play ads anymore

pmms/config.lua

Line 726 in 5f55601

Config.dui.urls.https = "https://kibook.github.io/pmms-dui"

How can it be hosted on the server?

@JordanZABOT
Copy link

I will make a repoamd test later so it can be hosted on the FiveM server. Although I’m not sure if it will work yet. The cfx.re server endpoint URL may not work and may have ads. What I was thinking about doing is just hosting the DUI and serving it with SetHttpHandler to serve the static files. In case you don’t know what the DUI is it’s this: https://github.com/kibook/pmms-dui all you need to do is get these files uploaded to a static file server and serve them - it must be HTTPS for YouTube to work.

@FerhatTurbo
Copy link

image

advertising problem continues

@Thnight86041
Copy link
Author

I'll try to host it with httpmanager

@Thnight86041
Copy link
Author

We can host with httpmanager you just drag and drop the downloaded copy of pmms-dui

Then modify the pmms config.lua file as follows : Config.dui.urls.https = "http://[server IP]:[server port]/httpmanager/pmms-dui/"

For me it works

@JordanZABOT
Copy link

image

advertising problem continues

You can’t use anything with github.io. It has to be a different top level domain

@JordanZABOT
Copy link

I’m about to sit down and work on a repo that will hopefully work standby

@Thnight86041
Copy link
Author

I’m about to sit down and work on a repo that will hopefully work standby

Look at my answer I managed to remove the ads

@JordanZABOT
Copy link

I’m about to sit down and work on a repo that will hopefully work standby

Look at my answer I managed to remove the ads

I saw it, but I’m going to make something that will be an easy drag and drop solution for the people since this repo is not being maintained anymore

@Thnight86041
Copy link
Author

Fine

@JordanZABOT
Copy link

Done

https://github.com/JordanZABOT/pmms-dui

@Thnight86041
Copy link
Author

Very nice script and correction but I have a failled with 30000ms and nothing launches.

@JordanZABOT
Copy link

Very nice script and correction but I have a failled with 30000ms and nothing launches.

Add me on discord jordanzabot

@hormoskunk
Copy link

hormoskunk commented Aug 23, 2024

I’m about to sit down and work on a repo that will hopefully work standby

Look at my answer I managed to remove the ads

with your idea I have the same problem with 30000ms and nothing launches...

and with this idea

Done

https://github.com/JordanZABOT/pmms-dui

sometimes it works and sometimes I have got the same fail with 30000ms...
I don't even restart server, 2 days was working and then 3 days dont, then 1 afternoon was working right now once again dont, I'm lost what to do...

@PassiveRolePlayer
Copy link

PassiveRolePlayer commented Aug 29, 2024

is this all up and working good as now ?
i have made a few changes to pmms that i'd hate to re do from updating to the latest pmms, my default config line is
Config.dui.url = "https://kibook.github.io/pmms"

@ReallyPluto
Copy link

so is there any real fix for this?

@bobatari
Copy link

bobatari commented Sep 5, 2024

If you guys are still having issues, update your dui.url.https to this

https://optimalrp.com/pmms-dui

Just did what someone said earlier.

@KK7130
Copy link

KK7130 commented Sep 21, 2024

If you guys are still having issues, update your dui.url.https to this

https://optimalrp.com/pmms-dui

Just did what someone said earlier.

i tried this and still not working for me. get long commercials

@bobatari
Copy link

If you guys are still having issues, update your dui.url.https to this
https://optimalrp.com/pmms-dui
Just did what someone said earlier.

i tried this and still not working for me. get long commercials

post a pic, show me.

@lemanberia
Copy link

someone fixit ?

@hormoskunk
Copy link

someone fixit ?

just use bobatari's link for the line in config and it works just perfect

@The4n0nyMous
Copy link

The4n0nyMous commented Oct 5, 2024

Hello I have a lot of advertising with the pmms system someone is how to resolve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests