Skip to content

Commit

Permalink
Use encoder URL from config
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsOps committed Dec 22, 2014
1 parent d12e063 commit 263a176
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions check_signal.py
Expand Up @@ -2,10 +2,12 @@
import shutil
import config

groups = config.config_load().groups()
loaded_config = config.config_load()
groups = loaded_config.groups()

for group in groups:
url = "http://" + group + ".encoder.timvideos.us:8081/loop.raw"
encoder_url = loaded_config.config(group)['flumotion-encoder']
url = "http://" + encoder_url + ":8081/loop.raw"
print "scanning " + group
try:
r = requests.head(url, stream=True)
Expand Down

0 comments on commit 263a176

Please sign in to comment.