fix Mediapart covers disappearing in Kindle menu

This commit is contained in:
Loic Houpert 2021-01-12 11:00:30 +01:00
parent 9b5605c9b9
commit e210c16857
No known key found for this signature in database
GPG Key ID: 420C6A6671A9F480

View File

@ -1,5 +1,13 @@
#!/usr/bin/env python #!/usr/bin/env python
# vim:fileencoding=utf-8 # vim:fileencoding=utf-8
#
# 11 Jan 2021 - L. Houpert - Major changes in the Mediapart recipe:
# 1) Summary of the article are noow available
# 2) Additional sections International, France, Economie and Culture have
# been added through custom entries in the function my_parse_index.
# 3) Fix the cover image so it doesnt disappear from the Kindle menu
# ( cover image format is changed to .jpeg)
#
from __future__ import unicode_literals from __future__ import unicode_literals
__license__ = 'GPL v3' __license__ = 'GPL v3'
@ -42,7 +50,7 @@ class Mediapart(BasicNewsRecipe):
remove_tags = [classes('login-subscribe print-source_url')] remove_tags = [classes('login-subscribe print-source_url')]
conversion_options = {'smarten_punctuation': True} conversion_options = {'smarten_punctuation': True}
cover_url = 'https://static.mediapart.fr/files/M%20Philips/logo-mediapart.png' cover_url = 'https://raw.githubusercontent.com/lhoupert/calibre_contrib/main/mediapart.jpeg'
# -- # --