chill wrote: 
> 
> 
> > 
Code:
--------------------
  >   > 
  > intime=$(stat -c"%Y" "$infile")
  > outtime=$(stat -c"%Y" "$outfile")
  > 
  > if [ ! -f "$outfile" ] || [ "$intime" -ne "$outtime" ]; then 
--------------------
> > 
> 
> I can probably do without the '! -f "outfile"' check because outtime
> will be empty if outfile doesn't exist - I'll do some further
> checking.
> 


Code:
--------------------
    
  outtime=$(stat -c"%Y" "$outfile") && intime=$(stat -c"%Y" "$infile")
  if [ -n "$outtime" ] && [ "$intime" -ne "$outtime" ]; then 
  
--------------------

will reduce file accesses.



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

Reply via email to