Skip to content

Commit

Permalink
fix: summary didnt report correct server
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcenteno committed Dec 10, 2014
1 parent fb84fda commit 5d198e3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def GetLiveGameStreams(game_id, title, isPlaying, summary):
url = URL_LIVESTREAMS % (game_id, TOKEN)
url = url + getServerLocation()

summary = summary + " - Server: " + getServerLocation(False)

json = JSON.ObjectFromURL(url)

quality = Prefs['quality']
Expand All @@ -153,8 +155,8 @@ def GetLiveGameStreams(game_id, title, isPlaying, summary):
hlsUrl = json['nonDVRSD'][0]['src']
rtmpUrl = json['TrueLiveSD'][0]['src']

oc.add(GetStream(hlsUrl, "Regular Stream", hlsUrl, R(ICON), R(ICON), summary, False, "hls"))
oc.add(GetStream(rtmpUrl, "TrueLive Stream", rtmpUrl, R(ICON), R(ICON), summary, False, "rtmp"))
oc.add(GetStream(hlsUrl, "Regular Stream", hlsUrl, R(ICON), R(ART), summary, False, "hls"))
oc.add(GetStream(rtmpUrl, "TrueLive Stream", rtmpUrl, R(ICON), R(ART), summary, False, "rtmp"))

oc.add(PrefsObject(
title=TITLE_PREFERENCES)
Expand Down Expand Up @@ -226,6 +228,8 @@ def OnDemandStreamMenu(game_id, title, logo, arena, summary):
url = URL_ONDEMANDSTREAM % (game_id, TOKEN + serverLocation)
game_json = JSON.ObjectFromURL(url)

summary = summary + " - Server: " + getServerLocation(False)

# Get Prefs
quality = Prefs['quality']

Expand Down Expand Up @@ -536,7 +540,7 @@ def populateVideoArray(videoArr, videoObj, is_live=False):
# Built the title
title = playingMarker + getTeamName(awayTeam) + ligature + getTeamName(homeTeam) + feedType

summary = title + " - " + summary + " - Server: " + getServerLocation(False)
summary = title + " - " + summary

videoArr.append([game_id, title, logo, arena, summary, isPlaying])

Expand Down

0 comments on commit 5d198e3

Please sign in to comment.