Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
remove dead code from wanted_channels
Browse files Browse the repository at this point in the history
  • Loading branch information
beralt committed Jan 29, 2016
1 parent fe5e141 commit d8f9018
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ This simple script parses EPG data from the service at horizon.tv (which is used
Configuration
-------------

You should select the channels by modifying the script a bit. Note that channel display names have to match the ones in your TVHeadend configuration for this to work. There is a variable called add_display_name in the XMLTVDocument class to help with remapping. Setting this to:

add_display_name = {'NPO 1 HD': ['NPO 1']}

remappes NPO 1 HD to NPO 1. Note that although multiple display names are supported by XMLTV this is not the case for TVHeadend.

Configuration of the wanted channels is done by adding and removing channels to the wanted_channels list. A preliminary list is available by default.
The script attempts to fetch a list of channels from TVHeadend using the JSON API. The current implementation requires that you allow the host running HorEPG access without authentication (this usually means allowing localhost), since there is no support for authentication at the moment.

The script attempts to switch to the 'hts' user, with its group set to 'video'. This is what is default on my system, so you might want to changes this to reflect your own setup.

Expand Down
31 changes: 0 additions & 31 deletions horepgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,6 @@
from horepg import *
from tvheadend import *

# configuration
wanted_channels = ['NPO 1 HD',
'NPO 2 HD',
'NPO 3 HD',
'RTL 4 HD',
'RTL 5 HD',
'SBS6 HD',
'RTL 7 HD',
'Veronica HD / Disney XD',
'Net5 HD',
'RTL 8 HD',
'FOX HD',
'Ziggo TV',
'Zender van de Maand',
'Comedy Central HD',
'Nickelodeon HD',
'Disney Channel',
'Discovery HD',
'National Geographic Channel HD',
'SBS9 HD',
'Eurosport HD',
'TLC HD',
'13TH Street HD',
'MTV HD',
'24Kitchen HD',
'één HD',
'Canvas HD',
'Ketnet',
'BBC One HD',
'BBC Two HD']

def switch_user(uid = None, gid = None):
# set gid first
if gid is not None:
Expand Down

0 comments on commit d8f9018

Please sign in to comment.