Re: Add pre-scan task?

AF1 <AF1.ahsmk0-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Thu, 24 Mar 2022 13:29:09 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
mherger wrote: 
> How are you planning to do the backup?
The createBackup function from the example above calls a function in
plugin.pm that will read some values from the LMS databases (library and
persistent) and write them to a file.

mherger wrote: 
> You'll have to handle this, to make sure the rest of the scanner doesn't
> 
> crash.
So one way to do that would be...? 

Code:
--------------------
    eval { createBackup(); }
--------------------


and if it returns an error, it wouldn't crash the scanner?



*Plugin repositories:* 'Ratings Light'
(https://github.com/AF-1/lms-ratingslight) •••• 'Visual Statistics'
(https://github.com/AF-1/lms-visualstatistics) •••• 'Use Comment Tag
Info' (https://github.com/AF-1/lms-usecommenttaginfo) •••• 'Dynamic
Playlists 3 FAQ' (https://github.com/AF-1/lms-dynamicplaylists#faq) ••••
'Custom Skip 3 FAQ' (https://github.com/AF-1/lms-customskip#faq)
------------------------------------------------------------------------
AF1's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=116160

_______________________________________________
developers mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/developers