Help with fixing channel settings

Hello, I’ve created a channel that is supposed to load an hls but when the channel first launches it just gets stuck at the first loading screen ICON and the Roku is telling me this;

BrightScript Debugger> ------ Running ------
created feed connection for https://dl.dropboxusercontent.com/s/aybs8xiap91uowy/categories.xml
url: https://dl.dropboxusercontent.com/s/aybs8xiap91uowy/categories.xml
Took: 125ms
Can't parse feed 

probably just something simple but this is my first channel so need some guidance. not sure if the issue is where I am storing the xml files. I can show you my xml files if this is the right forum for this type of help. Thank you

Online xml validator says –
Errors in the XML document:
1: 55 The standalone document declaration value must be “yes” or “no”, not “true”.

http://www.xmlvalidation.com/

Hello, thank you for responding.
Where are you seeing this? Both my xml files say: No errors were found

Did you use some “Validate against external XML schema”
Both the xml’s don’t have that yes or no variable

themind.xml


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
	<!-- resultLength indicates the total number of results for this feed -->
	<resultLength>2</resultLength>
	<!-- endIndix  indicates the number of results for this *paged* section of the feed -->
	<endIndex>2</endIndex>
	<item sdImg="">
		<title>The Shopping Channel</title>
		<contentId>10001</contentId>
		<contentType>Shopping</contentType>
		<contentQuality>SD</contentQuality>
		<streamFormat>hls</streamFormat>
		<media>
			<streamQuality>SD</streamQuality>
			<streamBitrate>1500</streamBitrate>
			<streamUrl>tscstreaming-lh.akamaihd.net/i/TSCLiveStreaming_1@91031/index_3_av-p.m3u8</streamUrl>
		</media>
		<synopsis>The Shopping Channel</synopsis>
		<genres>Clip</genres>
		<runtime>1200</runtime>
	</item>	
</feed>

categories.xml


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>

	  <!-- banner_ad: optional element which displays an at the top level category screen -->
	  <banner_ad sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png"/>
	  
	<category title="TSC" description="The Shopping Channel" sd_img="https://dl.dropboxusercontent.com/s/0ii7w0a2ujfc3l0/TSC%20214x144%20SD.jpg" hd_img="https://dl.dropboxusercontent.com/s/bubxi7hib8msfq6/TSC%20290x218%20HD.jpg">
		<categoryLeaf title="TSC" description="The Shopping Channel" feed="https://dl.dropboxusercontent.com/s/4wrorazfb1cnaop/themind.xml"/>
	</category>
</categories>

The URL you gave as an example:

https://dl.dropboxusercontent.com/s/ayb … gories.xml

returns

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

for me.

see next post

Is there another file hoster I can use?

When I view it in Internet explorer it change it to True instead of Yes depending on the link I use which should be the same thing;

https://www.dropbox.com/s/kxzb5ct2gkns4 … s.xml?dl=0
https://dl.dropboxusercontent.com/s/kxz … gories.xml

Need another file hoster I can use for these files please

I don’t know what kind of links I can use with the channel to read the xml files.
Will the Roku read them off an ftp server, will the first link I posted above work?

in the categoryfeed.brs can I change;
conn.UrlPrefix = “https://dl.dropboxusercontent.com/s/aybs8xiap91uowy
conn.UrlCategoryFeed = conn.UrlPrefix + “/categories.xml”

to
'** conn.UrlPrefix = “https://dl.dropboxusercontent.com/s/aybs8xiap91uowy
conn.UrlCategoryFeed = “https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0

Even though this is in categoryfeed.brs: Dbg("url: ", http.Http.GetUrl())
Can I still use https urls’ ?

Tried to run it again with the changed urls but still no go :disappointed_face:


BrightScript Debugger> ------ Running ------
created feed connection for https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0
url: https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0
Took: 243ms
Can't parse feed
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

