3 |
|
|
4 |
''' |
''' |
5 |
Todic plugin for XBMC |
Todic plugin for XBMC |
6 |
Version 0.0.19 |
Version 0.0.20 |
7 |
''' |
''' |
8 |
|
|
9 |
import sys |
import sys |
265 |
thumb = getText(entry.getElementsByTagName("cover")) |
thumb = getText(entry.getElementsByTagName("cover")) |
266 |
description = getText(entry.getElementsByTagName("description")) |
description = getText(entry.getElementsByTagName("description")) |
267 |
playcount = getText(entry.getElementsByTagName("playcount")) |
playcount = getText(entry.getElementsByTagName("playcount")) |
268 |
|
pos = getText(entry.getElementsByTagName("pos")) |
269 |
|
|
270 |
|
|
271 |
if playcount == '': |
if playcount == '': |
272 |
playcount = '0' |
playcount = '0' |
290 |
description = description.encode('UTF-8') |
description = description.encode('UTF-8') |
291 |
|
|
292 |
u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote( |
u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote( |
293 |
name) + "&url=" + urllib.quote(url) + "&description=" + urllib.quote(description) |
name) + "&url=" + urllib.quote(url) + "&description=" + urllib.quote(description) + "&pos=" + pos |
294 |
xbmcplugin.addDirectoryItem( |
xbmcplugin.addDirectoryItem( |
295 |
handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=folder, totalItems=l) |
handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=folder, totalItems=l) |
296 |
|
|
456 |
description = None |
description = None |
457 |
pos = 0 |
pos = 0 |
458 |
|
|
459 |
|
#print params |
460 |
|
|
461 |
try: |
try: |
462 |
url = urllib.unquote_plus(params["url"]) |
url = urllib.unquote_plus(params["url"]) |
463 |
except: |
except: |
475 |
except: |
except: |
476 |
pass |
pass |
477 |
|
|
478 |
|
|
479 |
|
|
480 |
try: |
try: |
481 |
pos = int(params["pos"]) |
pos = int(params["pos"]) |
482 |
except: |
except: |