mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	add languages field for BookMeta
This commit is contained in:
		| @@ -63,7 +63,8 @@ def default_meta(tmp_file_path, original_file_name, original_file_extension): | |||||||
|         description="", |         description="", | ||||||
|         tags="", |         tags="", | ||||||
|         series="", |         series="", | ||||||
|         series_id="") |         series_id="", | ||||||
|  |         languages=None) | ||||||
|  |  | ||||||
|  |  | ||||||
| def pdf_meta(tmp_file_path, original_file_name, original_file_extension): | def pdf_meta(tmp_file_path, original_file_name, original_file_extension): | ||||||
| @@ -91,7 +92,8 @@ def pdf_meta(tmp_file_path, original_file_name, original_file_extension): | |||||||
|         description=subject, |         description=subject, | ||||||
|         tags="", |         tags="", | ||||||
|         series="", |         series="", | ||||||
|         series_id="") |         series_id="", | ||||||
|  |         languages=None) | ||||||
|  |  | ||||||
|  |  | ||||||
| def pdf_preview(tmp_file_path, tmp_dir): | def pdf_preview(tmp_file_path, tmp_dir): | ||||||
|   | |||||||
| @@ -88,4 +88,5 @@ def get_epub_info(tmp_file_path, original_file_name, original_file_extension): | |||||||
|         description=epub_metadata['description'], |         description=epub_metadata['description'], | ||||||
|         tags="", |         tags="", | ||||||
|         series="", |         series="", | ||||||
|         series_id="") |         series_id="", | ||||||
|  |         languages=None) | ||||||
|   | |||||||
| @@ -59,4 +59,5 @@ def get_fb2_info(tmp_file_path, original_file_extension): | |||||||
|         description=description, |         description=description, | ||||||
|         tags="", |         tags="", | ||||||
|         series="", |         series="", | ||||||
|         series_id="") |         series_id="", | ||||||
|  |         languages=None) | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ import hashlib | |||||||
| from collections import namedtuple | from collections import namedtuple | ||||||
| import book_formats | import book_formats | ||||||
|  |  | ||||||
| BookMeta = namedtuple('BookMeta', 'file_path, extension, title, author, cover, description, tags, series, series_id') | BookMeta = namedtuple('BookMeta', 'file_path, extension, title, author, cover, description, tags, series, series_id, languages') | ||||||
|  |  | ||||||
| """ | """ | ||||||
|  :rtype: BookMeta |  :rtype: BookMeta | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 林檎
					林檎