Skip to content
Browse files

fix resolving of playlists with case sensitive playlist-URLSs which h…

…ave at least one capital character
  • Loading branch information...
1 parent 406904b commit 34d6ec26b3030d4e048825c2826f1a71ec9e504a @dersphere committed Dec 27, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 resources/lib/api.py
View
5 resources/lib/api.py
@@ -143,15 +143,14 @@ def __api_call(self, path, param=None):
def __resolve_playlist(self, stream_url):
self.log('__resolve_playlist started with stream_url=%s'
% stream_url)
- stream_url = stream_url.lower()
- if stream_url.endswith('m3u'):
+ if stream_url.lower().endswith('m3u'):
response = self.__urlopen(stream_url)
self.log('__resolve_playlist found .m3u file')
for line in response.splitlines():
if line and not line.strip().startswith('#'):
stream_url = line.strip()
break
- elif stream_url.endswith('pls'):
+ elif stream_url.lower().endswith('pls'):
response = self.__urlopen(stream_url)
self.log('__resolve_playlist found .pls file')
for line in response.splitlines():

0 comments on commit 34d6ec2

Please sign in to comment.
Something went wrong with that request. Please try again.