Commit Graph

15 Commits

Author SHA1 Message Date
Bharat Mediratta
b4c9a97050 Create item helper and move move_item(), remove_album_cover() and
make_album_cover() functions into it.
2009-05-02 20:34:02 +00:00
Bharat Mediratta
0fd82598b5 Move make_album_cover and remove_album_cover out of Item_Model and
into the core helper.  Clean up interactions so that when we remove an
album cover we pick a new one, or clean out the old album cover if
there are no other choices.
2009-05-02 20:14:13 +00:00
Tim Almdal
71cac8bf15 Forgot these when i created the make_album_cover method 2009-05-01 23:32:35 +00:00
Tim Almdal
523c467eed Fixes issues with Server Add:
1) Fixes Ticket #208
2) Fixes Ticket #190
3) Fixes an unticketed issue where two items could collide when
creating the thumbnail and/or resize. For example, loading a.flv and
a.jpg would have generated the same thumbnail image.  This change adds
a random value to the name to avoid conflicts.
4) Added item::__set() to clear the relative path if the name changes
2009-04-08 15:11:55 +00:00
Tim Almdal
f1eec57221 Add a weight column to the items model. Change the album ordering to
use this as the default instead of id.  This prepares the way for
manual reordering in the organize functionality.
2009-04-05 16:57:51 +00:00
Tim Almdal
6b5d395d59 Fix for ticket #153. The sort column was not not initialized for
movies or photos.  Turns out that when you go to delete, ORM tries to
check for children and apply the sort order.
2009-03-18 19:39:34 +00:00
Tim Almdal
d097b4fc02 Update to image_block based on bharat's feedback
1) move the rand_key column into core
2) don't do a max rand, just try to a get a random number less than
the current random number if that doesn't successd look the other way
2009-02-26 23:38:17 +00:00
Tim Almdal
95a1842034 Remove the commented line $parent->$movie->parent() as the $parent
object was passed in as a parameter.
2009-02-26 20:23:40 +00:00
Tim Almdal
0929d41305 Added a check to insure that the resize or thumbs image files do not
exists. As per ticket #109
2009-02-26 14:53:01 +00:00
Bharat Mediratta
515c081f79 Add support MP4 movies also. Flowplayer supports them and can stream
them using the h264streaming plugin.  Everything else is a fairly
minor change.
2009-02-25 05:27:29 +00:00
Andy Staudacher
e031957354 File structure style fixes 2009-02-24 05:54:19 +00:00
Tim Almdal
c0049dce03 1) Optimize the loop in graphics::generate so it uses the $ops as the
key and path.  This way it won't try to generate a resize for movies.
2) Changed the options on the ffmpeg command in movie::extract_image
so we actually see a frame not the black one that starts the movie.
2009-02-23 17:13:58 +00:00
Bharat Mediratta
37d3254d8c Remove debug code, thanks Andrew Slayman! 2009-02-23 01:36:54 +00:00
Bharat Mediratta
3a8439d7b5 Hardcode all movie mime types to video/x-flv cause that's all we support now anyway 2009-02-22 23:53:44 +00:00
Bharat Mediratta
baff63b70b Very basic movie support. You can upload a FLV file, we use ffmpeg to
extract a thumbnail out of it and if you click through we show it
using flowplayer.
2009-02-22 05:21:44 +00:00