Commit graph

3115 commits

Author SHA1 Message Date
j
8ac78f3bd6 remove unused force flag from make_poster, update_timeline 2016-06-26 23:24:11 +02:00
j
0f9e80e1e6 avoid saving item twice 2016-06-26 23:22:27 +02:00
j
de9b062d63 make sure existing index is using gin 2016-06-26 16:55:58 +02:00
j
ab0dfddf31 set SECURE_PROXY_SSL_HEADER by default 2016-06-26 15:34:19 +02:00
j
0d89ad640b ignore some broken audio codecs 2016-06-26 15:33:52 +02:00
j
92f642cbac pcm sound can have no codec 2016-06-26 14:41:58 +02:00
j
2cec1b9ad5 s/import Image/from PIL import Image/g 2016-06-25 20:39:29 +02:00
j
4785f314cb Add VP9/Opus support, use VP8 by default
- support vp9 and opus
- switch to 2 pass encoding
- use ffmpeg -movflags +faststart instead of qtfaststart
2016-06-23 17:36:41 +02:00
j
aaacc48259 only save if update_external fails 2016-06-20 18:28:05 +02:00
j
d83647c4a5 don't hide oxtimelines errors 2016-06-20 18:27:31 +02:00
j
6dcbcdd19c dont update timeline in update_selected, remove unused async get_item case 2016-06-16 14:48:54 +02:00
j
0486d62ec9 use absolute path 2016-06-16 14:48:09 +02:00
j
f25218466b formating 2016-06-16 14:48:01 +02:00
j
70f34bfde9 typo 2016-06-15 19:13:00 +02:00
j
e3c5ab18c7 only update itemsort if name is changed 2016-06-15 18:31:40 +02:00
j
22f83288c5 avoid looking up item twice 2016-06-15 18:29:09 +02:00
j
7c53dca65b less async item creation 2016-06-15 18:12:59 +02:00
j
b2a9a5f711 space 2016-06-15 17:56:31 +02:00
j
3c1f4a8c95 dont call module 2016-06-15 17:55:57 +02:00
j
b010aca0a9 s/taskId/id/ 2016-06-15 15:45:51 +02:00
j
a0fc6ffadc typo 2016-06-15 14:55:45 +02:00
j
f4cbe6a114 return empty sequences if no data timeline exists 2016-06-15 14:48:02 +02:00
j
af0e0cffe8 person can be removed again, let async itemsort fail without exception 2016-06-15 14:34:46 +02:00
j
fd9d3bdabf flake8 + map->[] 2016-06-15 14:34:46 +02:00
j
05c4cfcbc8 add space and other flake8 cleanups 2016-05-28 11:30:43 +02:00
j
5e149a5cb8 add space and other flake8 cleanups 2016-05-28 11:26:46 +02:00
j
225259e521 add space and other flake8 cleanups 2016-05-28 11:18:51 +02:00
j
f21e8413fb use get_random_string 2016-05-28 11:18:51 +02:00
j
7fdaf6d1ce include Access-Control-Allow-Origin in 404 not found response 2016-05-27 11:51:47 +02:00
05e6118a88
findAnnotations: include duration alongside result count
fixes #2921
2016-05-05 15:54:25 +01:00
j
41cc8e3573 expose encoding status via api 2016-05-05 10:49:34 +02:00
j
be163826ef Merge remote-tracking branch 'wjt/fix-migrations' 2016-05-05 10:48:24 +02:00
39b9b48be2
archive: fix migrations for upload_to function renamings
9c75526 renamed these functions. The function doesn't affect the DB
schema so it should be safe to just modify the migraiton.
2016-05-04 17:01:44 +01:00
e29ea230fb
Add migration for Document.documentproperties ref
This should have been included with a8dcbbb, which changed the
related_name to access DocumentProperties from Document. (There's no
actual change to the database.)
2016-05-04 16:55:11 +01:00
j
0f28a2b7d5 fix queue status 2016-04-30 14:15:13 +02:00
j
9c7552699f fix upload_to callbacks 2016-04-29 13:46:55 +02:00
2812834ce3
findAnnotations: don't lowercase ids (fixes #2916)
Without this fix, a condition like:

     {key: 'id', operator: '==', value: 'A/B'}

gets mapped to:

     public_id__exact=('A/B'.lower())

which is wrong.

I introduced this bug in b3df5b8. I didn't catch it because I was
mostly interested in the 'layer' key -- but layer names are
conventionally lowercase anyway so lowercasing them had no effect.
2016-04-29 11:03:45 +01:00
aa40a40595
Annotation.json: only include entity id & name
Fetching documents for each entity in turn is expensive. (I have tried
using ArrayAgg to fetch them in the same query as the Entity — no
improvement. It's possible that being able to join to entity_entity,
and then use ArrayAgg, would be better.)

Even once you've fetched them all, if the same entity appears many
times in an item, then get(..., keys=['layers']) duplicates the whole
JSON for the entity many times: expensive to serialize, expensive to
send over the wire.

Pandora's own web interface only depends on the 'id' key of 'entity' in
each annotation, and refetches the rest of the entity to show the pop-up
dialog when you press E. So by just not bothering to fetch and send any
other keys, get(..., keys=['layers']) on an item with many entity
annotations is substantially faster.

(I experimented with splitting the full entities off to one side, so,
you'd have:

    {
        "layers": {
            somelayer: [...,
              {..., "entity": {"id": ABC}},
            ], ...
        },
        "entities": {
            ABC: {...},
            ...
        }
    }

This is quicker than the status quo, but obviously not as fast as not
fetching & sending the rest at all!)
2016-04-28 14:15:23 +01:00
aa0fbc9d4a
Entity.json: get document ids from join table
This is a bit quicker because it's just a lookup in a single table, not
a join.
2016-04-28 14:15:12 +01:00
400b6650a2
Annotation.json: document empty-subtitle special case 2016-04-19 13:52:52 +01:00
af0d87b569
Annotation.json: reduce repeated layer lookups
It's actually quite costly to look up keys in CONFIG, particularly
inside a loop: this trims ~5% off get(keys=['layers']) for
annotation-heavy items.
2016-04-19 13:52:47 +01:00
3f5be0bd27
findClips: look up entity names (fixes #2804) 2016-04-19 12:28:58 +01:00
d0129a4416
findClips: avoid O(n²) lookup of clip from annotation
This doesn't make much difference for small ranges, of course.
2016-04-19 11:25:12 +01:00
ba00bcbf7b
findClips: select_related('item') / ('item__sort')
Clip.public_id uses self.item.public_id.

Clip.json() uses self.item.sort, so we should select_related on that
rather than the clip's own sort field. (They are identical objects. Is
Clip.sort ever used directly?)

With this change, findClips() issues one query to fetch clips plus one
query per flavour of annotation; before, it issued two extra queries per
clip.
2016-04-19 11:25:06 +01:00
6dbb7f921a
findClips: only scan layers once 2016-04-19 11:14:25 +01:00
b3df5b8d56 findAnnotations: match some fields case-sensitively
Requiring layer to have the right case is consistent with
addAnnotation(), and means the _layer[_like] index can be used. In my
testing, if itemsQuery specifies a single item, then postgres doesn't
bother with the layer index anyway; but if not, it makes a pretty big
(~3×) difference.

