Explorar o código

Use those methods in france_tv_info

jherve hai 1 ano
pai
achega
a23394caee
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      src/media_observer/medias/france_tv_info.py

+ 6 - 6
src/media_observer/medias/france_tv_info.py

@@ -22,12 +22,12 @@ class FranceTvInfoFrontPage(FrontPage):
     @classmethod
     def get_main_article(cls, soup):
         try:
-            return FranceTvInfoFrontPage._get_highlighted_article(soup)
+            return cls._get_highlighted_article(soup)
         except ValueError:
-            return FranceTvInfoFrontPage._get_non_highlighted_article(soup)
+            return cls._get_non_highlighted_article(soup)
 
-    @staticmethod
-    def _get_highlighted_article(soup):
+    @classmethod
+    def _get_highlighted_article(cls, soup):
         main = soup.select_unique("article.card-article-actu-forte")
         title = main.select_unique(".card-article-actu-forte__title")
 
@@ -37,8 +37,8 @@ class FranceTvInfoFrontPage(FrontPage):
             is_highlighted=True,
         )
 
-    @staticmethod
-    def _get_non_highlighted_article(soup):
+    @classmethod
+    def _get_non_highlighted_article(cls, soup):
         main = soup.select_unique("article.card-article-majeure")
         title = main.select_unique(".card-article-majeure__title")