Advertisement
Guest User

Untitled

a guest
Jun 4th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. in_dir = "/usr/lib/airtime/api_clients"
  2.  
  3. #############################
  4. ## Common
  5. #############################
  6.  
  7. # Value needed to access the API
  8. api_key = '***************'
  9.  
  10. # Path to the base of the API
  11. api_base = 'api'
  12.  
  13. # URL to get the version number of the server API
  14. version_url = 'version/api_key/%%api_key%%'
  15.  
  16. #URL to register a components IP Address with the central web server
  17. register_component = 'register-component/format/json/api_key/%%api_key%%/component/%%component%%'
  18.  
  19. # Hostname
  20. host = 'localhost'
  21. base_port = 8010
  22. base_dir = '/'
  23.  
  24. #############################
  25. ## Config for Media Monitor
  26. #############################
  27.  
  28. # URL to setup the media monitor
  29. media_setup_url = 'media-monitor-setup/format/json/api_key/%%api_key%%'
  30.  
  31. # Tell Airtime the file id associated with a show instance.
  32. upload_recorded = 'upload-recorded/format/json/api_key/%%api_key%%/fileid/%%fileid%%/showinstanceid/%%showinstanceid%%'
  33.  
  34. # URL to tell Airtime to update file's meta data
  35. update_media_url = 'reload-metadata/format/json/api_key/%%api_key%%/mode/%%mode%%'
  36.  
  37. # URL to tell Airtime we want a listing of all files it knows about
  38. list_all_db_files = 'list-all-files/format/json/api_key/%%api_key%%/dir_id/%%dir_id%%/all/%%all%%'
  39.  
  40. # URL to tell Airtime we want a listing of all dirs its watching (including the stor dir)
  41. list_all_watched_dirs = 'list-all-watched-dirs/format/json/api_key/%%api_key%%'
  42.  
  43. # URL to tell Airtime we want to add watched directory
  44. add_watched_dir = 'add-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%'
  45.  
  46. # URL to tell Airtime we want to add watched directory
  47. remove_watched_dir = 'remove-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%'
  48.  
  49. # URL to tell Airtime we want to add watched directory
  50. set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%'
  51.  
  52. # URL to tell Airtime about file system mount change
  53. update_fs_mount = 'update-file-system-mount/format/json/api_key/%%api_key%%'
  54.  
  55. # URL to commit multiple updates from media monitor at the same time
  56.  
  57. reload_metadata_group = 'reload-metadata-group/format/json/api_key/%%api_key%%'
  58.  
  59. # URL to tell Airtime about file system mount change
  60. handle_watched_dir_missing = 'handle-watched-dir-missing/format/json/api_key/%%api_key%%/dir/%%dir%%'
  61.  
  62. #############################
  63. ## Config for Recorder
  64. #############################
  65.  
  66. # URL to get the schedule of shows set to record
  67. show_schedule_url = 'recorded-shows/format/json/api_key/%%api_key%%'
  68.  
  69. # URL to upload the recorded show's file to Airtime
  70. upload_file_url = 'upload-file/format/json/api_key/%%api_key%%'
  71.  
  72. # URL to commit multiple updates from media monitor at the same time
  73.  
  74. #number of retries to upload file if connection problem
  75. upload_retries = 3
  76.  
  77. #time to wait between attempts to upload file if connection problem (in seconds)
  78. upload_wait = 60
  79.  
  80. ################################################################################
  81. # Uncomment *one of the sets* of values from the API clients below, and comment
  82. # out all the others.
  83. ################################################################################
  84.  
  85. #############################
  86. ## Config for Pypo
  87. #############################
  88.  
  89. # Schedule export path.
  90. # %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm
  91. # %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm
  92. export_url = 'schedule/api_key/%%api_key%%'
  93.  
  94. get_media_url = 'get-media/file/%%file%%/api_key/%%api_key%%'
  95.  
  96. # Update whether a schedule group has begun playing.
  97. update_item_url = 'notify-schedule-group-play/api_key/%%api_key%%/schedule_id/%%schedule_id%%'
  98.  
  99. # Update whether an audio clip is currently playing.
  100. update_start_playing_url = 'notify-media-item-start-play/api_key/%%api_key%%/media_id/%%media_id%%/'
  101.  
  102. # URL to tell Airtime we want to get stream setting
  103. get_stream_setting = 'get-stream-setting/format/json/api_key/%%api_key%%/'
  104.  
  105. #URL to update liquidsoap status
  106. update_liquidsoap_status = 'update-liquidsoap-status/format/json/api_key/%%api_key%%/msg/%%msg%%/stream_id/%%stream_id%%/boot_time/%%boot_time%%'
  107.  
  108. #URL to check live stream auth
  109. check_live_stream_auth = 'check-live-stream-auth/format/json/api_key/%%api_key%%/username/%%username%%/password/%%password%%/djtype/%%djtype%%'
  110.  
  111. #URL to update source status
  112. update_source_status = 'update-source-status/format/json/api_key/%%api_key%%/sourcename/%%sourcename%%/status/%%status%%'
  113.  
  114. get_bootstrap_info = 'get-bootstrap-info/format/json/api_key/%%api_key%%'
  115.  
  116. get_files_without_replay_gain = 'get-files-without-replay-gain/api_key/%%api_key%%/dir_id/%%dir_id%%'
  117.  
  118. update_replay_gain_value = 'update-replay-gain-value/format/json/api_key/%%api_key%%'
  119.  
  120. notify_webstream_data = 'notify-webstream-data/api_key/%%api_key%%/media_id/%%media_id%%/format/json'
  121.  
  122. notify_liquidsoap_started = 'rabbitmq-do-push/api_key/%%api_key%%/format/json'
  123.  
  124. get_stream_parameters = 'get-stream-parameters/api_key/%%api_key%%/format/json'
  125.  
  126. push_stream_stats = 'push-stream-stats/api_key/%%api_key%%/format/json'
  127.  
  128. update_stream_setting_table = 'update-stream-setting-table/api_key/%%api_key%%/format/json'
  129.  
  130. get_files_without_silan_value = 'get-files-without-silan-value/api_key/%%api_key%%'
  131.  
  132. update_cue_values_by_silan = 'update-cue-values-by-silan/api_key/%%api_key%%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement