Skip to content

Commit

Permalink
fix genre ampersand error
Browse files Browse the repository at this point in the history
  • Loading branch information
edit4ever committed May 23, 2021
1 parent 0367ca3 commit 08ae865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap2epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def printEpisodes(fh):
if edict['epfilter'] is not None and edict['epgenres'] is not None:
genreNewList = genreSort(edict['epfilter'], edict['epgenres'])
for genre in genreNewList:
fh.write("\t\t<category lang=\"" + lang + "\">" + genre + "</category>\n")
fh.write("\t\t<category lang=\"" + lang + "\">" + re.sub('&','&amp;', genre) + "</category>\n")
fh.write("\t</programme>\n")
episodeCount += 1
except Exception as e:
Expand Down

0 comments on commit 08ae865

Please sign in to comment.