[mythtv-commits] Ticket #9455: Mythweb drops thumbnails after manual edit
MythTV
noreply at mythtv.org
Thu Jan 6 18:52:14 UTC 2011
#9455: Mythweb drops thumbnails after manual edit
----------------------------------+--------------------------------------
Reporter: jlatz@… | Owner: kormoc
Type: Bug Report | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: Unspecified
Severity: low | Keywords: Mythweb, thumbnail, edit
Ticket locked: 0 |
----------------------------------+--------------------------------------
When I attempt a manual edit of video information via the Mythweb
interface, the result is that the thumbnail gets dropped.
I seem to have tracked it down to the fact that the
mythweb/classes/Video.php script incorrectly copies the file/path name
back into the database. I first made the fix in 0.23-fixes, and the fix
seems to still work with 0.24-fixes (I just upgraded yesterday, and hacked
in the fixes today).
I've edited the script such that it works for me, and am attaching it for
your review. I've commented out the original code and inserted my own - a
simple diff command to released source should identify the changes.
But, in case I can't successfully upload my file:
line 79:80
// $this->cover_file = path;
// list($width, $height) = @getimagesize($this->cover_file);
$this->cover_path = $path;
list($width, $height) = @getimagesize($this->cover_path);
line 115:
// .(($_SESSION["show_video_covers"]
&& file_exists($this->cover_url)) ? '
src="data/video_covers/'.basename($this->cover_file).'"' : '')
.(($_SESSION["show_video_covers"]
&& file_exists($this->cover_path)) ? '
src="data/video_covers/'.basename($this->cover_file).'"' : '')
line 169:
// ( @filesize($this->cover_file) > 0 ? $this->cover_file
: 'No Cover' ),
( @filesize($this->cover_path) > 0 ? $this->cover_file
: 'No Cover' ),
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9455>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list