Code Monkey home page Code Monkey logo

adblockradio's Introduction

AdBlockRadio - Internet radio player that blocks advertisements

Detects advertisements by inspecting song titles inside stream metadata and switches automatically to another radio station, when an ad is detected.

Requirements:

  • Python 3.4 or newer
  • GStreamer 1.X
  • Python bindings for GStreamer
  • PyQt4
  • Python packages: appdirs, plac, requests

Download:

Binary packages for the following OSes are provided:

If you want to run the player on another OS, you might need to install it manually - see below.

How to customize:

After you install the player you need to add your radio stations and setup blacklist patterns.

  1. Edit list of radio stations in config.py
  2. Add blacklist regex patterns for advertisements from the context menu of the notification icon. Blacklist patterns are saved in file ~/.local/share/adblockradio/blacklist.txt, which can also be edited manually.
  3. Start player with GUI in system tray:

    python3 adblockradio/adblockradio.py

    or, to start with a specific radio station:

    python3 adblockradio/adblockradio.py --station URL_TO_RADIO_STREAM

How to install manually:

Ubuntu 16.04:

  1. Download project:

    cd ~/
    git clone https://github.com/quasoft/adblockradio.git
    cd adblockradio
  2. Install dependencies and desktop file

    make develop
    make install
  3. Start player with GUI in system tray:

    python3 adblockradio/adblockradio.py

    or in console mode (eg. for debugging purposes):

    python3 adblockradio/adblockradio.py --console

    If you have Anaconda Python installed, use full path to Python binary (replace python3 with /usr/bin/python3)

    You can add more radio stations to config.py file

How to build installer/OS package:

The steps to build the installer are only needed if you have modified the project or want to build the installer yourself for some reason.

For Ubuntu/Debian:

make init
make deb
sudo gdebi deb_dist/python3-adblockradio_0.3.2-1_all.deb

For Windows 10 64 bit:

To build the binary package for Window yourself, follow these steps:

  1. Install Python 3.4, 32-bit version. This is important as PyGi currently does not support Python versions newer than 3.4.
  2. Install All-In-One PyGI/PyGObject for Windows (tested with pygi-aio-3.18.2_rev12-setup). During setup you have to select the following libraries:
    • Gst-plugins 1.10.4
    • Gst-plugins-extra 1.10.4
    • GStreamer 1.10.4
    • GTK+ 3.18.9
  3. Upgrade pip of Python 3.4:

    python.exe -m pip install --upgrade pip
  4. Find and download a suitable wheel file for PyQt4 (tested with PyQt4-4.11.4-cp34-cp34m-win32.whl)
  5. Install PyQt4 for Python:

    python.exe -m pip install PyQt4-4.11.4-cp34-cp34m-win32.whl
  6. Make sure the player works - python.exe adblockradio\adblockradio.py
  7. Run pyinstaller adblockradio.spec
  8. The ready binary package should be available in folder adblockradio\dist\adblockradio

Credits

adblockradio's People

Contributors

quasoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hbcbh1999

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.