summaryrefslogtreecommitdiff
path: root/bin/nvm
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nvm')
-rwxr-xr-xbin/nvm3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nvm b/bin/nvm
index 42a923a..51022cc 100755
--- a/bin/nvm
+++ b/bin/nvm
@@ -430,7 +430,8 @@ class Line:
self.name = self.name[3:]
self.css_class = "bus"
- self.productName = obj.get("productName", 0)
+ if not "productName" in obj and " " in self.name:
+ self.productName = self.name.split(" ")[0]
if "fahrtNr" in obj:
self.fahrtNr = int(self.fahrtNr)
else: