Looking at the current year's program, the time slots that have a description are separated from the time interval by a -. Would it be possible to modify the time slot regex to accommodate this too?
@mmu_man, Thanks for the patch!
Looking at the [current year's program](https://www.libreplanet.org/2018/program/), the time slots that have a description are separated from the time interval by a `-`. Would it be possible to modify the time slot regex to accommodate this too?
Something like this:
```python
self.timeslot_re = re.compile(r'(\d+:\d+).+?(\d+:\d+)'
r'\s*[:-]?\s*(.+\b)?')
```
will work.
This seems to fix the ical generation.
@mmu_man, Thanks for the patch!
Looking at the current year's program, the time slots that have a description are separated from the time interval by a
-
. Would it be possible to modify the time slot regex to accommodate this too?Something like this:
will work.
The current regex will match anyway, but will eat the - as part of the name field, which is not used. Yeah the one you propose should work.
@mmu_man, Merged your patch and made some minor tweaks. Thanks again!