Commit graph

836 commits

Author SHA1 Message Date
j
7620795862 add update_itemsfolder command 2016-02-20 10:41:22 +00:00
j
f060601d40 django 1.9 returns parsed value not raw data 2016-02-20 15:15:02 +05:30
j
62caf55fe6 stop using RequestContext 2016-02-20 15:15:02 +05:30
j
3f02f6086a fix clip random 2016-02-20 15:15:01 +05:30
j
2fe857d4fd remove optparse 2016-02-20 15:15:01 +05:30
j
4219246909 db migration 2016-02-20 15:15:01 +05:30
j
976860ec30 use django.conf.urls url instead of patterns 2016-02-20 06:00:13 +00:00
j
1cc795995d user.get_profile()->user.profile 2016-02-19 22:06:11 +05:30
j
3e8f28ff47 update imports 2016-02-19 22:06:10 +05:30
j
5d63ad1760 default/upload_to=lambda breaks migrations, use functions 2016-02-19 21:59:26 +05:30
j
e22cc432b3 use transaction.atomic 2016-02-19 21:55:09 +05:30
j
e738503380 remove old migrations 2016-02-19 15:17:18 +00:00
j
6b1ce30eb2 from __future__ import print_function 2016-02-18 16:19:26 +05:30
j
f47febb09c joined audio timelines 2015-12-09 18:29:18 +00:00
j
d23a6eb317 fix cuts for multipart videos 2015-12-01 20:11:08 +01:00
j
f6bfa26ae3 dont count empty annots 2015-11-26 09:21:52 +01:00
j
8f6f39caaf dont include emtpy annotations in srt export 2015-11-20 18:19:55 +01:00
j
9e88f29126 only loop over annotations without public_id once 2015-11-11 10:39:34 +01:00
j
9b1ed58ff2 only migrate AnnotationSequence if we have items 2015-11-11 09:48:16 +01:00
j
4bdce55364 fix joining audio only timelines 2015-11-02 09:34:41 +01:00
j
21a6007f8c only add video sitemap for films that can be played 2015-10-22 19:40:20 +02:00
j
90d8d46603 update sitemap video namespace 2015-10-22 00:11:44 +02:00
j
d16bbf6ba8 remove facet duplicates 2015-10-12 18:44:20 +01:00
j
aafac3c1d8 only store one item/key/value facet, remove facets with other case 2015-10-12 17:45:08 +02:00
rolux
4ed2d940cf migrate annotation sequence in item not annotation 2015-10-12 15:24:03 +01:00
j
a430c6bdf4 make facets case insensitive 2015-09-25 14:44:02 +01:00
j
1e81dc4fa1 switch 2015-09-24 18:35:13 +01:00
j
79dbeabafc not again 2015-09-24 18:26:59 +01:00
j
eea9321b2e not not not 2015-09-24 18:23:25 +01:00
j
96301d6a9c not 2015-09-24 18:21:01 +01:00
j
f12dfdc4a3 import subtitles if no subtitles exist 2015-09-24 18:16:29 +01:00
4f064fda76 Make Annotation.public_id non-NULLable (fixes #2829)
This fixes this race:

     request 1                          request 2
     -----------------------------      -------------------------
     addAnnotation(...)
     super(Annotation.self).save()
                                        findAnnotations(...)
                                        returns [{id: null, ...}]
     annotation.public_id = x
     returns {id: x}
2015-09-14 14:18:10 +02:00
eebb0b5681 Combine {Item,Clip,edit.Clip}.get_layers()
This has several benefits:

    • Clip.get_layers() (used by smart edits) and Item.get_layers() pick up
    the select_related('user') optimization added for static edits in
    r5007.

    • Static edits and items pick up the optimization from r4941 to select
    annotations once, not once per layer.

Fetching an item with ~1000 annotations took ~1s without this patch,
~0.34s with this patch. Another item with ~6000 annotations took ~11.6s
before, ~8.6s after.

Because this block is moved out to the top:

if user and user.is_anonymous():
user = None

then, for anonymous users,

"editable": false,

is no longer included in the annotations. The old behaviour ended up
including this key in all layers listed before the first private layer
in the config, and leaving it out from later ones. So this new behaviour
is more consistent.
2015-09-14 14:06:43 +02:00
j
fd2992c588 add option to sort by number of annotations per layer 2015-09-03 00:52:20 +02:00
j
944fe1a9dd only run migration if we have items 2015-08-07 17:32:17 +02:00
j
5da83f6f6d don't return empty string for undefined values, handle in context browser 2015-05-23 15:11:18 +05:30
j
0504eaf227 audio files should not have aspect ratio 2015-05-23 15:10:24 +05:30
j
27e9bc62fb typo 2015-05-23 14:25:58 +05:30
j
23398c4307 get resolution from videos while uploading and dont return sort value 2015-05-23 14:22:44 +05:30
j
f11772b8db fix annotations without public_id after initializing sequence 2015-05-20 01:04:42 +05:30
j
ef56f4aec4 track annotation id in table to avoid IntegrityErrors while adding multiple annotations to one item, fixes #2780 2015-05-20 00:43:33 +05:30
j
6dd9522cc5 never include empty layers 2015-05-13 21:59:17 +02:00
4d6466779f autocomplete: fix typo in docstring 2015-04-30 22:48:07 +02:00
51c3df9660 typo: permissino permission in 403 errors 2015-04-28 18:12:00 +02:00
j
d39c237b04 ignore subtitles that are longer than the video. 2015-04-25 19:18:32 +02:00
j
e666159811 faster find queries 2015-04-25 19:02:20 +02:00
j
e604ba73bd remove debug output 2015-04-25 13:08:24 +02:00
j
10183a9f06 only create index in sqlfindindex not during migration 2015-04-17 11:34:44 +01:00
j
e407db4605 fix sqlfindindex 2015-04-17 11:22:34 +01:00
j
a869c7a89a extend findEntities to support entity keys and * 2015-04-17 11:17:12 +01:00
j
6793c165b3 refactor filters updates 2015-04-15 08:51:34 +01:00
j
6a5280edd4 ignore case for annotatoin filter values 2015-04-14 23:04:07 +01:00
9ac5dc7ba9 [PATCH] Fix find()'s docs on nested subconditions
The documentation says that you need to write (P & Q) | R
like this:

{
    'conditions': [
        {
            'query': {
                'conditions': [P, Q],
                'operator': '&'
            }
        },
        R
    ],
    'operator': '|'
}

but actually you need to omit the { 'query': ... } wrapping the
subclause. Including it crashes parseCondition() at:

    v = condition['value']

for the obvious reason.
2015-03-05 14:17:02 +05:30
j
2a63a3b300 dont include null values in lookup 2015-02-16 16:12:44 +00:00
j
2e246dd06e cleanup 2015-02-16 16:02:18 +00:00
j
7ae02d5678 implement lookup 2015-02-16 16:00:26 +00:00
j
ccfaa7db4a add entity/document relation 2015-02-13 11:06:09 +00:00
j
f680d8613e make sure sortvalue is lowercase, fixes #2667 2015-02-06 12:12:32 +00:00
j
9a3c24b2ab only call update_timeline once during first import, adds empty clips twice otherwise 2015-02-04 15:10:51 +05:30
j
708e6e5b2c fixx add movie 2015-01-24 15:49:57 +05:30
j
6662872225 remove unused import 2014-12-23 11:28:42 +00:00
rolux
0f1ecec5b5 update api docs (find) 2014-12-21 12:46:35 +00:00
rolux
0dd956e231 update api docs ('my groups' query) 2014-12-21 11:34:41 +00:00
rolux
724839c28b api docs (wording) 2014-12-20 17:36:38 +00:00
rolux
07b7900788 fix a bug in 'find' documentation 2014-12-20 17:35:23 +00:00
rolux
98cc4c5f9a minor change 2014-12-19 19:36:34 +00:00
rolux
31c3cc908b cosmetics 2014-12-19 15:49:16 +00:00
rolux
3d1c816950 cosmetics 2014-12-19 15:37:00 +00:00
rolux
3950213960 update api docs 2014-12-19 15:31:57 +00:00
rolux
cada20f904 update api docs 2014-12-19 15:05:08 +00:00
rolux
4a084d8405 update api docs 2014-12-19 12:59:10 +00:00
j
0e425c6df1 dont create torrent file if torrents are disabled 2014-12-18 21:46:18 +00:00
rolux
bd2d9f2e57 update api docs 2014-12-18 20:56:28 +00:00
rolux
6bd001a10a update api docs 2014-12-18 20:16:41 +00:00
rolux
0a56268b92 update api docs 2014-12-18 19:26:37 +00:00
rolux
7cfdf7b8db update api docs 2014-12-18 18:18:18 +00:00
j
9c28041171 fix edit call (changelog) 2014-12-18 17:39:48 +00:00
rolux
8fd99ac1be update api docs 2014-12-18 16:39:47 +00:00
rolux
cf836ec172 add api docs 2014-12-18 13:38:20 +00:00
j
9e9bf30c42 add new changelog and call add_changelog all over the place 2014-12-17 13:45:46 +00:00
j
3aa9f19d31 use entity name as filter value 2014-12-16 19:42:41 +00:00
j
8acfd57d10 dont expect video in file info 2014-11-29 14:40:56 +01:00
j
581d927a22 value can be capability 2014-11-29 14:16:53 +01:00
j
613faa2e3b update poster ratio saving poster, fixes #2517 2014-11-21 18:58:42 +00:00
j
97d8344822 turn <br> into space 2014-11-19 16:54:45 +00:00
j
2627bff48f space 2014-11-18 18:27:13 +00:00
rolux
e5d5ccd7b9 update api docs 2014-11-18 16:19:50 +00:00
rolux
acee02f368 update api docs 2014-11-18 15:45:41 +00:00
j
1ac959623e fix #2570 2014-11-17 16:56:53 +00:00
j
a8c1b8385a rebuild poster if itemKey with poster: true is changed 2014-11-16 18:25:54 +00:00
j
51b82ad91d dont try to extract frames from audio files 2014-11-16 14:16:42 +00:00
j
f7f1e6cd78 add itemKey value/map and filterMap options 2014-11-16 13:54:08 +00:00
j
000912dd51 use actuall stream extension in torrents 2014-11-16 12:04:19 +00:00
j
573f034df2 wrap get_frame into transaction to avoid postgres error 2014-11-16 11:23:02 +00:00
rolux
9e5fea2d06 start to improve API docs 2014-11-15 18:39:16 +00:00
j
d9a5a75a04 dont call external api if no external api is defined 2014-11-14 20:23:25 +00:00
j
9dcd961fff height must be integer 2014-11-14 17:17:15 +00:00
j
a56428620a dont try to extract frames from audio 2014-11-14 14:05:45 +00:00
j
563bbd5b0e set filesystem_encoding while creating torrent 2014-10-29 01:44:29 +01:00
j
ef44a4f213 filters values can only be strings. strip tags 2014-10-28 11:27:57 +00:00