Skip to content

Commit

Permalink
Merge branch 'release-2.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
cballenar committed Jul 22, 2017
2 parents 65bd3f4 + a7cb5dc commit 4d76a62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ You can get additional information such as the title, author, and (after the pre
The slides markup can also be accessed as a property and you can pass the images markup to grub() as a second argument to specify what images to convert to pdf. This is helpful if you only need a fraction of the images but it requires more work.

As of v2.7, the slides are now sorted.

.. code-block:: console
>>> # get entire markup
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

setup(name='slidegrubber',
version='2.6.1',
version='2.7',
description='Back up your SlideShare presentations to PDF.',
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down
7 changes: 6 additions & 1 deletion slidegrubber/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,12 @@ def get_slides_markup(self, soup):
if not slides_markup:
raise Exception('Dynamic slides are not supported')

return slides_markup
sorted_slides_markup = []
for slide in slides_markup:
n = int(slide.parent['data-index'])-1
sorted_slides_markup.insert(n, slide)

return sorted_slides_markup

def get_best_resolution(self, slides_markup):
"""Find best resolution available in markup."""
Expand Down

0 comments on commit 4d76a62

Please sign in to comment.