Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
Version 1.2.0 - fixed sopcast-type listings
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Dec 20, 2014
1 parent 43acd5f commit 3e7aa3a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.video.p2p-streams/addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.p2p-streams"
name="p2p-streams"
version="1.1.9"
version="1.2.0"
provider-name="enen92,fightnight">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
Expand Down
3 changes: 3 additions & 0 deletions plugin.video.p2p-streams/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
===== Stable Versions ========
[B]v1.2.0 (20/12/2014)[/B]
-Fixed sopcast-type lists (added a few exceptions)

[B]v1.1.9 (13/12/2014)[/B]
-Updated Android internal acestreamengine (and external apps) to v3.0.6 (Android L compatible)
-Updated Linux x64 ace engine to v.3.0.5.1
Expand Down
11 changes: 9 additions & 2 deletions plugin.video.p2p-streams/resources/core/livestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,15 @@ def get_channels(name,url):
channels = group.findall('.//channel')
for channel in channels:
try:
title = channel.find('.//name').attrib['en'].encode('utf-8')
if not title: title = channel.find('.//name').attrib['cn'].encode('utf-8')
try:
title = channel.find('.//name').attrib['en'].encode('utf-8')
except: title = ''
if not title:
try: title = channel.find('.//name').attrib['cn'].encode('utf-8')
except: title = ''
if not title:
try: title = channel.find('.//name').text
except: title = ''
tipo = channel.find('.//stream_type').text
sop_address = channel.find('.//item').text
if not tipo: tipo = "N/A"
Expand Down

0 comments on commit 3e7aa3a

Please sign in to comment.