Latest General Conference MP4 feed

Discuss ideas and suggestions around the LDS.org website.
slloyd
New Member
Posts: 6
Joined: Sun Oct 07, 2012 4:52 pm

Latest General Conference MP4 feed

Postby slloyd » Sun Jan 07, 2018 3:15 pm

Is there anywhere I can programatically download the latest General Conference Talks? I want to keep them on my PLEX server so that my family can watch them more frequently. I want to write a script that keeps them current on my PLEX server.

I looked around on the website and saw this: http://feeds.lds.org/lds-general-conference-sd-eng but it is blank. I want the 1080p MP4 download links.

mevans
Senior Member
Posts: 1645
Joined: Tue May 22, 2012 12:52 pm
Location: California, USA

Re: Latest General Conference MP4 feed

Postby mevans » Sun Jan 07, 2018 5:45 pm

I went to the page, but didn't get a blank page. I saw an error:

This page contains the following errors:
error on line 39 at column 143: EntityRef: expecting ';'



Maybe it's the right page and it's broken? You can submit the bug through the Feedback link found at the bottom of most lds.org pages.

Alternatively, you could just go to the conference page and scrape the pages, drilling down until you get to the download for each talk. I believe it's managed by a content management system, so once you figure out the pattern, it's probably consistent. Of course, the church changes things periodically, so I don't know how long your script will work.

slloyd
New Member
Posts: 6
Joined: Sun Oct 07, 2012 4:52 pm

Re: Latest General Conference MP4 feed

Postby slloyd » Mon Jan 08, 2018 5:23 am

I thought about scraping it but was hoping for a consistent method. I did report it to the church via the Feedback link.

slloyd
New Member
Posts: 6
Joined: Sun Oct 07, 2012 4:52 pm

Re: Latest General Conference MP4 feed

Postby slloyd » Mon Jan 08, 2018 5:27 am

I just noticed something! The Feed is there but nothing shows on the page - probably due to that EntityRef bug. I can still get it via script though ;) The error is a typical one - not escaping the ampersand. You can fix it as follows:

Code: Select all

<?php
   $url='http://feeds.lds.org/lds-general-conference-sd-eng';
   $lines=file($url);
   //fix malformed & in links, etc
   foreach($lines as $i=>$line){
      $lines[$i]=str_replace('&amp;','[[[amp]]]',$lines[$i]);
      $lines[$i]=str_replace('&','&amp;',$lines[$i]);
      $lines[$i]=str_replace('[[[amp]]]','&amp;',$lines[$i]);
      
   }
   $content = implode('',$lines);
?>


Return to “LDS.org Website”

Who is online

Users browsing this forum: No registered users and 1 guest