Skip to content

Commit ffac3bb

Browse files
committed
implemented #28 switching videotext programs.
1 parent 51e41a3 commit ffac3bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

getVideoText.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def start():
4848
userWhichVideotext = "Welchen Sendetext möchten Sie aufrufen?\n[ Beispiele: ]\n"
4949
station = input(userWhichVideotext + tellAvailableStations + "\n...:")
5050
#
51+
# switch to chosen station.
5152
if station.lower() in VTextStatus.aliasesErste:
5253
VTextStatus.textNews = ARDText(VTextStatus.page)
5354
elif station.lower() in VTextStatus.aliasesNdr:
@@ -100,6 +101,9 @@ def browsePage():
100101
continue
101102
if newpage == "":
102103
continue
104+
if newpage == "#":
105+
VTextStatus.start()
106+
continue
103107
if VTextStatus.hasrun and (newpage == "."):
104108
printAndSay("Seite wird neu geladen")
105109
VTextStatus.browsePage()

0 commit comments

Comments
 (0)