fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Map fix.
[wolnelektury.git]
/
src
/
isbn
/
utils.py
diff --git
a/src/isbn/utils.py
b/src/isbn/utils.py
index
da81c84
..
3e29e86
100644
(file)
--- a/
src/isbn/utils.py
+++ b/
src/isbn/utils.py
@@
-1,6
+1,9
@@
-# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from librarian import RDFNS, DCNS
from librarian import RDFNS, DCNS
+
FORMATS = ('PDF', 'HTML', 'TXT', 'EPUB', 'MOBI')
FORMATS_WITH_CHILDREN = ('PDF', 'EPUB', 'MOBI')
FORMATS = ('PDF', 'HTML', 'TXT', 'EPUB', 'MOBI')
FORMATS_WITH_CHILDREN = ('PDF', 'EPUB', 'MOBI')
@@
-30,11
+33,11
@@
PRODUCT_FORMATS = {
'E127': ('mobi', 'application/x-mobipocket-ebook'),
}
'E127': ('mobi', 'application/x-mobipocket-ebook'),
}
-VOLUME_SEPARATORS = (
u'. część ', u', część ', u', tom ', u
'. der tragödie ')
+VOLUME_SEPARATORS = (
'. część ', ', część ', ', tom ',
'. der tragödie ')
def is_institution(name):
def is_institution(name):
- return name.startswith(
u
'Zgromadzenie Ogólne')
+ return name.startswith('Zgromadzenie Ogólne')
def get_volume(title):
def get_volume(title):