Browse files

dead air track is now a setting

  • Loading branch information...
1 parent b99a74b commit 8219faff549071bf5085f7a1c555694fbcf38f26 @brownan committed Dec 14, 2010
Showing with 6 additions and 1 deletion.
  1. +5 −0 README.rst
  2. +1 −1 playlist/views.py
View
5 README.rst
@@ -170,6 +170,11 @@ later.
LISTEN_URL
Set this to the URL that the Listen link should point to.
+ DEAD_AIR_TRACK
+ This is an absolute path on the filesysem to an mp3 that will play when
+ otherwise nothing is playing. ``bees.mp3`` is included in the logic
+ directory as a default; set this option to its path.
+
Other directives, not documented yet
------------------------------------
They're not strictly necessary for a working install, but may do something
View
2 playlist/views.py
@@ -1125,7 +1125,7 @@ def next(request, authid):
new = PlaylistEntry.objects.all()[0]
except IndexError:
# No more playlist entires
- location = os.path.join(settings.LOGIC_DIR, "bees.mp3")
+ location = settings.DEAD_AIR_TRACK
metadata = "bees"
return HttpResponse(location +'\n'+ metadata)
else:

0 comments on commit 8219faf

Please sign in to comment.