Your Digital Media Has Never Looked So Good

 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Having an issue with XML feed

Mon Jun 05, 2017 4:28 pm

Hello.

I am new to Roku development, but not necessarily programming. I wrote a php file that outputs everything correctly, but I am guessing it doesn't accept php files? Idk. So, I took the output of the php file and had it write an xml file. Here is the XML file it created.
http://roku.joystar.tv/feedd.xml

Is there any way someone can please guide me? I'm lost as to why it doesn't work. I thought I matched the format exactly.

Any help would be much appreciated!
 
mediadisconnect
Posts: 115
Joined: Tue May 31, 2016 10:52 am

Re: Having an issue with XML feed

Mon Jun 05, 2017 9:22 pm

In your feed you have the following item:

 <item>
   <guid>http://joystar.tv/roku_media/media/play_media151.mp4</guid>
   <pubDate>Mon, 29 May 2017 19:44:23 GMT</pubDate>
   <media:title>I Love Lucy - Getting Ready</media:title>
   <media:description>I Love Lucy - Getting Ready</media:description>
   <media:category>Comedy</media:category>
   <media:keywords>I Love Lucy Season 4 Episode 11: Getting Ready</media:keywords>
   <media:thumbnail url="http://joystar.tv/roku_media/images/poster151.jpg" />
   <media:content url="http://joystar.tv/roku_media/media/play_media151.mp4" duration="74.74" bitrate="2500" language="en-us" />
 </item>

One little error here is causing the problem....you can't have a semicolon (:) in a keyword element

Once you remove the semicolon Roku Direct Publisher will read your feed.  Roku Direct Publisher will find additional errors with your file but these errors (file, thumbnail size) won't be an XML formatting issue. 

Hope this helps.
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Mon Jun 05, 2017 10:46 pm

Thanks for the reply!

Ok, so what I did was, added an array of not allowed characters, and then have the PHP strip (str_replace) the array before adding to the XML content.
$notAllowed = array("&" , ";" , ":");

Is there any others I should add to the list? And is there a problem with having the actual PHP file as my feed url or does it need to be the xml file?

Btw- I really appreciate your help!
 
mediadisconnect
Posts: 115
Joined: Tue May 31, 2016 10:52 am

Re: Having an issue with XML feed

Tue Jun 06, 2017 1:06 am

The feed url has to be an XML file.  

Your XML file still has errors (video files, thumbnails, descriptions, etc) but at least now the file can be read by Roku.
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Tue Jun 06, 2017 6:24 am

Is there any way you can guide me on what my errors are and how to fix them? Even if I can pay you for the help, I'd really appreciate this. I've been working on this for a few days now and still no luck.

Thank you so much for the help thus far!
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Tue Jun 06, 2017 7:35 am

Actually, I made a file to make the .json. I'm hoping it is accepted. The .json file can be seen at:
http://roku.joystar.tv/jstv_feed.json

Anything stand out? I'm so lost obviously.
 
Baradanikto
Posts: 315
Joined: Tue Apr 30, 2013 7:55 am

Re: Having an issue with XML feed

Tue Jun 06, 2017 10:35 am

PJSWeb,

Please see MRSS Feed Update Utility and MRSS to JSON Converter.  This may help you.
Windows desktop software for creating and managing MRSS, JSON, and FireTV feeds @ https://rrirower.wixsite.com/software. No Programming, JSON or MRSS knowledge required.
 
mediadisconnect
Posts: 115
Joined: Tue May 31, 2016 10:52 am

Re: Having an issue with XML feed

Tue Jun 06, 2017 10:44 am

PJSWeb wrote:
Actually, I made a file to make the .json. I'm hoping it is accepted. The .json file can be seen at:
http://roku.joystar.tv/jstv_feed.json

Anything stand out? I'm so lost obviously.

I am currently getting an "Unable to download from feedUrl." error which means your Roku is not able to download the file from your server.  I had this problem when I start and I don't remember what I needed to fix on the host end but it will come to me (or someone else).  It was an easy fix.  I will download your .json file later and look for errors on my end.
 
mediadisconnect
Posts: 115
Joined: Tue May 31, 2016 10:52 am

Re: Having an issue with XML feed

Tue Jun 06, 2017 10:57 am

PJSWeb wrote:
Is there any way you can guide me on what my errors are and how to fix them? Even if I can pay you for the help, I'd really appreciate this. I've been working on this for a few days now and still no luck.

Thank you so much for the help thus far!

By the way, I am not interested in money.
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Tue Jun 06, 2017 3:44 pm

Thank you so much!! If you see anything in my json file that may stand out, I'd really really appreciate it! But, I'm thankful already for the help.

Also - thanks to the poster for the documentation. I have read so much documentation, including those links - but I am obviously still missing something.
 
mediadisconnect
Posts: 115
Joined: Tue May 31, 2016 10:52 am

Re: Having an issue with XML feed

Tue Jun 06, 2017 5:21 pm

in your feed there are three consistent errors:

Thumbnails:
"thumbnail": "http://roku.joystar.tv/",
There are no thumbnails actually defined.  You are just calling a path not an actual file.  Subsequently you will fail the 800x450 minimum requirement as well (because the picture isn't defined)

Url:
"url": "http://roku.joystar.tv/",
Same as Thumbnails, url is missing the actual file.  Right now it is just a path.

Genres:
"genres": ["faith", ""],
You are calling a second genre but the genre is blank.  Chang it to "genres": ["faith"], and you should be fine.
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Tue Jun 06, 2017 5:30 pm

Again, I cannot thank you enough. I really appreciate your help!

I updated my php code, which then updated the json code. However, I didn't know about the thumbnail size. I will need to find a way to resize that thumbnail at this point.

THANK YOU!!
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Tue Jun 06, 2017 8:24 pm

It still has an X beside the feedURL... is this because of the thumbnail size? Or do I still have an issue with the new json file?
 
mediadisconnect
Posts: 115
Joined: Tue May 31, 2016 10:52 am

Re: Having an issue with XML feed

Tue Jun 06, 2017 8:47 pm

PJSWeb wrote:
It still has an X beside the feedURL... is this because of the thumbnail size? Or do I still have an issue with the new json file?

If you have any error (including thumbnail size) you will get an X.  Plus your thumbnails aren't loading.  

Here is what is being presented:
http://roku.joystar.tv/roku_media/images/poster6.jpg
 
PJSWeb
Topic Author
Posts: 27
Joined: Mon Jun 05, 2017 4:22 pm

Re: Having an issue with XML feed

Wed Jun 07, 2017 7:37 am

mediadisconnect wrote:
PJSWeb wrote:
It still has an X beside the feedURL... is this because of the thumbnail size? Or do I still have an issue with the new json file?

If you have any error (including thumbnail size) you will get an X.  Plus your thumbnails aren't loading.  

Here is what is being presented:
http://roku.joystar.tv/roku_media/images/poster6.jpg

Thanks! I changed the url to make sure it is directed to the right path for video and poster sources. I also wrote the script (using FFMPEG) to change the thumbnails to 800x450, and verified it worked correctly. I uploaded the new json, but it seems there is still something messed up? Idk, or maybe I just have to wait to see the progress?
If there is anything with PHP or maybe MySQL or something I can do for you in the future for helping me like you have, please reach out to me. I do appreciate your help a lot!

Who is online

Users browsing this forum: No registered users and 3 guests