-
Notifications
You must be signed in to change notification settings - Fork 37
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
Show same video in consecutive runs #19
base: master
Are you sure you want to change the base?
Conversation
It is just not possible for a (natural-)number to be gt 19 and lt 7 at the same time. ;-)
Fix night/day-bug
Add links to the videos-1080/4k aur pkgs
Fix small error on download paths (2K)
|
there is a race condition - script is launched for all screens and before any manages to pick the video, the other has already checked the |
I'm still getting different images on multiple screens occasionally (about every 30 runs). |
Whole thing now works like this:
|
It is still possible that different videos will be picked on multiple screens but the chance is pretty small. |
I have tested this on a dual monitor setup and I always didn't get a single case of different videos in about 100 runs. |
If the script is killed and the lock is left in place it expires in 3 seconds. So theoretically there could be a 3-second freeze in the following scenario:
Second run of the script would wait 3 seconds and then continue normally. |
0daf1fb
to
8a73dbb
Compare
I am currently using this. Thanks for sharing. |
Solves: #6
Goal:
Last used video is saved to
$XDG_CONFIG_HOME/.atv4-previous[-4k]
.If
$XDG_CONFIG_HOME/.atv4-previous[-4k]
was edited during the last 30 seconds then video from the previous run is used.Otherwise, video is picked as usual.
I'm wondering if
date
is available everywhere. Especially the-r
option.