Matching public_id and item__public_id case-sensitively also seems
reasonable (it's consistent with get() and getAnnotation()).

(Is lower() redundant for the case-insensitive comparisons? ie. is
UPPER(x.lower()) == UPPER(x)? I'm not sure, it's cheap, let's leave it.)
2016-04-05 12:19:32 +01:00
8d1b4de337 findAnnotations(): make 'findvalue' the default key
Annotations have no 'name' field, so

     findAnnotations({query: {conditions: [{value: 'foo'}]}})

would previously raise an exception.
2016-04-05 12:19:31 +01:00
284caf03c3 get_by_key: short-circuit
This is about 30% faster, presumably because it avoids allocation and/or
closing over variables is slow(?). It's not hugely significant (I
misread a line_profile report) but why not.
2016-04-05 12:19:31 +01:00
j
7ac68697d4 update pdf.js 2016-04-04 15:50:07 +02:00
j
652df88342 return 404 2016-04-04 15:50:07 +02:00
j
1bff4aa0e9 avoid storing invalid poster frames, only show videos with video 2016-04-01 16:40:20 +02:00
j
b8beb51480 fix multipart audio only timelines 2016-03-31 14:54:38 +02:00
j
94b940436f fix timelines for items with many parts
- use durations from streams not from timelines
 - don't accumulate timeline drift
2016-03-19 18:58:48 +01:00
j
f0b8b2b81e check that range is [int, int] 2016-03-17 16:06:08 +01:00
eeaeda3970 Support WebVTT subtitle export 2016-03-11 14:16:23 +01:00
j
697e501a4f only update item timeline once all parts are done 2016-03-11 10:33:48 +01:00
j
f6cebcaec9 fix user/group api 2016-03-08 20:14:05 +05:30
j
29204b6fb5 move gunicorn configuration from init script to config file 2016-03-07 14:25:24 +05:30
j
4f28c2c548 fix annotation import, values are decoded in d1.9 2016-03-05 15:36:47 +05:30
a8dcbbbe89 Include DocumentProperties.data in Document.json() 2016-03-05 15:07:47 +05:30
a55cbcfb9f DocumentProperties: add data field 2016-03-05 15:07:47 +05:30
0c98cd080e Entity.alternativeNames: default to () not [] (fixes #2896)
Otherwise this:

    self.name_find = '||' + '||'.join((self.name,) + self.alternativeNames) + '||'
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

fails because () + [] is an error. I guess this must have been
introduced by the DictField/TupleField rewrite.

Without this fix, it is impossible to create a new entity.

Basically the same logic is used for Event and Place too so I've made
the same change to those, and, in passing, fix another copy of the bug
fixed for Entity.name_find in fe7f961.
2016-03-04 17:11:36 +00:00
9a4c24cdb4 Support searching documents by entities 2016-03-04 12:41:41 +00:00
738a9282b4 Document: fix negating id queries 2016-03-04 12:41:41 +00:00
8c23bdff6d Implement DocumentProperties.__unicode__ 2016-03-04 12:41:41 +00:00
j
4613005b83 use geoip2 api to fix ipv6 lookups 2016-03-04 12:50:44 +05:30
c6f9f87c8e Fix autocompleteSort with multiple keys (fixes #2893)
QuerySet.order_by() takes each key as a separate argument, not as a
single comma-separated string.
2016-03-03 18:15:37 +05:30
2a07e2a1ab Remove redundant overrides of Model.delete
Both of these models have pre_delete handlers which do the same things,
so I think these are unnecessary.
2016-03-03 18:10:29 +05:30
d69a8efd97 Don't save other file-owning models on delete, either 2016-03-03 18:10:29 +05:30
6e0049a20c Don't save Document in pre_delete handler (fixes #2889)
FileField.delete() will, by default, save() the model instance it is
attached to. This is pointless if we're in the process of deleting the
Document -- and since Document.save() calls Document.update_matches(),
this scans all annotations every time a document is deleted.
2016-03-03 18:10:29 +05:30
j
fd2c69a5b7 define BASE_DIR 2016-03-03 16:56:06 +05:30
j
11924fcb0d Rename api.taskStatus to api.getTaskStatus
still register api.taskStatus since its used
in pandora_client and other scripts.

fixes #2600 and fixes #2859
2016-02-20 18:35:26 +05:30
j
0d5c968026 space 2016-02-20 10:41:23 +00:00
j
051a3578b4 inline django 1.9 version of ox.django 2016-02-20 10:41:23 +00:00
j
7620795862 add update_itemsfolder command 2016-02-20 10:41:22 +00:00
j
0367816257 only crop with 4 crop points 2016-02-20 10:41:22 +00:00
j
1ef547f885 update celery integration 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
e9bcd19161 fix initdb 2016-02-20 15:15:02 +05:30
j
29c6dc866b fix index 2016-02-20 15:15:02 +05:30
j
7a6515183a add wsgi 2016-02-20 15:15:02 +05:30
j
cc84487193 commit_unless_managed->commit 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
158c68fbc7 use object class for MetaClip 2016-02-20 05:58:53 +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
35bdfba77c fix default values 2016-02-19 19:01:38 +05:30
j
d241b90b63 check data is a dict 2016-02-19 18:46:53 +05:30
j
6b1ce30eb2 from __future__ import print_function 2016-02-18 16:19:26 +05:30
47d8d67c3d Allow 'query' to be omitted from find*() (fixes #2883)
I hit this in findDocuments() so thought I'd fix them all.
2016-02-15 14:58:50 +00:00
j
b121b58a86 support caching local files, lookup by oshash 2016-02-14 00:32:14 +05:30
691b3fa934 Entity: only update annotations when name has changed (fixes #2877)
Just like ace0468 this doesn't exactly fix #2827, but it does reduce the
unnecessary work.
2016-02-05 19:03:16 +05:30
6008f3b44e findEntities: fix negated conditions, fixes #2876 2016-02-05 19:01:30 +05:30
cdaa50c4d3 addAnnotations: report which key is missing in error 2016-02-04 10:38:02 +00:00
729856eb30 Rename getTaskStatus -> taskStatus in API docs (fixes #2859) 2016-02-04 10:38:01 +00:00
j
c7515517da remove persona support 2016-01-12 14:04:34 +05:30
j
face7da3da avoid duplicate users for or queries, fixes #2871 2016-01-12 12:06:12 +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
a919724821 typo 2015-11-29 14:13:44 +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
2b3853c7aa remove debug 2015-11-18 14:45:31 +01:00
j
e216a7b307 make it easer to copy&paste default values 2015-11-18 14:28:40 +01:00
j
48e1435601 switch to git 2015-11-14 15:22:40 +01:00
j
b7cfcfa182 add some encoding options: crop, trim, aspect 2015-11-12 16:15:02 +00:00
j
310343c81c improve output if config can not be parsed 2015-11-12 13:06:34 +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
eb472b88ae allow annotation import/export on 0x 2015-10-31 13:54:12 +01:00
j
54b7c4be9a update dimensions replacing documents, add modified to image urls to get latest version 2015-10-26 16:10:12 +01:00
j
6f9fb06da3 Replace Document, still some cache issues, fixes #2855 2015-10-25 22:08:13 +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
86599a4341 Indiancine.ma: new items should be Under Copyright by default not Private 2015-10-21 14:26:13 +02:00
j
f0e3c2775e logg addMedia call 2015-10-20 12:17:04 +02:00
j
d16bbf6ba8 remove facet duplicates 2015-10-12 18:44:20 +01:00
j
c17f0a4376 add new file for r5049 2015-10-12 18:43:41 +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
69254bbe48 changeid can also be list of ids, use text 2015-10-12 15:25:24 +01:00
rolux
4ed2d940cf migrate annotation sequence in item not annotation 2015-10-12 15:24:03 +01:00
j
2e3b61d163 dont fail if files are already gone 2015-10-04 18:17:34 +01:00
j
6f4c010be0 only return layers defined in config 2015-10-04 14:11:39 +01:00
j
be1589569e fix clip index for newly added clips 2015-10-04 11:04:46 +01:00
j
5649892bbd annotation layer flag is boolean 2015-10-04 11:20:45 +02:00
9265b8a53b Clip.save: fetch annotations once, not ~ 2 * n_layers
With 17 layers and 12 clipLayers, this repeated fetching was around 49%
of the cost of this function, which was in turn 94% of the cost of
creating many new annotations with mostly-unique endpoints. This helps a
bit...

If the order of clipLayers is not meant to be significant to sortvalue
(which I assume it is) then this could be simpler.
2015-10-04 11:17:22 +02: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
j
65fb9ccb6d reduce ffmpeg output 2015-09-16 15:04:44 +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
eaa07b1ccb ClipManager: match annotation layer case-sensitively (fixes #2832)
The case must be correct anyway for the layer to be found in
settings.CONFIG['layers']. Running this:

    Q(annotation__layer__iexact='foo') &
    Q(annotation__findvalue__icontains='bar')

compiles to

    upper(layer) = upper('foo') and
    ...

which can't use the case-sensitive annotation_annotation_layer index.
This:

    Q(annotation__layer__exact='foo') &
    Q(annotation__findvalue__icontains='bar')

can. (It still can't use the findvalue_like index, though! The other
option is to add indices on upper(layer) and upper(findvalue)
[varchar_pattern_ops].)
2015-09-14 14:13:06 +02:00
da1ad5b9c1 ClipManager.filter_annotations: fix 'opterator' typo (fixes #2832) 2015-09-14 14:11:40 +02:00
8759b569da Cache serialized entities when fetching many annotations
For a scene with ~5600 annotations, of which ~3100 are entities, this
cuts fetching the scene from 12 seconds to 2 seconds.
2015-09-14 14:08:02 +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
2c406a76e0 create trusty container 2015-09-03 19:33:48 +02:00
j
fd2992c588 add option to sort by number of annotations per layer 2015-09-03 00:52:20 +02:00
ace04688f2 Entity.save(): update annotations async (fixes #2827, kinda) 2015-09-02 14:32:16 +02:00
j
41b50ccdb8 add canPlayClips flag to annotation layers and use those layers to limit playback to clips 2015-08-27 11:27:27 +02:00
j
83013bbe5e Update items when entities are renamed (fixes #2825) 2015-08-26 19:42:03 +02:00
j
944fe1a9dd only run migration if we have items 2015-08-07 17:32:17 +02:00
3da3bd37fd addClips: return error if item/in/out missing, not 500 2015-08-07 13:37:56 +02:00
j
819181726a slightly faster json serialization of annotations 2015-08-02 16:22:45 +02:00
f3fdded07d Edit.json: preload annotation users
The expensive part of fetching an edit is JSONifying the clips'
annotations. Profiling showed that the main cost was Annotation.json(),
and within that:

File: /srv/pandora/pandora/annotation/models.py
Function: json at line 216

Line #      Hits         Time  Per Hit   % Time  Line Contents
==============================================================
216                                               def json(self, layer=False, keys=None, user=None):
217       632          827      1.3      0.1          j = {
218       632      1048170   1658.5     89.6              'user': self.user.username,
219                                                   }

Obviously this join just moves some of the cost further out, but it
brings my micro-benchmark down from 1.3s to 0.3s.
2015-08-02 16:02:47 +02:00
ab5a20d3a2 Treat findEdits({}) like findEdits({query: {}}) (fixes #2820) 2015-07-22 21:37:55 +02:00
d3c18a5859 editAnnotation: explicitly refuse to change layer, fixes #2818 2015-07-14 10:48:05 +02:00
1ef7101761 annotations: fix 'unkown' typo 2015-07-14 10:47:00 +02:00
j
5e6b054896 extend cookie age if its still used 2015-06-30 20:02:09 +02:00
j
9208e09dd2 sync config documentation 2015-06-26 07:27:56 +00:00
j
1a2f051bdd fix documentation update 2015-06-26 07:27:13 +00:00
j
9758b7d312 fail if entity is unknown 2015-06-24 16:41:49 +02:00
j
ce701d38d0 space 2015-06-24 16:41:11 +02:00
j
adb831ce70 dont turn data into string, fixes #2797 2015-05-28 13:10:39 +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
9191a9c196 extension should be lowercase 2015-05-23 11:06:22 +02:00
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
7359a24d78 keep video height if its < profile height 2015-05-22 19:01:05 +05:30
8b0459592c logError: log HTTP_USER_AGENT
include user agent in error text
2015-05-20 12:38:49 +02:00
3ad9d4821b Fix findEntities( ... name == x ... ), fixes #2769 2015-05-20 12:30:31 +02:00
fe7f961ff6 Entity: fix name_find when alternativeNames is non-empty
Previously, given:

    name = "foo"
    alternativeNames = ("bar", "baz")

then:

    name_find = '||foobar||baz||'
2015-05-20 12:16:32 +02:00
b7a83554ab Fix references to findDocument[s] in docstrings 2015-05-20 12:14:21 +02:00
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
34f2cfe290 avoid updating item if another annotation was added or edited since dispatching the update_item event 2015-05-20 00:20:50 +05:30
j
47a3a24a7d ignore messages that can not be serialized 2015-05-19 02:39:26 +05:30
j
af86445b2e use username not user 2015-05-18 23:01:19 +02:00
j
6dd9522cc5 never include empty layers 2015-05-13 21:59:17 +02:00
j
562a506d68 include user in change event 2015-05-08 08:39:31 +02:00
f9ba4d1bf1 findChangeLog: don't crash if sort is unspecified
This would crash:

    api.findChangeLogs(keys=[])

because there's no 'name' key for changelog entries. Instead, default to
chronological order, newest first.
2015-05-06 19:00:44 +02:00
514e1ad36d autocompleteEntities: fix lies in docstring 2015-04-30 22:49:31 +02:00
4d6466779f autocomplete: fix typo in docstring 2015-04-30 22:48:07 +02:00
j
e7f83f674e add inital implementation for a websocket, disabled by default for now 2015-04-28 23:05:15 +05:30
j
7aa609c246 make sure app.tasks gets loaded 2015-04-28 22:34:45 +05:30
c2e7ac3190 signup: fix error documentation, require email
email is required by the UI, and if you don't provide
it this method raises KeyError anyway.
2015-04-28 18:13:25 +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
abf445b7f1 faster edits 2015-04-25 19:02:34 +02:00
j
e666159811 faster find queries 2015-04-25 19:02:20 +02:00
j
9197591bb6 tune smart clip queries 2015-04-25 16:13:42 +02:00
j
e604ba73bd remove debug output 2015-04-25 13:08:24 +02:00
j
8abed26dc9 make sure alternative names are unique too, also fixes #2754 2015-04-23 17:20:00 +05:30
j
5b7b389661 ignore case checking for existing entities, check for alternative names too, migrate existing double entries, fixes #2754 2015-04-23 12:55:11 +02:00
j
9d3c50fcec ignore undefined entity data 2015-04-21 15:34:37 +05:30
j
0b103afeca minify before overwriting old file; oxjs removes old tree, always build geo 2015-04-18 16:06:56 +05:30
rolux
2ad4aad1c5 fix typo in config documentation 2015-04-20 10:48:04 +02:00
rolux
442e847747 fix typo in config documentation 2015-04-20 10:47:35 +02:00
rolux
3208db2fb0 update config documentation 2015-04-20 10:46:00 +02:00
j
2dc081b8aa store name, remove unused keys 2015-04-17 16:01:49 +01:00
j
10183a9f06 only create index in sqlfindindex not during migration 2015-04-17 11:34:44 +01:00
j
9cbf62267f split data migration into extra step 2015-04-17 11:26:56 +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
e851dcabfb entities are not links 2015-04-16 20:02:31 +00:00
j
c59fb1596f fix entities with ' in name 2015-04-16 20:50:59 +05:30
j
1fb075a350 rename layer 2015-04-16 10:53:05 +01:00
j
ff5d9633ce add db index on changelog.created 2015-04-15 15:00:52 +05:30
j
5e8294b1c0 function to merge two users 2015-04-15 14:59:42 +05:30
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
j
2325c71c21 fix limit by created 2015-04-14 20:13:19 +01:00
rolux
71fd1314cf document new layer/autocomplete config option 2015-04-14 19:59:18 +01:00
j
3e0bd078d0 pass autocomplete with layer, support autocomplete for leyers with filters, fixes #2736 2015-04-14 19:49:22 +01:00
j
c73ac10ed4 log addEntity in changelog 2015-04-14 19:15:59 +01:00
j
ae55130f47 add subtitles offset, fixes #2732 2015-04-14 15:53:47 +01:00
j
083fabc208 include first annotation as annotation id for clips 2015-04-02 13:43:46 +02:00
j
ea52722d9f show date instead of undefined in results grid, fixes #2727 2015-03-29 22:54:05 +05:30
j
253125e3c6 pad.ma does not have year 2015-03-28 14:27:55 +01:00
j
7b401cfe28 round duration to 3 2015-03-26 20:28:07 +05:30
j
bf1dde53d6 fix ignoring media files without instances 2015-03-23 11:27:34 +05:30
j
15e2f1e844 exit on error 2015-03-20 05:31:05 +00: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
1ed91da4e0 fix import 2015-02-26 06:07:18 +00:00
j
deda6252f1 keep entity annotation find/sort values in sync with entities 2015-02-26 06:04:16 +00:00
j
7377de62f7 remove all sessions of user on signout, fixes #2700 2015-02-25 18:17:35 +00:00
j
90a49b2a4d ui.onload -> user.script, fixes #2697 2015-02-21 10:32:48 +00:00
j
441cb9892a allow updates of file metadata for files with info 2015-02-21 15:35:01 +05:30
j
6693bfcd0f return document or 404 no 500 2015-02-20 15:13:23 +00:00
j
2a63a3b300 dont include null values in lookup 2015-02-16 16:12:44 +00:00
j
484b33e39d add option to return item keys in findAnnotation 2015-02-16 16:10:45 +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
a2e23739b8 return id in response, fixes #2058 2015-02-14 18:29:58 +00:00
j
f144a020ec typo 2015-02-13 17:32:12 +00:00
j
f7bbcf027a fix findvalue for entity annotations 2015-02-13 15:22:14 +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
b5212f2662 add leading word matches, fixes #2663 2015-02-06 15:16:41 +05:30
j
ad8db3a293 return html value for entities 2015-02-06 15:11:19 +05:30
j
d492619be6 entity names are only unique by type 2015-02-06 12:42:19 +05:30
j
c1066ad7f1 user agent might not be set 2015-02-06 11:08:10 +05:30
j
243c1958c1 dont import empty subtitles 2015-02-06 10:57:14 +05:30
j
ed5bc510a9 ignore subtitles with in > out 2015-02-05 18:29:18 +05:30
j
ea6a79cc10 always use ui.part.documents and ui.part.entities, remove ui.document/ui.entity from default config, fixes #2064 2015-02-05 15:57:37 +05:30
j
809486b43c cropped thumbnails of image documents 2015-02-05 08:08:28 +00:00
j
9273d7b3ba make subtitles in/out/value unique before importing 2015-02-04 15:56:37 +05:30
j
9a3c24b2ab only call update_timeline once during first import, adds empty clips twice otherwise 2015-02-04 15:10:51 +05:30
j
4ed0d56f4f add mkv cues to audio only files to fix seeking in firefox 2015-02-04 00:09:22 +05:30
j
28e8676f33 add ui.part.entities to config 2015-02-03 23:20:35 +05:30
j
437391caf9 load info from stream in file has no info 2015-02-03 23:20:16 +05:30
j
83393ee385 name must be unicode 2015-02-03 18:44:05 +01:00
j
f1f9c7369b fix default itemview for existing lists 2015-01-29 08:54:27 +00:00
j
bb1f17e241 fix default list view 2015-01-29 14:10:32 +05:30
j
5810efbc4a limit canEditFeatured* to staff/admin 2015-01-25 11:23:32 +05:30
j
5347c2e619 dont fail if condition does not have a value 2015-01-24 16:00:24 +05:30
j
708e6e5b2c fixx add movie 2015-01-24 15:49:57 +05:30
j
5dc7564b4f make init_db less verbose 2015-01-19 18:03:10 +00:00
j
bf65abae55 turn database initialization into a manage.py command 2015-01-19 16:34:21 +01:00
j
6cd2eaf93a extract some information about currently running encoding jobs 2015-01-08 17:01:03 +01:00
j
e1bc418e0c use one version of ffmpeg for all tasks, remove avconv dependency, fixes #2606 2015-01-05 16:07:55 +00:00
j
9efd77724d add option to select default view for list in dialog and use if user has no list settings, fixes #2636 2015-01-02 00:26:04 +01:00
j
24f81cdeae add item as valid key for findAnnotations 2014-12-28 11:39:08 +01:00
j
f1db36dd26 dont fail with no added annotations 2014-12-23 15:21:05 +00:00
j
3b8abd7d23 fix editing annotation in/out 2014-12-26 13:00:54 +00:00
j
6741ae85e6 add default values for entities to conifg.*.json 2014-12-26 12:43:49 +00:00
j
913599697e entities can be empty 2014-12-26 12:19:36 +00:00
j
139a5e3722 handle cut issues 2014-12-23 12:49:59 +00:00
rolux
ca197eafaf update config docs 2014-12-23 12:38:22 +00:00
j
6662872225 remove unused import 2014-12-23 11:28:42 +00:00
rolux
2e3d828b08 config bug 2014-12-23 11:27:05 +00:00
j
4c582c14b5 better related name 2014-12-22 14:29:30 +00:00
j
dc1cd6e410 remove videoprefix from config, defined by backend 2014-12-22 10:51:13 +00:00
rolux
f3af1b70a0 remove site.flags, add 'flag' item key property; update 0xDB config; update filter.js 2014-12-22 10:43:23 +00:00
j
6c6693e922 api rename: getPlaceNames/getEventNames to getPlaces and getEvents, fixes #2609 2014-12-22 10:35:39 +00:00
j
ed8f8517c5 rename api: statistics->getStatistics, fixes #2603 2014-12-22 10:31:23 +00:00
j
ebcd419854 rename api, sortName->getSortName; add getSortTitle: fixes #2605 2014-12-22 10:29:27 +00:00
rolux
0be16d93a6 config docs (wording) 2014-12-21 14:51:42 +00:00
rolux
90173cce4b add example entity to default config 2014-12-21 14:47:47 +00:00
rolux
ea1a94e9e4 update api docs (omissions, wording, typos) 2014-12-21 13:03:49 +00:00
rolux
0f1ecec5b5 update api docs (find) 2014-12-21 12:46:35 +00:00
rolux
8f8fab9522 update config docs (reload vs restart) 2014-12-21 11:59:58 +00:00
rolux
2ba41cd89d update confic docs (minor changes) 2014-12-21 11:53:29 +00:00
rolux
1e3daf4b33 update confic docs ('random' item key, 'additionalSort') 2014-12-21 11:44:35 +00:00
rolux
0dd956e231 update api docs ('my groups' query) 2014-12-21 11:34:41 +00:00
rolux
07e35a8ab2 update config docs (enums, 'My Videos' list) 2014-12-21 11:31:17 +00:00
rolux
f77c1174a3 minor config update 2014-12-20 20:15:42 +00:00
rolux
ab892a78a8 config docs, minor update 2014-12-20 20:09:37 +00:00
rolux
1f39230989 config docs, minor update 2014-12-20 19:54:57 +00:00
rolux
f200672295 config docs, minor update 2014-12-20 19:51:46 +00:00
rolux
4ff0c41c64 more config documentation 2014-12-20 19:34:28 +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
0367076f8f update config documentation 2014-12-20 16:55:19 +00:00
rolux
869d3f548e update config documentation 2014-12-20 16:39:24 +00:00
rolux
d5643722bc update config documentation 2014-12-20 16:32:36 +00:00
rolux
98cc4c5f9a minor change 2014-12-19 19:36:34 +00:00
j
f56218e33a dont fail if /api/upload is called without the right arguments, render api page: fixes #2611 2014-12-19 16:02:32 +00:00
rolux
31c3cc908b cosmetics 2014-12-19 15:49:16 +00:00
rolux
23ea99734d add missing link in docs 2014-12-19 15:47:15 +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
5ac0c04d37 update api docs 2014-12-19 13:20:53 +00:00
rolux
4a084d8405 update api docs 2014-12-19 12:59:10 +00:00
rolux
1ddc23b9f3 update api docs 2014-12-18 22:16:37 +00:00
j
0e425c6df1 dont create torrent file if torrents are disabled 2014-12-18 21:46:18 +00:00
rolux
74772171c2 cosmetic changes 2014-12-18 20:59:49 +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
ec508dd6b7 update api docs 2014-12-18 18:43:35 +00:00
j
3088beb5bc layer 2014-12-18 18:26:34 +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
b78cc2c3f0 update api docs 2014-12-18 14:51:35 +00:00
rolux
51ad1475e0 update api docs 2014-12-18 13:49:51 +00:00
rolux
f38d3441a0 typo 2014-12-18 13:40:41 +00:00
rolux
cf836ec172 add api docs 2014-12-18 13:38:20 +00:00
j
beca371b43 handle unknown entities. 2014-12-17 19:20:00 +00:00
j
a1008f87c9 findChangeLogs is bound to canManageUsers 2014-12-17 14:01:06 +00:00
j
ed7c5b8a6d its created not date. 2014-12-17 13:56:45 +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
34506d5b99 entity sort name 2014-12-16 17:44:05 +00:00
j
50fcb08a86 pass type 2014-12-16 16:45:35 +00:00
j
901bd37e90 resolve entity to name, get_by_name for add/edit annotation api calls 2014-12-16 16:39:45 +00:00
j
536834a03c use name sort for entities if sortType is person 2014-12-16 15:46:04 +00:00
j
15fb864d74 get entity by id after all 2014-12-16 15:21:24 +00:00
j
61bf668957 only return name, leading matches first 2014-12-16 14:59:53 +00:00
j
d52dc11b4c get entity by name 2014-12-16 14:59:21 +00:00
j
44ae4db25a rename error log api, fixes #2591 2014-12-16 13:44:42 +00:00
j
2f154aa610 add basic changelog api 2014-12-16 13:44:27 +00:00
j
3946875188 chnage editEntities argument names, fixes #2594 2014-12-16 13:36:37 +00:00
j
cfa89206fe add autocompleteEntities 2014-12-01 19:25:01 +01:00
j
290994fceb update config for all sites 2014-12-01 18:13:17 +01:00
j
c0e665eb67 only match sections at top level 2014-12-01 18:12:22 +01:00
rolux
ea21bde560 merge config changes (documentation) 2014-12-01 17:36:48 +01:00
j
73f5a4cb10 more entity defaults 2014-12-01 17:23:11 +01: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
b01ec5ffef add canManageEntities to config.0xdb.jsonc 2014-11-29 13:32:02 +01:00
j
35d978d4c2 migrate celery settings to BROKER_URL 2014-11-26 21:03:27 +01:00
j
9c967c7ac4 update pdf.js to v1.0.907 2014-11-24 00:56:52 +01:00
j
613faa2e3b update poster ratio saving poster, fixes #2517 2014-11-21 18:58:42 +00:00
rolux
cd4002d005 padma/indiancinema config: format duration as HH:MM:SS 2014-11-21 18:23:23 +00:00
j
b8b91592b5 always include empty annotations 2014-11-21 16:24:49 +00:00
j
fb5a5c5cf7 add itemTitleKeys to config and move getItemTitle to its own file, use everywhere title strings are used 2014-11-21 14:26:50 +00:00
j
a9091db9ef clip_qs 2014-11-21 14:15:42 +00:00
j
c9fa0c78cd add missing imports 2014-11-20 18:30:12 +00:00
j
e98b97842e send 404 not 500 if document does not exist 2014-11-20 13:24:43 +00:00
j
b7ab390425 towards entity layer 2014-11-20 13:20:48 +00:00
j
1571ff4e2e add default canManageEntities 2014-11-20 13:19:33 +00:00
j
c6bd95050a typo 2014-11-20 12:41:41 +00:00
j
60a7beeb23 add user 2014-11-19 19:21:42 +00:00
j
97d8344822 turn <br> into space 2014-11-19 16:54:45 +00:00
rolux
3fa5fa76e9 add 'entities' entry to help 2014-11-19 16:05:23 +00:00
j
2627bff48f space 2014-11-18 18:27:13 +00:00
j
55f9f8b82b typo 2014-11-18 18:21:41 +00:00
j
80ce81ac67 add entities backend 2014-11-18 18:16:28 +00:00
rolux
e5d5ccd7b9 update api docs 2014-11-18 16:19:50 +00:00
rolux
e4842e023e update api docs 2014-11-18 15:57:16 +00:00
rolux
acee02f368 update api docs 2014-11-18 15:45:41 +00:00
j
928cc11663 wrap annotation updates into transactions 2014-11-18 14:55:21 +00:00
j
86ab36c6a6 dont fail without cuts 2014-11-18 14:54:41 +00:00
j
d6c10eb377 add getAnnotation, fixes #2572 2014-11-17 19:56:27 +00:00
j
1ac959623e fix #2570 2014-11-17 16:56:53 +00:00
j
25d794e803 create clips for all annotations 2014-11-17 16:56:30 +00:00
j
16f1dbca93 fix findClips for layers no in clipLayers 2014-11-17 14:12:29 +00:00
j
5a971909d0 dont reload config by default. 2014-11-16 20:41:12 +00:00
j
bf6c12ae0f use ffmpeg > 2.1 for mp4 frames if settings.FFMPEG is defined, fixes #2549 2014-11-16 20:34:55 +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
2a3062e029 fix melt scaling 2014-11-14 23:00:19 +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
8cb776eb51 compute edit duration more efficiently 2014-11-10 11:39:38 +01:00
j
e084766e69 add mange command to restart encodes after crash or ctl restart 2014-11-09 14:10:51 +00:00
j
fb32ec7d96 encode to tmp name and rename once done 2014-11-04 15:38:00 +02:00
j
62b07fcc8e handle unicode usernames/titles 2014-11-04 15:04:07 +02:00
j
02333c2ad0 canManageTitlesAndNames 2014-11-04 12:36:27 +02:00
j
d12121d229 more thumbnail cleanups 2014-11-01 18:09:33 +02:00
j
f4779195a2 fix pdf ratio 2014-11-01 15:42:16 +02: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
j
d6513d4570 return item id, exclude empty annotations 2014-10-26 17:44:36 +00:00
j
e95c9011e7 fix multilanguage resolution 2014-10-24 10:32:16 +01:00
j
cddf742efd partTitle->part_title, fixes #2515 2014-10-17 17:49:01 +02:00
j
91897832be dont try to escpe numbers 2014-10-17 17:04:47 +02:00
j
1f9e252ffb use ox.makedirs 2014-10-16 21:59:38 +02:00
j
d599781d50 allow users to only edit there own groups 2014-10-15 09:45:11 +00:00
j
ef0aca6acb allow users to edit groups but only show there groups, disable other groups to not allow removing them 2014-10-15 09:34:27 +00:00
j
aacc712869 only parse avconv major version 2014-10-10 15:58:54 +02:00
j
4c35340f38 add manage.py update_config_documentation 2014-10-08 17:55:55 +02:00
j
de8f9b7cd9 descriptions can contain quotes 2014-10-07 12:15:45 +02:00
j
f97acf8e2f only look at media files for languages 2014-10-06 14:51:53 +02:00
j
ce8803d100 dont use local ffmpeg if format is not webm 2014-10-06 10:14:39 +00:00
j
e4c6a671a6 fix mp4 encoding in ubuntu 14.04 2014-10-06 10:54:20 +02:00
j
ceb507020b data is passed to api functions now 2014-10-06 08:26:43 +00:00
j
c076579300 only get file if we have a chunk 2014-10-05 14:58:53 +02:00
j
991ef93876 totals admin: true -> capability, fixes #2504 2014-10-02 20:08:38 +02:00
j
dd2fca85a4 move sendReferrer into site, fixes #2505 2014-10-02 19:57:30 +02:00
j
a894a39c4d more groups api 2014-10-01 15:56:16 +02:00
j
bb8bef991f set h264 level to 3.0 (most compatible) 2014-09-30 14:00:40 +00:00
j
76960b4020 fix upload 2014-09-30 13:13:40 +00:00
j
c5fcb813e9 editGroup 2014-09-30 15:12:21 +02:00
j
80fdfb5e38 fix public_id migration for new installs 2014-09-30 13:01:29 +00:00
j
ed0a1acef2 fix typo 2014-09-30 14:43:01 +02:00
j
511858804a add Find: Group to Manage Users, #1878 2014-09-30 14:26:14 +02:00
j
3cdb0e23cc new api calls: getGroups/addGroup/removeGroup 2014-09-30 14:11:55 +02:00
j
7eb30d9776 load width/height into db after saving frame 2014-09-28 14:02:53 +00:00
j
76bbe09a05 cache frame width/height in db 2014-09-28 10:16:25 +00:00
j
4f9ed09ca1 serialize sitemap only once 2014-09-28 10:15:17 +00:00
j
decbf70027 remove unused variables 2014-09-27 19:44:23 +02:00
j
94336ceda7 fix language 2014-09-27 19:44:09 +02:00
rolux
714f495a3d build/ -> min/, Ox.UI/ -> UI/ 2014-09-26 16:54:20 +02:00
j
4ebd64becf fix melt cmd 2014-09-25 16:49:17 +02:00
j
5b25411a60 only use melt if USE_MELT is set 2014-09-25 16:18:13 +02:00
j
ada3bbe346 add optoin to use melt(MLT) to extract frames from H264 2014-09-25 15:28:08 +02:00
j
ac2f1a550f update pdf.js to use new iframe/postMessage api 2014-09-23 23:46:03 +02:00
j
f6d95265a6 disable canExportAnnotations on 0xdb 2014-09-22 17:11:49 +02:00
j
3232ce6989 rename Item.itemId to Item.public_id 2014-09-19 12:26:46 +00:00
rolux
ae4349bcbb add canExportAnnotations to config.pandora.jsonc 2014-09-19 12:19:30 +00:00
rolux
8e21856672 recover config.padma.jsonc, was removed in r4300 2014-09-19 12:18:44 +00:00
rolux
058350c241 add canExportAnnotations capability 2014-09-18 17:29:50 +02:00
j
f244476138 dont fail for clips without color 2014-09-16 08:52:46 +00:00
j
6949cab8c6 set language on main stream. fix language parsing 2014-09-03 14:35:34 +02:00
j
999de04ad8 only use frames that are ready. 2014-09-03 13:31:44 +02:00
j
50a318f4ad fix setting languages 2014-09-03 13:20:52 +02:00
j
e381609b9e remove tests, not used 2014-09-05 13:39:43 +02:00
j
4ab9d497ff add by language srt url 2014-09-02 14:25:27 +00:00
j
72d9dbf0f2 avoid passing open network connections to subprocesses, call Popen with close_fds=True 2014-09-02 14:24:12 +00:00
j
1556699723 support groups itemKey with special value , 1879 2014-09-02 13:26:14 +00:00
j
183c550078 use {username} not {user} #1879 2014-09-02 14:14:29 +02:00
j
bc3aa5364c expand {user} to user of list when creating default lists, #1879 2014-08-20 09:35:40 +00:00
j
f6939ff08e disable subtitle stream during video conversion 2014-08-04 16:08:49 +02:00
j
ac3c84cb9b support media.importFrames for direct uploads 2014-07-29 19:07:50 +02:00
j
df0c24628c really fix #2442 2014-07-29 18:37:01 +02:00
j
fec6258f71 fix path 2014-07-29 18:10:01 +02:00
j
cfa7628551 reload stream from db before updating after encode, fixes #2442 2014-07-29 17:43:38 +02:00
j
a520b7edaf dont include empty audioTracks array, fixes player view for items without audio tracks 2014-07-29 17:39:43 +02:00
j
f61cc7ee54 add support for audio tracks 2014-07-23 17:27:27 +02:00
j
dceb917316 add per annotation languages 2014-07-23 17:26:23 +02:00
j
68ead8a2af strip metadata 2014-07-20 12:06:54 +00:00
j
12fa7edb53 add annotationLanguages 2014-07-18 14:28:09 +00:00
j
139348b0d3 fix import 2014-07-18 14:21:10 +00:00
j
f0a5f5ddb7 check for avconv version and use new command line api if needed (to support Ubuntu 14.04) 2014-07-16 11:04:52 +00:00
j
f433495592 fix tasks.update_info 2014-07-09 18:29:17 +00:00
j
5005fddf69 turn updating info into task 2014-07-09 18:27:21 +00:00
j
08b8bd986a only show stats for selected files 2014-06-27 11:32:39 +02:00
j
e28542578d add canEditRightsLevel flag 2014-06-04 10:34:36 +03:00
j
e62c7d30f2 reset failed if encoding again 2014-06-04 09:53:39 +03:00
j
9aa23e421d fix Places with umlaut in hasPlaces mode, fixes #2399 2014-06-06 12:04:47 +00:00
j
df84cf1aa7 return private clips in smart edits, fixes #2393 2014-06-06 11:38:03 +00:00
j
4082dd57e5 support adding missing strings to config: language 2014-05-12 00:42:45 +02:00
j
1bcbd90b83 only show admin totals to admins 2014-05-06 19:01:34 +02:00
j
20de7ae5b1 add languages, language to list of mendatory config sections 2014-05-06 19:00:27 +02:00
j
68e4ac8f56 make links relative 2014-04-24 14:12:11 +00:00
j
df44b0daf4 make per item document info editable if user can edit item 2014-04-17 19:32:30 +00:00
j
c19f80f2e5 enable documents view in pandora config 2014-04-17 19:31:59 +00:00
j
fcbe552de3 fix stream uploads 2014-04-11 19:34:15 +00:00
j
14315455da remove debug 2014-04-11 19:17:46 +00:00
j
7cd152b1d5 refactor chunk upload: return offset, continue at server offset 2014-04-11 16:56:22 +00:00
j
22e3a9eedd upload chunks with offset. fail if uploaded file does not match oshash 2014-04-11 12:08:14 +00:00
j
4dca348b6e only get sequences for audio. fix offset calculation 2014-04-11 12:05:57 +00:00
j
be7ecc4a03 add videoSubtitles default 2014-04-09 18:08:39 +00:00
j
614e7f0d09 store on-load script on server (ui.onload), fixes #1850 2014-04-09 15:44:28 +00:00
j
ea2a5620f6 add config option to select available languages 2014-04-01 14:13:52 +00:00
j
3476a50c53 duration might not be set 2014-03-17 10:08:27 +00:00
j
c3b4a622ad json caches sort values, make sure they are up to date before updating json 2014-03-16 19:36:29 +00:00
j
7e0f7cf5fb remove debug statement 2014-03-16 15:11:59 +00:00
j
a911a62e12 title can contain html 2014-03-16 14:42:39 +00:00
j
9e74d03301 support words/wordsperminute for specific layer 2014-03-16 14:31:21 +00:00
j
220e091460 only add/remove empty clips as needed 2014-03-16 13:52:56 +00:00
j
6de05d4c9d available files are not wanted 2014-03-16 13:47:18 +00:00
j
765e1cd82c typo 2014-03-16 13:15:55 +00:00
j
9a454500b3 trigger load_subtitles again 2014-03-15 14:28:00 +00:00
j
360aa0d87d add empty clips 2014-03-15 14:10:37 +00:00
j
7ef70a04e0 dont use transaction for annotation import, fixes #2356 2014-03-13 10:25:29 +01:00
j
ad89e9ffed make sure path is normalized on first save 2014-03-12 20:23:59 +01:00
j
8d96cd80ce enable subtitles in config.pandora.jsonc 2014-03-12 20:23:28 +01:00
j
d8e20d9380 properly update item after removing selected video 2014-03-09 16:45:13 +00:00
j
c055c220e2 support merged download for specific resolution,format fixes #2353 2014-03-08 11:18:12 +00:00
j
2c3ff91c91 allow uploading videos to canAddItems 2014-03-05 20:29:01 +00:00
j
d2b3c436b6 rename students to researchers 2014-03-04 10:04:02 +00:00
j
160dbacbb0 useragents can be longer 2014-03-03 19:54:57 +00:00
j
93cd998fcf reset failed state on reupload 2014-03-02 10:32:35 +01:00
j
5805866ff9 students can edit documents 2014-02-28 14:17:55 +01:00
j
8ec3831b9e typo 2014-02-24 16:55:47 +05:30
j
a1acc6b3aa add default values to items without imdb 2014-02-24 16:54:58 +05:30
j
ab2949f815 expose audio channels 2014-02-24 16:53:51 +05:30
j
1c004ef207 only null string fields in sort 2014-02-24 15:52:55 +05:30
j
4874d97afa downloads only for upper user levels, use direct download (indiancine.ma) 2014-02-18 11:29:49 +00:00
j
36307a6060 remove type from backend, fixes #1949 2014-02-18 07:01:11 +00:00
rolux
c6afcafbdd fix #319 (remove annotation font size) 2014-02-18 06:33:24 +00:00
rolux
cfbeecd21e help: add empty documents entry, update config accordingly 2014-02-17 09:40:20 +00:00
j
5905336eac editRatio->videoRatio 2014-02-16 10:31:37 +00:00
j
92d24342fd add getEmbedDefaults api, fixes #2312 2014-02-16 10:16:31 +00:00
j
b2c7f3156d add getDocument api, fixes #2313 2014-02-16 10:15:45 +00:00
j
6321859796 support uploading videos in any of the supported resolutions, to avoid upscaling 2014-02-15 16:13:43 +00:00
j
d94b5d1db0 fix deleting documents 2014-02-14 13:35:40 +00:00
j
88068794e4 merge parts into one file on download 2014-02-13 18:48:47 +00:00
j
2ceaac6c6d set error if upload file can not be decoded 2014-02-13 12:09:49 +00:00
j
4fe4070e1f update facets if layer in facet_keys 2014-02-13 11:08:28 +00:00
j
d04269ccc1 add item Documents view to pad.ma config 2014-02-13 05:59:23 +00:00
j
c41fbbc208 fix sort by cliptext, index is clip property 2014-02-12 12:42:25 +00:00
rolux
aea9d1a439 remove user.ui.clipSort (this is editSort) 2014-02-12 12:19:24 +00:00
j
e7431d4d5b use findUsers to get newsletter status of selected users, fixes #2276 2014-02-12 11:40:02 +00:00
j
58e787efd7 wrap adding many clips in transaction, should be faster 2014-02-09 11:30:40 +00:00
j
545710528e additionalSort -> user.ui.listSort 2014-02-09 11:29:00 +00:00
j
b50bf7a630 string layers need facets now 2014-02-09 09:58:13 +00:00
j
81aa990988 string layers are facets too, to fix exact matches 2014-02-09 09:41:34 +00:00
rolux
b894735fbd update user.ui.editSort 2014-02-09 06:42:21 +00:00
rolux
78a0692e9c config: additionalSort -> user.ui.listSort, update editSort accordingly 2014-02-09 05:19:15 +00:00
j
77b19abd74 only return requested keys 2014-02-09 05:06:37 +00:00
j
fbaa24b9aa support nested smart edit queries 2014-02-07 10:13:49 +00:00
j
cfe8691f1a really fix sortClips for smart edits 2014-02-07 09:49:25 +00:00
j
920e6ccff9 also sort smart lists 2014-02-07 09:45:43 +00:00
j
0e71ada256 support creating edit with clips 2014-02-07 07:23:38 +00:00
j
f95fc3db6e allow adding 0 frame clips 2014-02-07 07:23:18 +00:00
j
875cbbeaa7 clip order 2014-02-07 06:47:06 +00:00
j
ec946213e7 allow larger smart edits for now(1000) 2014-02-07 04:41:01 +00:00
j
5271731a77 add edit migration 2014-02-07 04:24:57 +00:00
j
db06621528 fix clips query for smart edits 2014-02-06 14:22:53 +00:00
rolux
7475caee10 config: add user.ui.editSelection .editSort and .editView 2014-02-06 08:54:36 +00:00
j
a2473f6ce4 set default query on smart edits 2014-02-05 14:35:59 +00:00
j
ccd214ecb4 limit clips in smart lists to 100, fix items for smart lists 2014-02-05 13:50:23 +00:00
j
f8ba4ed48f dont try to sort smart lists. 2014-02-05 13:30:54 +00:00
j
b2b2649420 make smart edits return clips inline 2014-02-05 13:21:17 +00:00
j
7a4bab0e84 smart lists 2014-02-05 13:20:48 +00:00
j
8aafc4f0b9 add smart edit support to backend 2014-02-05 11:27:17 +00:00
j
e3bf14dab8 send Access-Control-Allow-Origin but no data for OPTIONS requests 2014-02-05 06:37:00 +00:00
j
e02f1eb6df move sitename to end for static pages, fixes #2118 2014-02-03 09:35:15 +00:00
j
f34bdd6631 add sorting by type=time item keys, fixes #2136 2014-02-03 09:24:24 +00:00
j
3c1d3bbcb2 update item sort after adding document to item, fixes #2153 2014-02-03 08:54:37 +00:00
j
ef6b5e7071 add CORS header to timeline and frame 2014-02-02 19:46:27 +00:00
rolux
9f1d524069 Indiancine.ma config: update download capability 2014-02-02 18:52:31 +00:00
rolux
401c4bfc86 fix #2139 (Indiancine.ma: No download for admins/staff is too restrictive) 2014-02-02 18:51:34 +00:00
j
522af49a73 wrap image urls in pandora.getMediaURL to add option to load image from another domain 2014-02-02 11:30:25 +00:00
j
17586c1d2a cleanup document thumbnails 2014-02-02 06:35:04 +00:00
j
167de4cc97 add thumbnails of pdf pages #2148 2014-02-02 06:30:58 +00:00
j
ee80dbc502 allow more things at end of place/event names: '")], fixes #2145 2014-02-01 20:09:38 +00:00
rolux
da37ab02cd fix #2135 (change the semantics of private back to initial intention) 2014-02-01 17:09:58 +05:30
j
a1af2bea9c fix pdf width 2014-02-01 17:04:40 +05:30
j
debe02e800 fix typo 2014-01-27 12:50:51 +00:00
j
c5aefa2f00 fix finding alternative titles fixes #2123 2014-01-27 12:46:18 +00:00
j
b3e6658973 private items should not be visible to guests on indiancine.ma 2014-01-25 09:04:33 +00:00
j
2a708e72cf fix html in atom feed titles 2014-01-25 09:00:52 +00:00
j
4387d8e97e reset possible error if enoding again 2014-01-24 12:05:07 +00:00
j
b7c4d9af41 normalize newlines in encoding errors 2014-01-24 11:46:06 +00:00
j
189c6feba9 force itemKeys listed as default filters to be filters and print warning 2014-01-23 04:58:56 +00:00
j
357e696f0d add annotations to edits 2014-01-22 18:24:21 +00:00
j
32ec8c3f2b add data-type/value as valid global attributes to text (followup to r3900) 2014-01-22 12:30:51 +00:00
j
f3f47494f3 fix #2077 2014-01-22 08:21:36 +00:00
rolux
474957c125 add pandora.site.language (still unused) 2014-01-19 13:11:14 +05:30
rolux
b7273c377b cosmetic changes 2014-01-19 12:14:19 +05:30
j
c0022b1f86 fix sorting edits 2014-01-18 16:17:46 +00:00
j
2f9409d435 target might be unicode too 2014-01-18 11:29:26 +00:00
rolux
913eb99205 add user.ui.showReflections 2014-01-18 16:25:23 +05:30
j
effeb65115 unicode path issues, fixes #2069 2014-01-18 11:22:58 +00:00
rolux
13df4cd116 add missing k/v to static pages 2014-01-18 08:48:34 +00:00
j
94ded9d96b fix background for static /faq 2014-01-17 18:28:17 +00:00
j
4445a9086c include overview text in sitemap.xml 2014-01-17 18:24:34 +00:00
j
9d6a29a4f4 only include video metadata for rendered items (sitemap.xml) 2014-01-17 17:59:45 +00:00
j
880aa60945 inital version of document urls 2014-01-17 13:49:11 +00:00
j
dada4cbf4c fix findDocuments by id 2014-01-17 13:14:40 +00:00
j
49d1b7860d fix pdf urls 2014-01-17 08:49:15 +00:00
j
f522ba52f6 update templates 2014-01-16 13:12:10 +00:00
j
a672ddf1ec html/text item description 2014-01-16 13:11:45 +00:00
j
6eeb867f80 non-js item content 2014-01-16 13:11:19 +00:00
j
131ed9e4bd better indiancine.ma site description 2014-01-16 13:09:59 +00:00
j
adff8d22e3 use item_description in sitemap.xml 2014-01-16 12:04:10 +00:00
j
7b32cfbf5b include public and featured texts in sitemap and include on-js view for texts 2014-01-16 11:01:31 +00:00
j
3fb59e6a99 #1876 actor->cast, fix background for non js page 2014-01-16 10:02:08 +00:00
j
375a6ed659 symlink does not like unicode, pass utf-8 2014-01-16 17:26:17 +05:30
j
49057ac14a remove list option from addDocument, fixes #2032 2014-01-16 05:30:54 +00:00
rolux
cc1d3923fe fix #2027 (Sort by Number of Documents is in the wrong place) 2014-01-15 16:55:41 +05:30
j
380852f77f dont double encode title 2014-01-11 10:31:54 +00:00
j
c1469b7097 dont overwrite id 2014-01-11 09:58:04 +00:00
j
d4ff2b60ef include more metadata in non-js page, fixes #1876 2014-01-11 09:51:03 +00:00
j
303662fb27 dont include annotations on non js page on 0xdb, fixes #1875 2014-01-11 09:34:54 +00:00
j
55a3a94a8a better title for search engines 2014-01-11 09:25:24 +00:00
j
7e07ff8fe6 disable documents view on pad.ma 2014-01-11 09:12:53 +00:00
j
651bef183d fix non-javascript fallback/search index 2014-01-11 09:02:37 +00:00
j
3ff178ed83 add option to add documents to all items in list 2014-01-09 08:05:35 +00:00
j
b26c5d282f fix sort by description in item view 2014-01-08 09:12:44 +00:00
j
b4b8e08231 fix adding items to empty list 2014-01-08 08:35:02 +00:00
j
e54c5a018c use name as default documents sort, index missing so far 2014-01-08 08:34:29 +00:00
j
d1014334be fix per item document description 2014-01-08 04:32:57 +00:00
j
573592092a null last 2014-01-07 16:19:27 +00:00
j
e1953b671d dimensions_sort 2014-01-07 15:34:07 +00:00
j
388f4c9d74 add key=item support to findDocuments 2014-01-07 14:00:20 +00:00
j
9a60e569d6 fixes #1999 2014-01-07 11:42:20 +00:00
j
5b72a33a95 use QuerySet in all managers 2014-01-07 11:05:42 +00:00
j
0e55faca0d update documents backend 2014-01-07 11:05:10 +00:00
rolux
a12e9624e1 config: add user.ui.document and documentSelection 2014-01-07 13:21:44 +05:30
rolux
eca82c8419 config: add user.ui.documents 2014-01-07 12:19:17 +05:30
rolux
99bf49fc86 config: add canEditDocuments capability 2014-01-07 11:01:34 +05:30
rolux
8749d9d674 config: add user.ui.documentSize, documentsSort and documentsView 2014-01-06 18:14:37 +05:30
rolux
0bcf2de927 config: add user.ui.showDocument 2014-01-06 18:07:15 +05:30
j
6b63239cf7 fix pdf ratio 2014-01-05 11:40:54 +00:00
j
ff13a30639 add resolution/pages to documents, use poppler-utils to extract pdf pages. 2014-01-04 12:29:11 +00:00
j
5705c9e74d typo 2014-01-02 14:07:02 +00:00
j
8103f01a36 add numberofdocuments 2014-01-02 13:54:35 +00:00
j
d1ed4ce79d fix permission error 2014-01-02 12:27:53 +00:00
j
19b8bcfc83 allow uploading/deleting multiple documents, fixes #1960. replace select option with item aware add button, fixes #1961 2014-01-02 10:11:27 +00:00
j
35cb81a19c update pdf.js 2013-12-31 16:34:23 +05:30
j
2abf8836bc use previewRatio as aspect ratio for audio files 2013-12-30 15:30:59 +05:30
j
c10f06ddae write joined locale as utf-8 2013-12-27 11:03:06 +00:00
j
ad7c36881c allow language attributes in text and annotations 2013-12-26 16:41:40 +00:00
j
6e49032602 add links to indiancine.ma info page 2013-12-26 08:35:41 +00:00
j
2ff13690f8 dont return json 404 for non existing old ids 2013-12-25 10:11:21 +00:00
j
c248a4c227 return thumbnails for images instead of full image 2013-12-23 12:32:23 +00:00
j
07363d3ada fix single letter id document urls 2013-12-23 12:19:11 +00:00
j
4eeb10e3ba use AZ id for document data path 2013-12-23 11:30:22 +00:00
j
81706fcf3b change document urls to be /documents/ID/name.ext 2013-12-23 11:26:48 +00:00
j
03e919e5ba add documents view 2013-12-23 07:50:22 +00:00
j
dc88fcd175 use _ for spaces in document urls, fixes #1955 2013-12-22 12:13:37 +00:00
j
d7d5008bbb dont use absolute url for upload, fixes #1939 2013-12-10 15:38:52 +00:00
j
4f01ed254a dont set ADMIN_MEDIA_PREFIX 2013-11-01 12:41:22 +01:00
j
c253df7bc9 allow signups while using alternative auth backend 2013-11-16 14:16:01 +00:00
j
8417f9e886 only add #embed if #embed is not in requested url 2013-11-16 11:48:08 +00:00
j
ef3083ab2c sort string should start with letters or numbers, fixes #19 2013-11-10 23:05:07 +00:00
j
dca703a4ee allow data-name attribute in texts and use for navigation 2013-11-10 22:01:25 +00:00
j
7dde9eb8ae add task functions to File 2013-11-10 18:30:34 +00:00
j
0ef598195c text names 2013-11-08 18:57:24 +00:00
j
7df2dd95c8 embed requested url not just time via oembed 2013-11-07 12:01:38 +00:00
j
72e760bb8f remove unused section from padma config 2013-11-01 11:57:12 +01:00
j
f092db3780 cleanup edit api docs 2013-10-26 14:01:04 +00:00
j
9bd9ce6ac3 add note about annotation ids 2013-10-26 13:56:10 +00:00
j
4fff8b0ddb use local name 2013-10-24 13:37:38 +00:00
j
3373dc1180 typo 2013-10-22 19:34:46 +00:00
j
808689c0c3 temp fix for sets 2013-10-22 19:17:12 +00:00
j
4eff60e25f fix day stats 2013-10-22 18:22:31 +00:00
j
4ca53d8c3b ignore robots 2013-10-22 18:12:45 +00:00
j
44e3a89faf another stat fix 2013-10-22 17:59:56 +00:00
j
c05bfae0a7 fix city stat 2013-10-22 17:57:14 +00:00
j
2644edb971 faster update_statistics 2013-10-22 17:50:35 +00:00
j
559140ca76 compute statistics on backend 2013-10-22 15:58:47 +00:00
j
198470e6d9 add db table for app settings 2013-10-22 15:57:05 +00:00
j
fbc3b6f8b7 keep encoding error in database and show in media view 2013-10-21 12:32:52 +00:00
j
1ac76c99df use Firefogg ffmpeg for direct uploads, to work around issues with 5.1 audio 2013-10-21 11:55:10 +02:00
j
7329d13324 import from 2013-10-21 11:53:22 +02:00