mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix #3926 (Get list of books on device fails with Kindle DX with 0.6.20)
This commit is contained in:
parent
4ab7c54c67
commit
3c66674bd8
@ -1,10 +1,9 @@
|
|||||||
import re
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class Cyberpresse(BasicNewsRecipe):
|
class Cyberpresse(BasicNewsRecipe):
|
||||||
|
|
||||||
title = u'Cyberpresse'
|
title = u'Cyberpresse'
|
||||||
__author__ = 'balok'
|
__author__ = 'balok and Sujata Raman'
|
||||||
description = 'Canadian news in French'
|
description = 'Canadian news in French'
|
||||||
language = 'fr'
|
language = 'fr'
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class NUUT2(USBMS):
|
|||||||
supported_platforms = ['windows', 'osx', 'linux']
|
supported_platforms = ['windows', 'osx', 'linux']
|
||||||
|
|
||||||
# Ordered list of supported formats
|
# Ordered list of supported formats
|
||||||
FORMATS = ['epub', 'pdft', 'txt']
|
FORMATS = ['epub', 'pdf', 'txt']
|
||||||
DRM_FORMATS = ['epub']
|
DRM_FORMATS = ['epub']
|
||||||
|
|
||||||
VENDOR_ID = [0x140e]
|
VENDOR_ID = [0x140e]
|
||||||
|
@ -34,6 +34,7 @@ def metadata_from_formats(formats):
|
|||||||
mi = metadata_from_filename(list(iter(formats))[0])
|
mi = metadata_from_filename(list(iter(formats))[0])
|
||||||
if not mi.authors:
|
if not mi.authors:
|
||||||
mi.authors = [_('Unknown')]
|
mi.authors = [_('Unknown')]
|
||||||
|
return mi
|
||||||
|
|
||||||
def _metadata_from_formats(formats):
|
def _metadata_from_formats(formats):
|
||||||
mi = MetaInformation(None, None)
|
mi = MetaInformation(None, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user