2023-07-16 16:48:45 +00:00
|
|
|
from .base import Base
|
|
|
|
|
|
|
|
class Atlas(Base):
|
|
|
|
@classmethod
|
|
|
|
def ext(self):
|
|
|
|
return 'atl'
|
|
|
|
|
|
|
|
def define(self):
|
|
|
|
self.total_pages = 0
|
|
|
|
self.seen_pages = 0
|
2024-01-02 05:35:26 +00:00
|
|
|
self.enabled = False
|
2023-07-16 16:48:45 +00:00
|
|
|
|
2023-12-28 18:49:00 +00:00
|
|
|
def f(self, detail=1):
|
|
|
|
r = super().f(detail)
|
|
|
|
if detail >2:
|
2024-01-02 05:35:26 +00:00
|
|
|
if not self.enabled:
|
|
|
|
r += ' OFF'
|
2023-12-28 18:49:00 +00:00
|
|
|
r += f' {self.seen_pages}/{self.total_pages}'
|
|
|
|
return r
|