mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
example_config: Change db transform
This commit is contained in:
parent
bee3d70998
commit
fdff8bc40e
@ -3,8 +3,8 @@ from pathlib import Path, PurePath
|
|||||||
|
|
||||||
from PFERD import Pferd
|
from PFERD import Pferd
|
||||||
from PFERD.logging import enable_logging
|
from PFERD.logging import enable_logging
|
||||||
from PFERD.transform import (attempt, glob, keep, move, move_dir, optionally,
|
from PFERD.transform import (attempt, do, glob, keep, move, move_dir,
|
||||||
re_move)
|
optionally, re_move, re_rename)
|
||||||
|
|
||||||
tf_ss_2020_numerik = attempt(
|
tf_ss_2020_numerik = attempt(
|
||||||
re_move(r"Übungsblätter/(\d+)\. Übungsblatt/.*", "Blätter/Blatt_{1:0>2}.pdf"),
|
re_move(r"Übungsblätter/(\d+)\. Übungsblatt/.*", "Blätter/Blatt_{1:0>2}.pdf"),
|
||||||
@ -14,7 +14,11 @@ tf_ss_2020_numerik = attempt(
|
|||||||
|
|
||||||
tf_ss_2020_db = attempt(
|
tf_ss_2020_db = attempt(
|
||||||
move_dir("Begrüßungsvideo/", "Vorlesung/Videos/"),
|
move_dir("Begrüßungsvideo/", "Vorlesung/Videos/"),
|
||||||
move_dir("Vorlesungsmaterial/Vorlesungsvideos/", "Vorlesung/Videos/"),
|
do(
|
||||||
|
move_dir("Vorlesungsmaterial/Vorlesungsvideos/", "Vorlesung/Videos/"),
|
||||||
|
optionally(re_rename("(.*).m4v.mp4", "{1}.mp4")),
|
||||||
|
optionally(re_rename("(?i)dbs-(.+)", "{1}")),
|
||||||
|
),
|
||||||
move_dir("Vorlesungsmaterial/", "Vorlesung/"),
|
move_dir("Vorlesungsmaterial/", "Vorlesung/"),
|
||||||
keep,
|
keep,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user