Permalink
Browse files

getting rid of length since most videos do not have it

  • Loading branch information...
1 parent 922765d commit c6c3deb0024cbd00a76f2301d91bd78c0af419b4 @maxdemarzi committed Feb 13, 2012
Showing with 9 additions and 3 deletions.
  1. +1 −2 source/appDetailScreen.brs
  2. +8 −1 source/showFeed.brs
@@ -57,7 +57,6 @@ Function showDetailScreen(screen As Object, showList As Object, showIndex as Int
endif
else if msg.isButtonPressed()
print "ButtonPressed"
- print "ButtonPressed"
if msg.GetIndex() = 1
PlayStart = RegRead(showList[showIndex].ContentId)
if PlayStart <> invalid then
@@ -102,7 +101,7 @@ Function refreshShowDetail(screen As Object, showList As Object, showIndex as In
'PrintAA(show)
screen.ClearButtons()
- screen.AddButton(1, "resume playing")
+ 'screen.AddButton(1, "resume playing")
screen.AddButton(2, "play from beginning")
screen.SetContent(show)
screen.Show()
View
@@ -144,6 +144,10 @@ Function parse_show_feed(xml As Object, feed As Object) As Void
item.StreamFormat = "mp4"
endif
+ if item.Synopsis = "" then 'set default synopsis to title if doesn't exist in xml
+ item.Synopsis = item.Title
+ endif
+
'setting publish date
date = validstr(curShow.publish_date.GetText())
month = mid(date, 6,2)
@@ -157,7 +161,10 @@ Function parse_show_feed(xml As Object, feed As Object) As Void
item.HDPosterUrl = item.hdImg
item.SDPosterUrl = item.sdImg
- item.Length = strtoi(item.Runtime)
+' if item.Runtime != "" then
+' item.Length = strtoi(item.Runtime)
+' end if
+
item.Categories = CreateObject("roArray", 5, true)
item.Categories.Push(item.Genre)
item.Actors = CreateObject("roArray", 5, true)

0 comments on commit c6c3deb

Please sign in to comment.