Skip to content

Commit 930c972

Browse files
committed
Fix ampersand and apostrophe issue
1 parent 3e0d99d commit 930c972

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="script.module.zap2xml"
33
name="zap2xml"
4-
version="0.6.5"
4+
version="0.6.6"
55
provider-name="edit4ever">
66
<requires>
77
<import addon="xbmc.python" version="2.1.0"/>

bin/tv_grab_zap2xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ do case "$1" in
5151
;;
5252

5353
-v | --version )
54-
printf "0.6.5\n"
54+
printf "0.6.6\n"
5555
;;
5656

5757
-c | --capabilities )

default.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
import xbmcgui
2121

2222
dialog = xbmcgui.Dialog()
23-
dialog.ok('', 'This is addon runs from within Tvheadend')
23+
if dialog.yesno('This is addon runs from within Tvheadend', 'Add your zap2it/screener/tvguide login info in the addon configuration. Reboot and setup the grabber in tvheadend before enabling the other options.'):
24+
xbmc.executebuiltin(Addon.OpenSettings())

zap2xml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,9 +1252,9 @@ def enc(strng):
12521252
if "-E" not in options:
12531253
t = unicode(BeautifulStoneSoup(t, convertEntities=BeautifulStoneSoup.ALL_ENTITIES))
12541254
t = re.sub("&#160;\'","\'",t) #needed to fix screener guide listing error - &#039;
1255-
t = re.sub("&","&amp;",t)
1255+
# t = re.sub("&","&amp;",t)
12561256
t = re.sub("\"","&quot;",t)
1257-
t = re.sub("\'","&apos;",t)
1257+
# t = re.sub("\'","&apos;",t)
12581258
t = re.sub("<","&lt;",t)
12591259
t = re.sub(">","&gt;",t)
12601260
t = re.sub("``","&quot;",t) #needed to fix screener guide listing errors

0 commit comments

Comments
 (0)