]> git.0d.be Git - panikweb.git/commitdiff
add settings.PODCASTS_DEFAULT_IMAGE_PATH
authorFrédéric Péters <fpeters@0d.be>
Wed, 21 Jul 2021 09:00:26 +0000 (11:00 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 21 Jul 2021 09:00:26 +0000 (11:00 +0200)
panikweb/settings.py
panikweb/views.py

index 78ac0882c0b98b5aaa066343b864c6c4ba818bd7..f6eeb0085ca1c596bfd65da0bb0f5b0815278cc1 100644 (file)
@@ -248,6 +248,7 @@ COMBO_CELL_ASSET_SLOTS = {}
 RADIO_NAME = 'Radio Panik'
 RADIO_LONG_NAME = 'Radio Panik - 105.4 FM'
 WEBSITE_BASE_URL = 'https://www.radiopanik.org/'
+PODCASTS_DEFAULT_IMAGE_PATH = '/static/img/logo-panik-500.png'
 RADIO_STREAM_URLS = [
     {
         'id': 'ogg',
index a951d17a0c5b9161ee1814c9544695d7a45728cb..ba9ad8f3a58163db34f58e42fcc43f301f5fd85d 100644 (file)
@@ -856,7 +856,7 @@ class RssCustomPodcastsFeed(Rss201rev2Feed):
         if emission and emission.image and emission.image.url:
             image_url = emission.image.url
         else:
-            image_url = '/static/img/logo-panik-500.png'
+            image_url = settings.PODCASTS_DEFAULT_IMAGE_PATH
         image_url = urlparse.urljoin(self.feed['link'], image_url)
         handler.startElement('image', {})
         if emission: