Commit Graph

707 Commits

Author SHA1 Message Date
Toke Høiland-Jørgensen
0b577af48e Allow sorting on metadata keys.
This makes it possible to specify metadata keys for the albums_sort_attr
and medias_sort_attr configuration options. This is done by prefixing
the key with 'meta.', so e.g. albums_sort_attr = 'meta.order' will sort
albums on the 'order' metadata key (collected from the .md files in each
directory).

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-04-27 10:27:03 +02:00
Simon Conseil
894f7d6522 Bump version 1.1.0 2016-04-24 23:05:23 +02:00
Simon Conseil
71eee06e0d Update Changelog 2016-04-17 01:03:00 +02:00
Simon Conseil
72737a2b6c Update AUTHORS 2016-04-17 00:47:33 +02:00
Simon Conseil
4603eec81a Simplify test for #199 and add author to AUTHORS 2016-04-17 00:36:04 +02:00
Simon Conseil
f7b88dc216 Merge pull request #199 from thekad/bug/empty-iso-speed-ratings
Empty ISO speed ratings
2016-04-17 00:30:18 +02:00
Jorge Gallegos
3b4b3da145 This covers a few cases
Such as when the tuple is empty or the value is None
2016-04-07 10:38:31 -07:00
Jorge Gallegos
6eb570ceb7 Adding a test that showcases the bug
I found a couple of images where the ISOSpeedRatings value is an empty
tuple. This makes sigal sad.
2016-04-07 10:36:42 -07:00
Simon Conseil
32459d74e6 Merge branch 'galleria-fullscreen-icon' 2016-03-20 23:59:57 +01:00
Simon Conseil
df12b77204 Move icons in the galleria container. 2016-03-20 23:59:11 +01:00
Simon Conseil
56f7c95531 Replace map and fullscreen icons for galleria 2016-03-20 23:28:16 +01:00
Simon Conseil
da2f7d5bea Always show fullscreen icon for galleria 2016-03-20 22:52:22 +01:00
Simon Conseil
23951fea45 Update photoswipe 4.1.1 2016-03-06 00:05:23 +01:00
Simon Conseil
ecf6722e36 Use https for external resources, remove html5shiv. 2016-03-05 23:42:14 +01:00
Simon Conseil
ff01d1887c Update colorbox 1.6.3, jQuery 2.2.1, touchSwipe 1.6.15 2016-03-05 23:41:17 +01:00
Simon Conseil
e5cc7eb14b Fix hard-coded video mime-type in the galleria theme. (Ref #196) 2016-03-05 22:28:32 +01:00
Simon Conseil
b19f5adf3d Merge pull request #195 from dairiki/bug.escape-html
Enable autoescape in jinja templates
2016-02-29 23:05:32 +01:00
Jeff Dairiki
803c27aa63 Enable autoescape in jinja templates
Prior to this change, special HTML characters in metadata (e.g. titles)
were not being escaped.
2016-02-25 14:14:13 -08:00
Simon Conseil
3e8ef322cf Fix encoding error with the feed plugin on PY2 (Ref #194) 2016-02-22 23:58:43 +01:00
Simon Conseil
b4d1057a58 Fix ZeroDivisionError when ExposureTime contains null values (fix #193) 2016-02-16 00:16:14 +01:00
Simon Conseil
578636b194 Fix video filename for tests.
The error was not detected is the _build was present. So this commit also
removes the _build before each test.
2016-02-01 00:43:22 +01:00
Simon Conseil
ad6bef1923 Fix if first thumbnail cannot be found. 2016-01-31 23:19:18 +01:00
Simon Conseil
14f6b93756 Ensure that locale is correctly reset if the test fails. 2016-01-31 00:50:44 +01:00
Simon Conseil
fce70828fc Reset logger level after the test 2016-01-31 00:06:27 +01:00
Simon Conseil
744ac2ed24 Merge branch 'debug-raise-exceptions' 2016-01-30 23:50:18 +01:00
Simon Conseil
ca408015e7 Add keywords 2016-01-30 23:49:51 +01:00
Simon Conseil
a93bdcc4c7 Test that exception is raised in debug mode. 2016-01-30 23:44:24 +01:00
Simon Conseil
a874a0dbea Raise exceptions in debug mode. 2016-01-23 15:49:06 +01:00
Simon Conseil
350a81214a Merge pull request #98 from saimn/feed_plugin
Add a feeds plugin, using all images sorted by date.
2016-01-23 15:45:32 +01:00
Simon Conseil
c5d6497bd5 Add a feeds plugin, using all images sorted by date. 2016-01-23 15:28:28 +01:00
Simon Conseil
ea3eae4657 Merge pull request #192 from trapperhoney/master
Implement album sorting
2016-01-19 00:35:29 +01:00
Craig Gallek
86b5967071 author tag 2016-01-18 18:12:42 -05:00
Craig Gallek
a92dc0e6d9 remove temp swp file 2016-01-18 18:05:16 -05:00
Craig Gallek
589eec0d21 Implement album sorting
This adds an 'albums_sort_attr' configuration modeled off of the
'medias_sort_attr'.  It defaults to the existing behavior of sorting
sub-albums by directory name.  It allows sort by any metadata attribute
stored in the album metadata file.

The existing album sort test wasn't really verifying album sorting
behavior, so I just re-wrote the whole thing to include tests for the
old behavior and new.

This should resolve issue #121
2016-01-18 17:29:28 -05:00
Simon Conseil
b11cb28ff3 Catch cPickle.PicklingError on python 2 (#191). 2016-01-18 22:22:30 +01:00
Simon Conseil
6a21251b56 Merge pull request #185 from Natim/140-support-gif-images
Add GIF support — Fixes #140
2016-01-08 12:33:11 +01:00
Rémy HUBSCHER
dba2aec8ec Use pytest.mark.parametrize r=@saimn 2016-01-08 12:23:23 +01:00
Rémy HUBSCHER
ff808fc621 Add myself to AUTHORS 2016-01-08 11:48:00 +01:00
Rémy HUBSCHER
c196fc64a5 Validate GIF always use_orig and generate thumbnail. 2016-01-08 11:46:51 +01:00
Rémy HUBSCHER
f3300bfb52 Make sure GIF format is accepted in the library. 2016-01-08 11:35:23 +01:00
Rémy HUBSCHER
cb17a03316 Make sure gif files are zipped correctly. 2016-01-08 11:19:41 +01:00
Rémy HUBSCHER
7f3ee7a348 Add GIF support — Fixes #140 2016-01-08 11:08:07 +01:00
Simon Conseil
6e279bbff4 Merge branch 'pr/187' 2016-01-08 00:45:07 +01:00
Simon Conseil
f819f883d4 Fix test with fraction exposure 2016-01-08 00:13:07 +01:00
Simon Conseil
0622f2666c xfail GPS test only for Pillow 3.0.0 2016-01-08 00:12:33 +01:00
Simon Conseil
eaddfe587e Test Pillow versions with tox 2016-01-08 00:11:40 +01:00
Simon Conseil
c044d276b3 Show Pillow version in the tests header 2016-01-08 00:11:17 +01:00
David Siroky
485b258692 better exposure time fraction 2016-01-07 23:30:20 +01:00
Simon Conseil
d9e8e1f1e0 Use final release of Pillow 3.1.0 2016-01-07 23:28:35 +01:00
Simon Conseil
11245351db Merge pull request #189 from saimn/pillow
Run tests with Pillow 3.1.0.rc1
2016-01-02 00:51:59 +01:00