2010-11-05 15:54:15 +01:00
|
|
|
############################################
|
|
|
|
# pypo - configuration #
|
|
|
|
############################################
|
|
|
|
|
2010-11-08 22:54:54 +01:00
|
|
|
# Set the type of client you are using.
|
|
|
|
# Currently supported types:
|
|
|
|
# 1) "obp" = Open Broadcast Platform
|
|
|
|
# 2) "campcaster"
|
|
|
|
#
|
|
|
|
api_client = "campcaster"
|
|
|
|
|
2010-11-05 15:54:15 +01:00
|
|
|
############################################
|
|
|
|
# Directories / Hosts #
|
|
|
|
# _include_ trailing slash !! #
|
|
|
|
############################################
|
2010-11-08 22:54:54 +01:00
|
|
|
cache_dir = '/opt/pypo/cache/'
|
|
|
|
schedule_dir = '/opt/pypo/cache/schedule'
|
|
|
|
file_dir = '/opt/pypo/files/'
|
2010-11-24 23:57:55 +01:00
|
|
|
tmp_dir = '/opt/pypo/tmp/'
|
2010-11-05 15:54:15 +01:00
|
|
|
|
|
|
|
############################################
|
|
|
|
# API path & co #
|
|
|
|
############################################
|
2010-11-08 22:54:54 +01:00
|
|
|
# Value needed to access the API
|
|
|
|
api_key = 'AAA'
|
|
|
|
|
|
|
|
# Hostname
|
|
|
|
base_url = 'http://localhost/'
|
|
|
|
|
2010-11-12 23:07:01 +01:00
|
|
|
################################################################################
|
|
|
|
# Generic Config - if you are creating a new API client, define these values #
|
|
|
|
################################################################################
|
2010-11-08 22:54:54 +01:00
|
|
|
# Path to the base of the API
|
2010-11-19 00:00:13 +01:00
|
|
|
#api_base = ''
|
2010-11-08 22:54:54 +01:00
|
|
|
|
|
|
|
# URL to get the version number of the API
|
2010-11-19 00:00:13 +01:00
|
|
|
#version_url = ''
|
2010-11-08 22:54:54 +01:00
|
|
|
|
|
|
|
# Schedule export path.
|
2010-11-12 23:07:01 +01:00
|
|
|
# %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm
|
|
|
|
# %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm
|
2010-11-19 00:00:13 +01:00
|
|
|
#export_url = ''
|
2010-11-08 22:54:54 +01:00
|
|
|
|
2010-11-12 23:07:01 +01:00
|
|
|
# Update whether an item has been played.
|
|
|
|
# %%item_id%%
|
|
|
|
# %%played%%
|
2010-11-19 00:00:13 +01:00
|
|
|
#update_item_url = ''
|
2010-11-12 23:07:01 +01:00
|
|
|
|
|
|
|
# Update whether an item is currently playing.
|
2010-11-19 00:00:13 +01:00
|
|
|
#update_start_playing_url = ''
|
2010-11-12 23:07:01 +01:00
|
|
|
|
|
|
|
# ???
|
2010-11-19 00:00:13 +01:00
|
|
|
#generate_range_url = ''
|
2010-11-08 22:54:54 +01:00
|
|
|
|
|
|
|
|
2010-11-12 23:07:01 +01:00
|
|
|
#####################
|
|
|
|
# Campcaster Config #
|
|
|
|
#####################
|
|
|
|
api_base = 'campcaster/'
|
2010-11-19 00:00:13 +01:00
|
|
|
version_url = 'api/api_version.php?api_key=%%api_key%%'
|
|
|
|
export_url = 'api/schedule.php?from=%%from%%&to=%%to%%&api_key=%%api_key%%'
|
|
|
|
update_item_url = 'api/schedule.php?item_id=%%item_id%%&played=%%played%%'
|
|
|
|
update_start_playing_url = 'api/update_start_playing.php?playlist_type=%%playlist_type%%&export_source=%%export_source%%&media_id=%%media_id%%&playlist_id=%%playlist_id%%&transmission_id=%%transmission_id%%'
|
|
|
|
generate_range_url = 'api/generate_range_dp.php'
|
2010-11-08 22:54:54 +01:00
|
|
|
|
2010-11-05 15:54:15 +01:00
|
|
|
|
2010-11-08 22:54:54 +01:00
|
|
|
##############
|
|
|
|
# OBP config #
|
|
|
|
##############
|
|
|
|
#base_url = 'http://localhost/'
|
2010-11-12 23:07:01 +01:00
|
|
|
#api_base = ''
|
|
|
|
#version_url = 'api/pypo/status/json'
|
|
|
|
#update_item_url = 'api/pypo/update_shedueled_item/$$item_id%%?played=%%played%%'
|
|
|
|
#update_start_playing_url = 'api/pypo/update_start_playing/?playlist_type=%%playlist_type%%&export_source=%%export_source%%&media_id=%%media_id%%&playlist_id=%%playlist_id%%&transmission_id=%%transmission_id%%'
|
|
|
|
#generate_range_url = 'api/pypo/generate_range_dp/'
|
2010-11-05 15:54:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
############################################
|
|
|
|
# Liquidsoap settings #
|
|
|
|
############################################
|
|
|
|
ls_host = '127.0.0.1'
|
|
|
|
ls_port = '1234'
|
|
|
|
|
|
|
|
############################################
|
|
|
|
# pypo preferences #
|
|
|
|
############################################
|
|
|
|
prepare_ahead = 24 #in hours
|
|
|
|
cache_for = 24 #how long to hold the cache, in hours
|
|
|
|
|
|
|
|
poll_interval = 10 # in seconds
|
|
|
|
push_interval = 1 # in seconds
|
|
|
|
|
2010-11-08 22:54:54 +01:00
|
|
|
# 'pre' or 'otf'. 'pre' cues while playlist preparation
|
2010-11-05 15:54:15 +01:00
|
|
|
# while 'otf' (on the fly) cues while loading into ls
|
|
|
|
# (needs the post_processor patch)
|
|
|
|
cue_style = 'pre'
|