edit4ever / script.module.zap2epg

zap2epg - EPG grabber for USA/Canada
GNU General Public License v3.0
41 stars 25 forks source link

Uninitialized variable in printStation()? #41

Closed crwolff closed 2 years ago

crwolff commented 2 years ago

On the python3 branch, line 286 refers to xcfcc, but it isn't set in the elif clause. Line 285 is setting xchnum instead.

284                elif 'chfcc' in scheduleSort[station]:
285                    xchnum = scheduleSort[station]['chfcc']
286                    fh.write('\t\t<display-name>' + re.sub('&','&amp;',xcfcc) + '</display-name>\n')
edit4ever commented 2 years ago

Good catch on old typo!

Fixed with latest commit.