TomWhitwell / SlowMovie

MIT License
345 stars 69 forks source link

Reset whats playing #157

Open wobblewoo opened 9 months ago

wobblewoo commented 9 months ago

Hello

Love this project but i have a question

Is there any way to reset what's playing so that it starts from the beginning each time its turned off?

I can see a 'nowPlaying' file which doesn't seem to do anything although it does contain the name of a file - but not the one that's currently playing.

I can also see a 'progress' folder, but again this doesn't do much if i edit the files in there.

Many thanks

W

robweber commented 9 months ago

What arguments are you using to start the program? That might help narrow things down.

Based on a quick glance in the code I think using --start 0 would do what you're asking. The conditional seems to indicate that at startup the --start arg will override any previous progress stored in the progress file. If you're playing from a directory you may also need to clear out the nowPlaying file to restart at the top of the directory.

I didn't test any of this but shouldn't be too hard to give it a try.