From: Roman Bazalevsky Date: Sat, 11 Jul 2015 14:15:31 +0000 (+0300) Subject: File name procedure modified. X-Git-Url: https://git.rvb.name/openlib.git/commitdiff_plain/a47401f5fac121db5eb44214530121ab14cba2f3?hp=39d3000402d5c9419868be3cbd93b9093e5bf8a5 File name procedure modified. --- diff --git a/fb2_process.py b/fb2_process.py index d8c01c1..00ef213 100755 --- a/fb2_process.py +++ b/fb2_process.py @@ -42,7 +42,7 @@ class MetaData: self.sort_title = db.SortName(self.title).replace(' ','_'); self.sort_author = db.SortAuthorName(self.author).replace(' ','_'); self.path = ("%s/%s/%s/%s/%s (%d)" % (self.sort_author[0],self.sort_author[0:2],self.sort_author[0:4],self.sort_author[0:32],self.sort_title[0:64],self.book_id)) - self.dataname = (self.title.decode('utf-8')[0:64]+' '+self.author.decode('utf-8')[0:32]).replace('/','') + self.dataname = (self.title.decode('utf-8')[0:64]+' -- '+self.author.decode('utf-8')[0:32]).replace('/','') def __init__(self,meta_dict,size):