diff --git a/recipes/hindu.recipe b/recipes/hindu.recipe index 4dbb83bed2..beef09b995 100644 --- a/recipes/hindu.recipe +++ b/recipes/hindu.recipe @@ -34,7 +34,7 @@ class TheHindu(BasicNewsRecipe): recipe_specific_options = { 'location': { 'short': 'The name of the local edition', - 'long': ('If The Hindu is available in your local town/city,\n' + 'long': ('If The Hindu is available in your local town/city, ' 'set this to your location, for example, hyderabad\n' 'Available Editions: bengaluru, chennai, coimbatore, delhi, ' 'erode, hyderabad, international, kochi, kolkata,\n' diff --git a/recipes/hindustan_times_print.recipe b/recipes/hindustan_times_print.recipe index a378f777fc..e90d28a446 100644 --- a/recipes/hindustan_times_print.recipe +++ b/recipes/hindustan_times_print.recipe @@ -26,7 +26,7 @@ class ht(BasicNewsRecipe): recipe_specific_options = { 'location': { 'short': 'The name of the local edition', - 'long': ('If The Hindustan Times is available in your local town/city,\n' + 'long': ('If The Hindustan Times is available in your local town/city, ' 'set this to your location, for example, Delhi\nAvailable Editions:' 'Delhi, Mumbai, Chandigarh, Lucknow, Patna, Bengaluru, Pune, Gurgaon,' 'Ludhiana, Rajasthan, Amritsar,\nEast UP, Haryana, Jammu, Navi Mumbai,' diff --git a/recipes/liberation.recipe b/recipes/liberation.recipe index a8d072ad7a..3765fabaad 100644 --- a/recipes/liberation.recipe +++ b/recipes/liberation.recipe @@ -21,9 +21,9 @@ def resize(x): return v m_fr = { - 1: 'janvier', 2: 'février', 3: 'mars', 4: 'avril', - 5: 'mai', 6: 'juin', 7: 'juillet', 8: 'août', - 9: 'septembre', 10: 'octobre', 11: 'novembre', 12: 'décembre' + 1: 'Janvier', 2: 'Février', 3: 'Mars', 4: 'Avril', + 5: 'Mai', 6: 'Juin', 7: 'Juillet', 8: 'Août', + 9: 'Septembre', 10: 'Octobre', 11: 'Novembre', 12: 'Décembre' } def json_to_html(raw): @@ -34,7 +34,7 @@ def json_to_html(raw): auth = '
{}
\n' dt = datetime.fromisoformat(data['last_updated_date'][:-1]) + timedelta(seconds=time.timezone) - dt = dt.strftime('%d ' + m_fr[dt.month] + ' %Y') + dt = dt.strftime(m_fr[dt.month] + '%d, %Y') a = [x['name'] for x in data['credits']['by']] if a: auth = auth.format(', '.join(a) + ' | ' + dt) @@ -86,6 +86,7 @@ class Liberation(BasicNewsRecipe): oldest_article = 1.15 remove_empty_feeds = True articles_are_obfuscated = True + timefmt = '[ %s]' % datetime.now().strftime(m_fr[datetime.now().month] '%d, %Y') ignore_duplicate_articles = {'title', 'url'} key = 'ZWplZVBlaW5nZWl0YWVnaG8zd2VlbmdlZXlvaHB1' masthead_url = 'https://journal.liberation.fr/img/logo.svg'