mirror of
https://github.com/Pecusx/piradio-mini.git
synced 2026-05-20 22:33:44 +02:00
Fix for fast display new description after new track (in Pandora player)
This commit is contained in:
+2
-4
@@ -156,7 +156,6 @@ class Radio:
|
|||||||
current_file = "" # Currently playing track or station
|
current_file = "" # Currently playing track or station
|
||||||
option_changed = False # Option changed
|
option_changed = False # Option changed
|
||||||
channelChanged = True # Used to display title
|
channelChanged = True # Used to display title
|
||||||
tuneChanged = True # zmienil sie utwor, wymusic aktualizacje wyswietlacza jesli sie uda
|
|
||||||
configOK = False # Do we have a configuration file
|
configOK = False # Do we have a configuration file
|
||||||
display_playlist_number = False # Display playlist number
|
display_playlist_number = False # Display playlist number
|
||||||
|
|
||||||
@@ -1648,8 +1647,7 @@ class Radio:
|
|||||||
x = self.pianobar.expect(['\r\n', pexpect.TIMEOUT])
|
x = self.pianobar.expect(['\r\n', pexpect.TIMEOUT])
|
||||||
if x == 0: # Artist - Title - from: "Album"
|
if x == 0: # Artist - Title - from: "Album"
|
||||||
self.pandora_song_name = self.pianobar.before
|
self.pandora_song_name = self.pianobar.before
|
||||||
self.tuneChanged = True # moze to jakos oprogramowac ????
|
self.setInterrupt() # A to dziala !!!
|
||||||
self.channelChanged = True # A moze tak zadziala
|
|
||||||
elif x == 1:
|
elif x == 1:
|
||||||
# 'STATION: '
|
# 'STATION: '
|
||||||
x = self.pianobar.expect([' \| ', pexpect.TIMEOUT])
|
x = self.pianobar.expect([' \| ', pexpect.TIMEOUT])
|
||||||
@@ -1659,7 +1657,7 @@ class Radio:
|
|||||||
# wisi na odpytywaniu o kolejne utwory ???
|
# wisi na odpytywaniu o kolejne utwory ???
|
||||||
# to sie pianobarowi przytrafia zbyt czesto
|
# to sie pianobarowi przytrafia zbyt czesto
|
||||||
# jak wisi, to trzeba ponownie odpalic stacje
|
# jak wisi, to trzeba ponownie odpalic stacje
|
||||||
x = self.pianobar.expect(['Ok.', 'Error: ', pexpect.TIMEOUT], timeout=5) # czekamy 5s. na Ok, moze sie uda zaladowac, a moze komunikat bledu jest
|
x = self.pianobar.expect(['Ok.', 'Error: ', pexpect.TIMEOUT], timeout=4) # czekamy 4s. na Ok, moze sie uda zaladowac, a moze komunikat bledu jest
|
||||||
if x == 2:
|
if x == 2:
|
||||||
# nie udalo sie - restart
|
# nie udalo sie - restart
|
||||||
self.pandora_stop()
|
self.pandora_stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user