Commit Graph

879 Commits

Author SHA1 Message Date
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
Will Thompson 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
Will Thompson 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
Will Thompson 4d6466779f autocomplete: fix typo in docstring 2015-04-30 22:48:07 +02:00
Will Thompson 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
Will Thompson 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
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 f97acf8e2f only look at media files for languages 2014-10-06 14:51:53 +02:00
j ceb507020b data is passed to api functions now 2014-10-06 08:26:43 +00:00
j 991ef93876 totals admin: true -> capability, fixes #2504 2014-10-02 20:08:38 +02:00
j 76960b4020 fix upload 2014-09-30 13:13:40 +00:00
j 80fdfb5e38 fix public_id migration for new installs 2014-09-30 13:01:29 +00:00
j 3cdb0e23cc new api calls: getGroups/addGroup/removeGroup 2014-09-30 14:11:55 +02: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 ada3bbe346 add optoin to use melt(MLT) to extract frames from H264 2014-09-25 15:28:08 +02:00
j 3232ce6989 rename Item.itemId to Item.public_id 2014-09-19 12:26:46 +00:00
j f244476138 dont fail for clips without color 2014-09-16 08:52:46 +00:00
j 999de04ad8 only use frames that are ready. 2014-09-03 13:31:44 +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 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 12fa7edb53 add annotationLanguages 2014-07-18 14:28:09 +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 1bcbd90b83 only show admin totals to admins 2014-05-06 19:01:34 +02:00
j 68e4ac8f56 make links relative 2014-04-24 14:12:11 +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 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 c055c220e2 support merged download for specific resolution,format fixes #2353 2014-03-08 11:18:12 +00:00
j a1acc6b3aa add default values to items without imdb 2014-02-24 16:54:58 +05:30
j 1c004ef207 only null string fields in sort 2014-02-24 15:52:55 +05:30
j 88068794e4 merge parts into one file on download 2014-02-13 18:48:47 +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
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 ef6b5e7071 add CORS header to timeline and frame 2014-02-02 19:46:27 +00:00
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 2a708e72cf fix html in atom feed titles 2014-01-25 09:00:52 +00:00
j 2f9409d435 target might be unicode too 2014-01-18 11:29:26 +00:00
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 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 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