summaryrefslogtreecommitdiff
path: root/recmanager.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-07-19 15:30:41 +0200
committerlouis <louis.braun@gmx.de>2013-07-19 15:30:41 +0200
commit00a2d7bd9ae6e46cae134d45823290c7ea6fec7f (patch)
tree77676a5023e2d4164512d7f687f2849d40823112 /recmanager.c
parent706cf4d8e5784c9078953a4c789fd51c13b690fa (diff)
downloadvdr-plugin-tvguide-00a2d7bd9ae6e46cae134d45823290c7ea6fec7f.tar.gz
vdr-plugin-tvguide-00a2d7bd9ae6e46cae134d45823290c7ea6fec7f.tar.bz2
recording folder also choosable for series timers
Diffstat (limited to 'recmanager.c')
-rw-r--r--recmanager.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/recmanager.c b/recmanager.c
index f744520..b1f21fb 100644
--- a/recmanager.c
+++ b/recmanager.c
@@ -196,7 +196,7 @@ std::vector<TVGuideTimerConflict> cRecManager::CheckTimerConflict(void) {
return results;
}
-cTimer *cRecManager::CreateSeriesTimer(cRecMenu *menu) {
+cTimer *cRecManager::CreateSeriesTimer(cRecMenu *menu, std::string path) {
bool active = menu->GetBoolValue(1);
int channelNumber = menu->GetIntValue(2);
int start = menu->GetIntValue(3);
@@ -209,13 +209,19 @@ cTimer *cRecManager::CreateSeriesTimer(cRecMenu *menu) {
cChannel *channel = Channels.GetByNumber(channelNumber);
cTimer *seriesTimer = new cTimer(false, false, channel);
+ cString fileName = "TITLE EPISODE";
+ if (path.size() > 0) {
+ std::replace(path.begin(), path.end(), '/', '~');
+ fileName = cString::sprintf("%s~%s", path.c_str(), *fileName);
+ }
+
seriesTimer->SetDay(tday);
seriesTimer->SetStart(start);
seriesTimer->SetStop(stop);
seriesTimer->SetPriority(prio);
seriesTimer->SetLifetime(lifetime);
seriesTimer->SetWeekDays(weekdays);
- seriesTimer->SetFile("TITLE EPISODE");
+ seriesTimer->SetFile(*fileName);
if (active)
seriesTimer->SetFlags(tfActive);
else