Current Function:
034:  Function get_category_names(categories As Object) As Dynamic
035:
036:      categoryNames = CreateObject("roArray", 100, true)
037:
038:*     for each category in categories.kids
039:          'print category.Title
040:          categoryNames.Push(category.Title)
041:      next
042:
Syntax Error. (runtime error &h02) in pkg:/source/categoryFeed.brs(38)
038:     for each category in categories.kids
Backtrace:
#3  Function get_category_names(categories As Object) As Dynamic
   file/line: pkg:/source/categoryFeed.brs(38)
#2  Function initcategorylist() As Void
   file/line: pkg:/source/appHomeScreen.brs(112)
#1  Function showhomescreen(screen As Dynamic) As Integer
   file/line: pkg:/source/appHomeScreen.brs(39)
#0  Function main() As Void
   file/line: pkg:/source/appMain.brs(20)
Local Variables:
categories       bsc:roInvalid refcnt=1
global           rotINTERFACE:ifGlobal
m                roAssociativeArray refcnt=3 count:4
categorynames    roArray refcnt=1 count:0
category         <uninitialized>
BrightScript Debugger>

Put a Print statement before the Parse so you can see the exact Xml that you are passing to the parser.

If you want somewhere other than dropbox to host your Xml files, you could try Google App Engine. I use it for some of my Xml file hosting and web sites. It works well and it’s free (up to 1GB per day of incoming and outgoing bandwidth, and 1GB of code and static file storage), although there’s quite a bit of a learning curve to set it up.

https://www.dropbox.com/s/kxzb5ct2gkns4 … s.xml?dl=0 sends me to a log in/sign in page. I suspect that’s your issue. You need to authenticate with dropbox to make that request.

Ok, I’ll see what I can do with Google App Engine and get back to you.

Yeah, the Dropbox login splash page that comes up sometimes may be an issue.

“belltown” wrote:
Put a Print statement before the Parse so you can see the exact Xml that you are passing to the parser.

If you want somewhere other than dropbox to host your Xml files, you could try Google App Engine. I use it for some of my Xml file hosting and web sites. It works well and it’s free (up to 1GB per day of incoming and outgoing bandwidth, and 1GB of code and static file storage), although there’s quite a bit of a learning curve to set it up.
Yeah, that seems too confusing for me :disappointed_face:

I’m going to try Google Drive

Still not working :disappointed_face:
Where would I put the Print statement and what syntax would I use?


BrightScript Debugger> ------ Running ------
created feed connection for http://drive.google.com/file/d/0B8tqpzculA5TdXYwVFBNMXFIMU0/view?usp=sharing
url: http://drive.google.com/file/d/0B8tqpzculA5TdXYwVFBNMXFIMU0/view?usp=sharing
Took: 184ms
Can't parse feed
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

Current Function:
034:  Function get_category_names(categories As Object) As Dynamic
035:
036:      categoryNames = CreateObject("roArray", 100, true)
037:
038:*     for each category in categories.kids
039:          'print category.Title
040:          categoryNames.Push(category.Title)
041:      next
042:
Syntax Error. (runtime error &h02) in pkg:/source/categoryFeed.brs(38)
038:     for each category in categories.kids
Backtrace:
#3  Function get_category_names(categories As Object) As Dynamic
   file/line: pkg:/source/categoryFeed.brs(38)
#2  Function initcategorylist() As Void
   file/line: pkg:/source/appHomeScreen.brs(112)
#1  Function showhomescreen(screen As Dynamic) As Integer
   file/line: pkg:/source/appHomeScreen.brs(39)
#0  Function main() As Void
   file/line: pkg:/source/appMain.brs(20)
Local Variables:
categories       bsc:roInvalid refcnt=1
global           rotINTERFACE:ifGlobal
m                roAssociativeArray refcnt=3 count:4
categorynames    roArray refcnt=1 count:0
category         <uninitialized>
BrightScript Debugger>

I was able to successfully host my xml files on github after trying dropbox and google drive to no avail. It is free if you don’t mind the xml be available for the public to see. I am able to host the images for the channel on dropbox without issue. I was forced to do this after my ISP decided to obliterate the personal web space I had hosted on for many a year. Uggghhh