Skip to content

Commit

Permalink
feat: add dhuhur in recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
serafdev committed Sep 4, 2024
1 parent d42a914 commit 50f8a9f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkg/rec/rec_iqama.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

var (
EveryDay []time.Weekday = []time.Weekday{time.Sunday, time.Monday, time.Tuesday, time.Wednesday, time.Thursday, time.Friday, time.Saturday}
EveryDayButFriday []time.Weekday = []time.Weekday{time.Sunday, time.Monday, time.Tuesday, time.Wednesday, time.Thursday, time.Saturday}
JumuaaRecordDuration time.Duration = 2 * time.Hour
DarsRecordDuration time.Duration = 45 * time.Minute
location string = "America/Montreal"
Expand Down Expand Up @@ -44,25 +45,32 @@ func NewRecordConfigDataS() *RecordConfigDataS {
}

fajr := today.Fajr.Iqama
dhuhur := today.Dhuhr.Iqama
isha := today.Isha.Iqama
todaysData := &[]RecordConfig{
{
Description: "Fajr Recording",
StartTime: fajr,
Duration: DarsRecordDuration,
RecordingDays: EveryDay,
RecordingDays: EveryDayButFriday,
},
{
Description: "Dhuhur Recording",
StartTime: dhuhur,
Duration: DarsRecordDuration,
RecordingDays: EveryDayButFriday,
},
{
Description: "Saturday Dars",
StartTime: time.Date(2024, 1, 1, 17, 0, 0, 0, time.Local),
Duration: 5 * time.Hour,
Duration: 4 * time.Hour,
RecordingDays: []time.Weekday{time.Saturday},
},
{
Description: "Isha Recording",
StartTime: isha,
Duration: DarsRecordDuration,
RecordingDays: EveryDay,
RecordingDays: EveryDayButFriday,
},
}
fullData := append(*rc.data, *todaysData...)
Expand Down

0 comments on commit 50f8a9f

Please sign in to comment.