Parse metadata lines on tv feeds
This commit is contained in:
1 parent
4fc44becd2
commit
227a5157a5
8 files changed
+82
-12
No files matched your search
@@ -18,11 +18,20 @@ function OnContentSet() as void
|
||||
end if
|
||||
|
||||
m.top.title = content.title
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
m.top.author = content._author
|
||||
lines = content.lines
|
||||
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
author = content._author
|
||||
if StringUtils.IsNullOrEmpty(author)
|
||||
if IsArray(lines) and lines.Count() > 0
|
||||
author = lines[0]
|
||||
end if
|
||||
end if
|
||||
m.top.author = author
|
||||
|
||||
viewCountDate = ""
|
||||
if content.isUpcoming = true
|
||||
m.top.viewCountDate = content.premiereTimestampText
|
||||
viewCountDate = content.premiereTimestampText
|
||||
else
|
||||
publishedText = content.publishedText
|
||||
viewCountText = content.viewCountText
|
||||
@@ -33,8 +42,14 @@ function OnContentSet() as void
|
||||
end if
|
||||
label += viewCountText
|
||||
|
||||
m.top.viewCountDate = label
|
||||
viewCountDate = label
|
||||
end if
|
||||
if StringUtils.IsNullOrEmpty(viewCountDate)
|
||||
if IsArray(lines) and lines.Count() > 1
|
||||
viewCountDate = lines[1]
|
||||
end if
|
||||
end if
|
||||
m.top.viewCountDate = viewCountDate
|
||||
|
||||
m.top.thumbnailUri = content.thumbnail
|
||||
|
||||
|
||||
Reference in new issue
Block a user