[weboob] [PATCH 2/2] radiofrance: fix France culture podcasts

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Sat Apr 21 17:17:51 CEST 2018


The RSS class changed, updating it fixes the podcast feature

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
 modules/radiofrance/pages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/radiofrance/pages.py b/modules/radiofrance/pages.py
index 19a6e1415..7cbf7662b 100644
--- a/modules/radiofrance/pages.py
+++ b/modules/radiofrance/pages.py
@@ -122,7 +122,7 @@ class RadioPage(HTMLPage):
                 return timedelta(seconds=int(_d))
 
     def get_france_culture_podcasts_url(self):
-        for a in XPath('//a[@class="podcast"]')(self.doc):
+        for a in XPath('//a[has-class("podcast-link-rss")]')(self.doc):
             emission_id = Regexp(CleanText('./@href'),
                                  'http://radiofrance-podcast.net/podcast09/rss_(.*).xml', default=None)(a)
             if emission_id:
-- 
2.17.0




More information about the weboob mailing list