-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
playing.txt will not deleted after track is done #117
Comments
Hi @zxa can you make sense of this? |
Hi @MiczFlor i wanted to replace that code anyway with something like i outlined in #94 as there are also other circumstances that code fails. But before, i finish a feature i'm personally needing the most (track selection via web app). |
Hi @zxa Now I see. Sorry for the confusion. That's what happens when you merge from a hiking trail during holidays on your mobile... |
I'll have a look on that. Seems there is a wrong check. @zxa is there a timeframe for your new implementation? |
With a deeper look in the code there is no need of the playing.txt file any more: So "mpc lsplaylists" is not accidentally limited to the actual playlist. |
Struggling around with the status of the player I figured out some issues with the order of the script parts. |
Fix with #125 please check and close if ok |
Hi @Raspfarbend @Luegengladiator |
The PR introduces a new problem:
I'm no software professional with only limited self taught coding knowledge, so i wonder if it's good coding practice to set a flag in line 354 and then to check for it in line 357 (the negation makes it even harder to read) to only execute one line of code which could also be in line 354.
|
Quick question: what's the desired behaviour and what is the problem at the moment - from the users perspective. I didn't yet understand the issue and thought it will solve itself :) |
@zxa yes you are right. If Player is running the playlist is always the same so you have to swipe twice on playlistswitch. |
To remove the issue @zxa mentioned I moved the status check to the beginning of rfid_trigger_play.sh and checking the playlist if status is playing: if mpc status | awk 'NR==2' | grep playing > /dev/null; I tested the behaviour and it seems to work now. I'm not able to work on the code directly. Should I open a PR again? |
Hi Creating these vars, which might also help to solve this issue?
|
Tested the fix the hole day now. Seems to work. |
I haven't tried yet, but I assume it should work for most cases. Not sure if it handles "resume play" for all possible cases Haven't been near a Phoniebox yet, but I think it could be as simple as this:
|
Hi @Luegengladiator @Raspfarbend @zxa
I tested back and forth between
But because this is tricky, I believe you will find something and we start from scratch :) |
I am closing this ticket, because of the launch of version 1.0 on master. If you have any issues, please try first if they are still happening on the latest version 1.0. If so, open another ticket, please.
The version 1.0 has not been tested on
Version 1.0 is a major improvement (which will be full of bugs, for sure :) and I want to thank all the contributors and Phoniebox lovers with their input, pictures, bug fixes and suggestions. |
I've recognice a strange behavior. I my case i played a track (playtime 2-3 sec.) and after playtime i want to trigger the track via rfid a secondtime - nothing happens.
Branch pr80-mpd
I short view in the "audiofolders" folders - playing.txt is still existing.
The text was updated successfully, but these errors were encountered: