This commit is contained in:
unkn0w7n 2024-09-22 18:39:22 +05:30
parent 7980be7dd5
commit b844da69d4
2 changed files with 0 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 416 B

View File

@ -339,11 +339,6 @@ class NewYorkTimes(BasicNewsRecipe):
] ]
return br return br
def get_article_url(self, article):
url = BasicNewsRecipe.get_article_url(self, article)
if not '/video/' in url:
return url
def preprocess_html(self, soup): def preprocess_html(self, soup):
w = self.recipe_specific_options.get('res') w = self.recipe_specific_options.get('res')
if w and isinstance(w, str): if w and isinstance(w, str):