[SOLVED] LDS Feeds (Conference)
Posted: Sat Oct 01, 2011 7:22 pm
I've been trying for a couple of weeks on programing this one all to no avail (I no little to nothing about programming).
The feed is http://feeds.lds.org/LDSGCComplete_eng_mp4
XML Feed is http://feeds.lds.org/LDSGCComplete_eng_mp4?format=xml
I'm thinking it will be fairly easy:
1. Capture the file name (see in blue) from XML <media:content url="http://feeds.lds.org/~r/lds-general-conference-sd-eng/~5/BT1XK2LXo5o/66852713001_859513978001_2011-03-0001-high-on-the-mountain-top-8000k-eng.mp4"
2. Also Capture the first 11 numbers in the file name 66852713001
3. Add a forward slash to the capture number 66852713001/ = 66852713001/
4. Then add first 11 numbers plus a slash and then filename above at the end of the URL http://brightcove.lds.com.edgesuite.net/66852713001/66852713001_859513978001_2011-03-0001-high-on-the-mountain-top-8000k-eng.mp4
Thank you for the help.
By the way I don't know if it will work but I found this code for extracting filename from a URL
Thanks I would greatly appreciate this.
The feed is http://feeds.lds.org/LDSGCComplete_eng_mp4
XML Feed is http://feeds.lds.org/LDSGCComplete_eng_mp4?format=xml
I'm thinking it will be fairly easy:
1. Capture the file name (see in blue) from XML <media:content url="http://feeds.lds.org/~r/lds-general-conference-sd-eng/~5/BT1XK2LXo5o/66852713001_859513978001_2011-03-0001-high-on-the-mountain-top-8000k-eng.mp4"
2. Also Capture the first 11 numbers in the file name 66852713001
3. Add a forward slash to the capture number 66852713001/ = 66852713001/
4. Then add first 11 numbers plus a slash and then filename above at the end of the URL http://brightcove.lds.com.edgesuite.net/66852713001/66852713001_859513978001_2011-03-0001-high-on-the-mountain-top-8000k-eng.mp4
Thank you for the help.
By the way I don't know if it will work but I found this code for extracting filename from a URL
Thanks I would greatly appreciate this.