Remove colon-in-path conditional fix

This commit is contained in:
Keith Edmunds 2023-03-10 23:11:23 +00:00
parent ad071bb74b
commit d54f1bedda
2 changed files with 2 additions and 6 deletions

View File

@ -10,7 +10,6 @@ class Config(object):
CART_DIRECTORY = "/home/kae/radio/CartTracks"
CARTS_COUNT = 10
CARTS_HIDE = True
COLON_IN_PATH_FIX = True
COLOUR_BITRATE_LOW = "#ffcdd2"
COLOUR_BITRATE_MEDIUM = "#ffeb6f"
COLOUR_BITRATE_OK = "#dcedc8"

View File

@ -107,11 +107,8 @@ class Music:
status = -1
if Config.COLON_IN_PATH_FIX:
media = self.VLC.media_new_path(path)
self.player = media.player_new_from_media()
else:
self.player = self.VLC.media_player_new(path)
media = self.VLC.media_new_path(path)
self.player = media.player_new_from_media()
if self.player:
self.player.audio_set_volume(self.max_volume)
status = self.player.play()