author_ids = set()
try:
for author in self.authors:
+ print author.encode('utf-8')
author_ids.add(db.GetOrCreateAuthor(author.encode('utf-8')))
except:
- pass
+ pass
except:
self.author='Неизвестный Автор (%s)' % (tag)
self.authors = []
ser_id=None
try:
self.series_idx = meta_dict['series_index']
- ser_num=meta_dict['series_index']
+ ser_num=meta_dict['series_index'].split(',')[0]
except:
ser_num=None
self.has_cover=0
try:
- self.comments=meta_dict['comments'].encode('utf-8')
+ self.comments=meta_dict['comments']
+ if len(self.comments)>20000:
+ self.comments=self.comments[:20000]
+ self.comments=self.comments.encode('utf-8')
except:
self.comments=''
pass
def CheckFiles(delete = 0):
- ids = db.ListByFormat('FB2',300000)
+ ids = db.ListByFormat('FB2',1000000)
cnt = 0
for id in ids:
cnt = cnt + 1;
if delete==1:
db.DelBook(id)
db.Commit()
- ids = db.ListByFormat('FB2.ZIP',300000)
+ ids = db.ListByFormat('FB2.ZIP',1000000)
cnt = 0
for id in ids:
cnt = cnt + 1;