mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Rename ILIAS crawler to ilias
To be consistent with the other classes' capitalisation of acronyms
This commit is contained in:
parent
0891e7f1bc
commit
ae6cc40fb5
@ -9,10 +9,10 @@ import bs4
|
||||
from .ilias_authenticators import ShibbolethAuthenticator
|
||||
from .organizer import Organizer
|
||||
|
||||
__all__ = ["ILIAS"]
|
||||
__all__ = ["Ilias"]
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class ILIAS:
|
||||
class Ilias:
|
||||
FILE_RE = re.compile(r"goto\.php\?target=(file_\d+_download)")
|
||||
DIR_RE = re.compile(r"ilias\.php\?ref_id=(\d+)")
|
||||
|
||||
@ -22,7 +22,7 @@ class ILIAS:
|
||||
self._auth = ShibbolethAuthenticator(base_path / cookie_file)
|
||||
|
||||
def synchronize(self, ref_id, to_dir, transform=lambda x: x, filter=lambda x: True):
|
||||
logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the ILIAS synchronizer.")
|
||||
logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the Ilias synchronizer.")
|
||||
|
||||
sync_path = pathlib.Path(self.base_path, to_dir)
|
||||
orga = Organizer(self.base_path, sync_path)
|
||||
|
@ -295,7 +295,7 @@ def main(args):
|
||||
args = [arg.lower() for arg in args]
|
||||
|
||||
ffm = PFERD.FfM(base_dir)
|
||||
ilias = PFERD.ILIAS(base_dir, "cookie_jar")
|
||||
ilias = PFERD.Ilias(base_dir, "cookie_jar")
|
||||
norbert = PFERD.Norbert(base_dir)
|
||||
|
||||
# Semester 1
|
||||
|
Loading…
Reference in New Issue
Block a user