[mythtv-users] MythWeb filename to actual filename

David Fishburn dfishburn.mythtv at gmail.com
Wed Apr 8 19:15:47 UTC 2009


> One way of grabbing the full path for the file:
>
> ***************
>
> me at myth $ perl -e 'use MythTV;
> my $basename=shift;
> my $myth = new MythTV();
> $connect = $myth->{'dbh'};
> my $storagegroup = new MythTV::StorageGroup();
> $dir = $storagegroup->FindRecordingFile($basename);
> print "DIR=$dir\n"' \
> "${RECORDING_CHAN}_${RECORDING_DATE}.mpg"
>
> DIR=/media/mythtv/recordings/1001_20080924213800.mpg
>
> ***************

That is perfect Owen, even makes use of the internally defined storage groups.

Thanks everyone for their responses.

Dave


More information about the mythtv-users mailing list