-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Apps
News
Knowledge
Events
People
Jobs
Register
Login

Sponsoring


-
- Content .- Fans (5) .- Knowledge Base  . 

Online Radio AD Blocker

  

VLC Extension

Score 58%
Online Radio AD Blocker
zoom


other:  Link
Downloads:  18698
Submitted:  Sep 2 2013
Updated:  Aug 13 2015

Description:

It always annoying when a commercial unexpectedly interrupts your relaxation and tries to sell you irrelevant products and services again and again every day. Hey, what happened? I want to listen my online radio without ads! With this extension (after configuration) the volume level is automatically set to 0 when an AD is recognized.

CONFIGURATION:
You have to configure which content is recognized as ad. My favorite radio station always sets the title of the ads as "ad|main http://adurl" or "Adcor - ad description" so the configuration in this case is easy! Everything which starts with "ad" is classified as blocked content. Maybe you have to change this simple pattern depending on your broadcasted content.

I hope you are familiar with regular expressions because the title pattern is a LUA regular expression. You can change the filter in the downloaded file at line 18. (Short LUA tutorial http://lua-users.org/wiki/PatternsTutorial)

INSTALLATION:
- click on the download button below
- save the file and extract "online_radio_adblocker.lua"
- create a directory "extensions" at this location and put the file "online_radio_adblocker.lua" inside:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
* Windows (current user): %APPDATA%\vlc\lua\extensions\
* Linux (all users): /usr/lib/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
* Mac OS X (current user): /Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/

To start the extension click on View > Online radio AD blocker.

Any comments, idea would be highly appreciated.

You can find the project on github as well : https://github.com/joemeszaros/vlc-ad-blocker.




Changelog:

version 0.2:
-fix : if two ads are played consecutively, then volume_level is set to 0




LicenseGPL
(Online Radio AD Blocker)
Donate
Send to a friend
Subscribe
Other  Apps  from joemeszaros
Report inappropriate content



goto page: prev   1  2 

-

 Rewrote to truly SKIP, not just mute

 
 by OneBadV8 on: Nov 16 2015
 
Score 50%

I rewrote the original script to instead stop and then start playing the stream which I found causes the ad to be skipped entirely. I only tested this with DI.fm, but I would imagine this works with others. Please reach out with any questions.

function descriptor()
   return {
title = "Online Radio AD blocker",
author = "joe.meszaros@gmail.com",
version = 0.3,
shortdesc = 'AdBlock',
url = '',
description = "It always annoying when a commercial unexpectedly interrupts your relaxation and tries to sell you irrelevant products and services again and again every day. Hey, what happened? I want to listen my online radio without ads! With this extension (after configuration) the volume level is automatically set to 0 when an AD is recognized",
capabilities = {"input-listener"}
}
end


function meta_changed()
   vlc.msg.info("... meta_changed ...")
t = get_now_playing()
vlc.msg.info("Now playing:")
vlc.msg.info(t)
prev = block
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') or string.find(t, 'DI.fm')
if block then
vlc.msg.info("Found AD, stop")
vlc.playlist.stop()
vlc.msg.info("Go to first track in playlist")
vlc.playlist.goto(1)
vlc.msg.info("Replay stream to skip ad")
vlc.playlist.play()
end
end


function activate()
end

function deactivate()
end

function get_now_playing(str)
    local item = vlc.item or vlc.input.item()
if not item then
return ""
end
local metas = item:metas()
if metas["now_playing"] then
return metas["now_playing"]
else
return ""
end
end


Reply to this

goto page: prev   1  2 

Add commentBack




-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Participate
Add App
Public API
About addons.videolan.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Report Abuse
 

Copyright 2011-2016 addons.videolan.org Team  
All rights reserved. addons.videolan.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
VideoLAN, VLC media player and x264 are trademarks registered (or in registration process) by the VideoLAN non-profit organization