[mythtv-users] mythtv apple trailers updated to v0.4.2.2

John Haywood john at jhit.com.au
Tue Jul 14 13:04:35 UTC 2009


On 15/06/2009, at 2:26 AM, dlknight at sdf.lonestar.org wrote:

> I have updated mythtv apple trailers to v0.4.2.2.
>
> In addition to 0.4.2.1 fixes this focuses on the download function  
> of the
> script.
>
> 1. Do not delete existing downloaded trailers.
> 2. Only download new/missing trailers and skip existing.
>
> http://www.mythtv.org/wiki/Myth_Apple_Trailers
>
> Direct link to download -
> http://www.mythtv.ukpc.net/mythappletrailer-0.4.2.2.tar.gz
>

Dave,

I'm sure this is a simple one :

when trying to run the script after install, I get the following:

PHP Warning:  mkdir(): No such file or directory in /home/mythtv/ 
myth_trailers_grabber on line 139

OK, so line 139 comes in here:

137	 // first check if the directory we're writing to exists
138	       if($STREAM_OR_DOWNLOAD == 'download' && ! 
is_dir($DOWNLOAD_FILES_DIR)) {
139	               if(mkdir($DOWNLOAD_FILES_DIR)) {
140	                        if($DEBUG) { print "The directory  
\"$DOWNLOAD_FILES_DIR\" didn't exist, but we created it for you...\n"; }
141                } else {
                         print "\t<button>\n";
                         print "\t\t<type>TV_DELETE</type>\n";
                         print "\t\t<text>ERROR: download directory  
doesn't exist!</text>\n";


Seems to be the $DOWNLOAD_FILES_DIR, which I've defined:

// where to save the downloaded files if we are to download them
$DOWNLOAD_FILES_DIR             = "/storage/trailers/";

The directory exists, and is owned by mythtv


Any ideas where I've managed to screw this one up?

john


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090714/24e6a0cf/attachment.htm>


More information about the mythtv-users mailing list