Skip to content

Commit

Permalink
getting rid of length since most videos do not have it
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Feb 13, 2012
1 parent 922765d commit c6c3deb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions source/appDetailScreen.brs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Function showDetailScreen(screen As Object, showList As Object, showIndex as Int
end if
endif
else if msg.isButtonPressed()
print "ButtonPressed"
print "ButtonPressed"
if msg.GetIndex() = 1
PlayStart = RegRead(showList[showIndex].ContentId)
Expand Down Expand Up @@ -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()
Expand Down
9 changes: 8 additions & 1 deletion source/showFeed.brs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit c6c3deb

Please sign in to comment.