Image 01
profile-image

zipzipsaib

moha barakat
Online Radio AD Blocker

VLC Extensions 16 comments

Score 56%
56 Likes
44 Dislikes
Aug 13 2015
if two ads are played consecutively, then volume_level is set to 0. To fix this, you can add an "if" like this:
if block then
vlc.msg.info("Found AD, set volume level to 0")
if not prev then
volume_level = vlc.volume.get()
end
vlc.volume.set(0)

I also have an updated block for di.fm:
block = string.find(t,"Choose premium.*") or string.find(t,"DI - Energizing") or string.find(t,"Digitally Imported.*TAG") or string.find(t, 'More of the show after these messages') or string.find(t, 'Get Digitally Imported Premium') or string.find(t, 'webex') or string.find(t, 'di.fm/premium') or string.find(t, "There's more to Digitally Imported!") or string.find(t, 'PhotonVPS.com')

have fun! - Sep 17 2013
nice addon, but wasn't easy to make it work for a beginner.

* when I saved the file, some xml markup was added by my browser, so you want to check the content of the file and make sure nothing is appended.

* to get the %APPDATA% folder, you can press start, type cmd, type: echo %APPDATA%

* vlc 2.0.8 complained about missing descriptor() function, I added to the beginning of the script:
function descriptor()
return {
title = "AdBlock",
version = "0.1",
author = "joemeszaros",
url = 'hello',
shortdesc = "AdBlock";
}
end

* for di.fm, I used a block like this one:
block = string.find(t,"Digitally Imported.*TAG") or string.find(t, 'More of the show after these messages') or string.find(t, 'Get Digitally Imported Premium') or string.find(t, 'webex') or string.find(t, 'di.fm/premium') or string.find(t, "There's more to Digitally Imported!") or string.find(t, 'PhotonVPS.com')
the list was taken from here
http://code.google.com/p/quodlibet/source/browse/plugins/events/radioadmute.py?spec=svn0d807ac2a1f919f1e008e0639b1d0ea530504a98&r=0d807ac2a1f919f1e008e0639b1d0ea530504a98 - Sep 05 2013
Online Radio AD Blocker

VLC Extensions

Score 56%
56 Likes
44 Dislikes
Sep 12 2013
Online Radio AD Blocker

VLC Extensions

Score 56%
56 Likes
44 Dislikes
Sep 05 2013