File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
2
<addon id =" script.module.zap2xml"
3
3
name =" zap2xml"
4
- version =" 0.5.0 "
4
+ version =" 0.5.5 "
5
5
provider-name =" edit4ever" >
6
6
<requires >
7
7
<import addon =" xbmc.python" version =" 2.1.0" />
8
8
<import addon =" script.module.mechanize" version =" 0.2.6" />
9
+ <import addon =" script.module.beautifulsoup" version =" 3.2.1" />
9
10
</requires >
10
11
<extension point =" xbmc.python.script" library =" default.py" >
11
12
<provides ></provides >
Original file line number Diff line number Diff line change 23
23
import datetime
24
24
import ast
25
25
26
+ sys .path .append ('/storage/.kodi/addons/script.module.beautifulsoup/lib' )
27
+ from BeautifulSoup import BeautifulStoneSoup
28
+
26
29
"""
27
30
import requests
28
31
from requests.auth import HTTPBasicAuth
@@ -1566,7 +1569,9 @@ def makeDescsortList(optList):
1566
1569
epis = enc (program ['episode' ])
1567
1570
episqts = '\" ' + enc (program ['episode' ]) + '\" '
1568
1571
if 'description' in program :
1569
- plot = enc (program ['description' ])
1572
+ plot = program ['description' ]
1573
+ plot = unicode (BeautifulStoneSoup (plot , convertEntities = BeautifulStoneSoup .ALL_ENTITIES ))
1574
+ plot = enc (plot )
1570
1575
if "-V" in options :
1571
1576
optList = ast .literal_eval (options ["-V" ])
1572
1577
descsort = " " .join (makeDescsortList (optList ))
You can’t perform that action at this time.
0 commit comments