[mythtv] [mythtv-commits] Ticket #7674: MythWeb cover_images
Nicolas Riendeau
knight at teksavvy.com
Sat Jan 16 20:37:36 UTC 2010
MythTV wrote:
> please find attached my alternative patch to mythweb/classes/Video.php
> the only change is to get the path of the coverart directory from the
> database and not using a hard coded value
>
As I said before, why is this patch necessary? Are you running on Windows perhaps?
There is already code in mythweb/modules/video/handler.php to make a symlink to the
VideoArtworkDir.
re;
82 // Create the symlink, if possible.
83 else {
84 $dir = setting('VideoArtworkDir', hostname);
85 if ($dir) {
86 // You can't symlink on windows
87 if (strtoupper(substr(php_uname('s'), 0, 3)) != 'WIN') {
88 $ret = @symlink($dir, 'data/video_covers');
89 if (!$ret) {
90 custom_error("Could not create a symlink to $dir, the
local MythVideo artwork"
91 .' directory for this hostname
('.hostname.'). Please create a'
92 .' symlink to your MythVideo directory at
data/video_covers in order to'
93 .' use the video artwork portions of MythWeb.');
94 }
95 }
96 }
Nick
More information about the mythtv-dev
mailing list