- August 29, 2009
- 1,730
- 1,124
- Home Country
- Netherlands
Hi,
Currently the Schedule.Directory property is never used. I think it would be nice to use this property when creating recording filenames, so that later on plugins can set the directory in which recorded programs are saved. I personally want to use it because my EPG data isn't always complete or correct and now everything is saved in the wrong folder. Patch is against 1.1.2, but should apply cleanly to trunk, and I'm using it for two weeks now without problems.
Currently the Schedule.Directory property is never used. I think it would be nice to use this property when creating recording filenames, so that later on plugins can set the directory in which recorded programs are saved. I personally want to use it because my EPG data isn't always complete or correct and now everything is saved in the wrong folder. Patch is against 1.1.2, but should apply cleanly to trunk, and I'm using it for two weeks now without problems.
Code:
Index: TvEngine3/TVLibrary/TvService/Scheduler/RecordingDetail.cs
===================================================================
--- TvEngine3/TVLibrary/TvService/Scheduler/RecordingDetail.cs (revision 27069)
+++ TvEngine3/TVLibrary/TvService/Scheduler/RecordingDetail.cs (working copy)
@@ -305,6 +305,9 @@
else
fileName = strInput.Trim();
+ /* Prepend Schedule.Directory property */
+ if (Schedule.Directory != string.Empty)
+ subDirectory = Schedule.Directory + '\\' + subDirectory;
if (subDirectory != string.Empty)
{