]> git.0d.be Git - panikweb.git/commitdiff
include stream url settings for player include only
authorFrédéric Péters <fpeters@0d.be>
Thu, 27 May 2021 15:15:19 +0000 (17:15 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 27 May 2021 15:15:19 +0000 (17:15 +0200)
panikweb/context_processors.py
panikweb/paniktags/templatetags/paniktags.py

index 289fb7accf3f29594494f327b057926bb2425baa..ddda89c6879a87383dca8b48e769a796ae1dd316 100644 (file)
@@ -6,5 +6,4 @@ def panikweb(request):
         'site_url': request.build_absolute_uri('/').strip('/'),
         'radio_name': settings.RADIO_NAME,
         'radio_long_name': settings.RADIO_LONG_NAME,
-        'radio_stream_urls': settings.RADIO_STREAM_URLS,
     }
index a3e13887e2a240326fb912de6560fd9df300668a..b861e439befc24fa6f1991e832779a35641d76c7 100644 (file)
@@ -137,9 +137,9 @@ def soundfile_resume(soundfile, date=None):
 
 @register.inclusion_tag('includes/player.html', takes_context=True)
 def player(context):
-
     return {
         'unique': uuid.uuid4(),
+        'radio_stream_urls': settings.RADIO_STREAM_URLS,
         'soundfiles': context.get('soundfiles'),
     }