Don't forget genres with three parts
Change-Id: Ic0a706df3558b74521e40e1d6d938abf9e571748
diff --git a/nor2tei.py b/nor2tei.py
index 93b9111..693ed4b 100644
--- a/nor2tei.py
+++ b/nor2tei.py
@@ -95,8 +95,11 @@
splitFName = file.split("/")
if (splitFName[-2] in ['Persuasive', 'Blog']):
domain.text = splitFName[-2]
+ elif(splitFName[-4] != "Originaldaten"):
+ domain.text = splitFName[-4] + ':' + splitFName[-3] + ':' + splitFName[-2]
else:
domain.text = splitFName[-3] + ':' + splitFName[-2]
+ domain.text = domain.text.replace("_hobbies", "_Hobbies")
text = ET.SubElement(tei, "text")
text.append(texts[i])