Feb-16-2021, 09:55 PM
OK,so I have tried dozens of different avenues to loop through a tuple, no success.
I have been able to write the tuple files to a file called mplaylist.e3u
However, now I can not find any coding or explanation which shows how to play a playlist from within python.
What I have now is:
I have been able to write the tuple files to a file called mplaylist.e3u
However, now I can not find any coding or explanation which shows how to play a playlist from within python.
What I have now is:
import mpv player = mpv.MPV(ytdl=True,input_default_bindings=True,input_vo_keyboard=True,osc=True) def ViewFile(): files_list = WidgetFrame.files_list # loop through files with open( 'mPlaylist.u3e', 'w+' ) as playlist: for f in files_list: print(f) playlist.write( f + '\n' ) player.play("mPlylist.u3e") player.wait_for_playback playlist.close()ANY suggestions would be greatly appreciated