Skip to content

Commit

Permalink
Version 2.0.2
Browse files Browse the repository at this point in the history
* Case sensitivity in playlist attributes fix (#90)
* Slash symbol in group title fix (#92)
  • Loading branch information
Cigaras committed Mar 6, 2017
1 parent acd4c54 commit 61153dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# Version 2.0.1
# Version 2.0.2

from m3u_parser import LoadPlaylist, PlaylistReloader
from xmltv_parser import GuideReloader
Expand Down Expand Up @@ -92,7 +92,7 @@ def MainMenu():
return ListItems(unicode(L('All')))

####################################################################################################
@route(PREFIX + '/listitems/{group}', page = int)
@route(PREFIX + '/listitems', page = int)
def ListItems(group, page = 1):

if not Dict['streams']:
Expand Down
6 changes: 3 additions & 3 deletions Contents/Code/m3u_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ def DecodeURIComponent(uri):
####################################################################################################
def GetAttribute(text, attribute, delimiter1 = '="', delimiter2 = '"', default = ''):

x = text.find(attribute)
x = text.lower().find(attribute.lower())
if x > -1:
y = text.find(delimiter1, x + len(attribute)) + len(delimiter1)
z = text.find(delimiter2, y) if delimiter2 else len(text)
y = text.lower().find(delimiter1.lower(), x + len(attribute)) + len(delimiter1)
z = text.lower().find(delimiter2.lower(), y) if delimiter2 else len(text)
if z == -1:
z = len(text)
return unicode(text[y:z].strip())
Expand Down

0 comments on commit 61153dd

Please sign in to comment.