2014-04-25, 20:10
(2014-04-25, 20:07)ratzofftoya Wrote: Hey all,
Love this script, and use it primarily for creating library items from PlayOn. I have it set up to run every 4 hours, and have my XBMC client constantly open. This is also on the same machine as my PlayOn server, but my actual library folders are on a NAS. When I run it manually (by double-clicking on the script), it works completely flawlessly. However, when running through Windows Task Scheduler, it doesn't seem to work, or at least not every time. My .info file shows the following for each and every media file:
4/25/2014 06:11:48 AM INFO Archiving Creating base TV Shows directory at: \\NASTY\Video\Streams\TV Shows
04/25/2014 06:11:48 AM INFO Archiving Creating base TV Shows directory at: \\NASTY\Video\Streams\TV Shows
04/25/2014 06:11:48 AM WARN Archiving Creating shortcut failed: \\NASTY\Video\Streams\TV Shows\30.Rock\Season.1\S01E02 - The Aftermath.strm (The parameter is incorrect)
java.io.FileNotFoundException: \\NASTY\Video\Streams\TV Shows\30.Rock\Season.1\S01E02 - The Aftermath.strm (The parameter is incorrect)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(Unknown Source)
java.io.FileOutputStream.<init>(Unknown Source)
java.io.FileWriter.<init>(Unknown Source)
com.bradvido.mylibrary.util.tools.createStrmFile(tools.java:98)
com.bradvido.mylibrary.util.Archiver.archiveFileInDropbox(Archiver.java:518)
com.bradvido.mylibrary.util.Archiver.archiveVideo(Archiver.java:288)
com.bradvido.mylibrary.util.Archiver.run(Archiver.java:129)
java.lang.Thread.run(Unknown Source)
04/25/2014 06:11:48 AM WARN Archiving Failed to Update video at:\\NASTY\Video\Streams\TV Shows\30.Rock\Season.1\S01E02 - The Aftermath.strm(Netflix/My List/30 Rock/30 Rock: Season 1/S01E02 - The Aftermath)
you need to provide the proper windows credential for the task scheduler. The account used to run the task probably doesnt have permission to access network resources