chill wrote:
> That's true, and it would be neater to have the same modification date
> on both ogg and flac. So your script then checks for the *same*
> date/time - not earlier, not later?
>
yes
>
> Not sure yet how to check for *equal* times. I read that '-nt' is true
> when the first file is newer than the second, or when the first file
> exists and the second doesn't (and in either case I'd want to recreate
> the ogg file), but I also read that it's true when the times match (in
> which case I would not want to recreate the ogg). I need to do some
> tests of -nt and -ot to see which combination would work for me.
Use this test:
Code:
--------------------
[ `stat --printf="%Y" $FILE1` -eq `stat --printf="%Y" $FILE2` ]
--------------------
SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=110496
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping