Have you tried debugging with pdb? I'd put a breakpoint where the code stops the player, then step through it from there. If you're not familiar with that technique it would be helpful for you to understand the difference between the debugger commands 'next' and 'step'.
Let us know how you get on. -- Linux Tips: https://www.tiger-computing.co.uk/category/techtips/ -- Next meeting: Online, Jitsi, Tuesday, 2021-03-02 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:email@example.com