Skip to content

Commit

Permalink
fix roomname
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleme committed Feb 10, 2021
1 parent 905d2fc commit ebee537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vi/chatparser/chatparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def addFile(self, path):
lines = None
content = ""
filename = os.path.basename(path)
roomname = filename[:-20].lower()
roomname = filename[:-31].lower()
try:
with open(path, "r", encoding='utf-16-le') as f:
content = f.read()
Expand Down Expand Up @@ -219,7 +219,7 @@ def fileModified(self, path):
# Checking if we must do anything with the changed file.
# We only need those which name is in the rooms-list
# EvE names the file like room_20140913_200737.txt, so we don't need
# the last 20 chars
# the last 31 chars
filename = os.path.basename(path)
roomname = filename[:-31].lower()
if path not in self.fileData:
Expand Down

0 comments on commit ebee537

Please sign in to comment.