mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
code cleanup.
moved process_comic_book to static method.
This commit is contained in:
@@ -10,19 +10,10 @@ class Breadcrumb:
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
class DirFile:
|
||||
def __init__(self):
|
||||
self.name = ''
|
||||
self.isdir = False
|
||||
self.icon = ''
|
||||
self.iscb = False
|
||||
self.location = ''
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def generate_breadcrumbs(comic_path):
|
||||
output = [Breadcrumb()]
|
||||
@@ -41,6 +32,18 @@ def generate_breadcrumbs(comic_path):
|
||||
return output
|
||||
|
||||
|
||||
class DirFile:
|
||||
def __init__(self):
|
||||
self.name = ''
|
||||
self.isdir = False
|
||||
self.icon = ''
|
||||
self.iscb = False
|
||||
self.location = ''
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
def generate_directory(base_dir, comic_path):
|
||||
files = []
|
||||
for fn in os.listdir(path.join(base_dir, comic_path)):
|
||||
|
||||
Reference in New Issue
Block a user