fixed a player bug and added more settings
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -83,7 +83,7 @@ class Player:
|
|||||||
self.current_playing_pos += 1
|
self.current_playing_pos += 1
|
||||||
mx.music.load(self.current_playing)
|
mx.music.load(self.current_playing)
|
||||||
mx.music.play()
|
mx.music.play()
|
||||||
self.__recent_change = 1000000
|
self.__recent_change = 20
|
||||||
self.infoupdater()
|
self.infoupdater()
|
||||||
|
|
||||||
elif other.value == 2:
|
elif other.value == 2:
|
||||||
@@ -93,7 +93,7 @@ class Player:
|
|||||||
other.value = 0
|
other.value = 0
|
||||||
|
|
||||||
elif other.value == 3:
|
elif other.value == 3:
|
||||||
self.__recent_change = 1000000
|
self.__recent_change = 20
|
||||||
other.value = 0
|
other.value = 0
|
||||||
|
|
||||||
elif other.value == 4:
|
elif other.value == 4:
|
||||||
@@ -109,7 +109,7 @@ class Player:
|
|||||||
self.current_playing = self.playlist.pop(0)
|
self.current_playing = self.playlist.pop(0)
|
||||||
mx.music.load(self.current_playing)
|
mx.music.load(self.current_playing)
|
||||||
mx.music.play()
|
mx.music.play()
|
||||||
self.__recent_change = 10000000
|
self.__recent_change = 20
|
||||||
self.infoupdater()
|
self.infoupdater()
|
||||||
else:
|
else:
|
||||||
if inst.value == 1:
|
if inst.value == 1:
|
||||||
@@ -119,20 +119,23 @@ class Player:
|
|||||||
# Main event-checking part
|
# Main event-checking part
|
||||||
if mx.music.get_busy() is False and inst.value == 1 and self.__recent_change == 0:
|
if mx.music.get_busy() is False and inst.value == 1 and self.__recent_change == 0:
|
||||||
mx.music.unload()
|
mx.music.unload()
|
||||||
if config["Playback"]["loopPlayback"] == "0":
|
print("stopped playing")
|
||||||
|
if config["Playback"]["autoplay"] == "0":
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
print("playing next song")
|
||||||
if len(self.playlist) > 0:
|
if len(self.playlist) > 0:
|
||||||
pass
|
pass
|
||||||
else:
|
elif config["Playback"]["loopPlayback"] == "1":
|
||||||
self.playlist = copy.deepcopy(self.playlist_backup)
|
self.playlist = copy.deepcopy(self.playlist_backup)
|
||||||
self.current_playing_pos = -1
|
self.current_playing_pos = -1
|
||||||
|
else:
|
||||||
|
pass
|
||||||
self.current_playing = self.playlist.pop(0)
|
self.current_playing = self.playlist.pop(0)
|
||||||
self.current_playing_pos += 1
|
self.current_playing_pos += 1
|
||||||
mx.music.load(self.current_playing)
|
mx.music.load(self.current_playing)
|
||||||
mx.music.play()
|
mx.music.play()
|
||||||
self.__recent_change = 10000000
|
self.__recent_change = 20
|
||||||
self.infoupdater()
|
self.infoupdater()
|
||||||
else:
|
else:
|
||||||
pass
|
time.sleep(0.2)
|
||||||
time.sleep(0.2)
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ launchMaximized = True
|
|||||||
[Playback]
|
[Playback]
|
||||||
# Choose if you want the playback to loop at the end (1 for True, 0 for False)
|
# Choose if you want the playback to loop at the end (1 for True, 0 for False)
|
||||||
loopPlayback = 1
|
loopPlayback = 1
|
||||||
|
autoplay = 1
|
||||||
|
|
||||||
[Security]
|
[Security]
|
||||||
# Specifies if a password should be used for exiting the fullscreen mode on the showcase screen
|
# Specifies if a password should be used for exiting the fullscreen mode on the showcase screen
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
0
|
1
|
||||||
Lupus Nocte - Hadouken (Royalty Free Music).mp3,Minecraft OST - Pigstep.mp3,The Day You Went Away.mp3,sha la la.mp3
|
18-bye-have-a-great-time.mp3,Applause Wav Sound Effects.mp3,Big_Explosion_Cut_Off.mp3,Big_Explosion_Distant.mp3,Big_Explosion_Sweeping_In.mp3,Bruh Sound Effect.mp3,Bullet_hit_car.mp3,Explosion_Hiss_Bop_Bang.mp3,JUST DO IT Sound Effect.mp3,Long_Rifle_Shots.mp3,M4_Shots.mp3,Strong_Punch-Mike_Koenig-574430706.mp3,are-you-sure-about-that.mp3,bass-boost_mD5uYk1.mp3,bye_imPxcXs.mp3,byebye_v3Dt9ad.mp3,engineer_no01.mp3,hellothere_uIgLvnP.mp3,minion_laughing.mp3,nooo.swf.mp3,obi-wan-hello-there.mp3,oh_no_1.mp3,risitas.mp3,well-be-right-back.mp3
|
||||||
163.7987518310547
|
8.150203704833984
|
||||||
|
|||||||
|
@@ -1 +1 @@
|
|||||||
/mnt/storage/SORTED/Music
|
/mnt/storage/SORTED/Music/Videos/Memes + Soundeffect/
|
||||||
|
|||||||
|
Reference in New Issue
Block a user