Skip to content

Commit

Permalink
Merge branch 'release-2.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
cballenar committed Jul 13, 2017
2 parents 68f42b4 + f6753cc commit 69ffbc8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ You can get additional information such as the title, author, and (after the pre
>>> s.author
u'The Author'
>>> s.output_path
u'/current_working_directory/my-slide-by-author.pdf'
>>> s.filename
u'my-slide-by-author'
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.

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.5.1',
version='2.6',
description='Back up your SlideShare presentations to PDF.',
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down
4 changes: 3 additions & 1 deletion slidegrubber/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SlideGrubber(object):
soup = None
title = None
author = None
filename = None
output_path = None
slides_markup = None

Expand All @@ -37,6 +38,7 @@ def __init__(self, url):
# get slide title and author from soup
self.title = self.get_title(self.soup)
self.author = self.get_author(self.soup)
self.filename = self.get_filename(self.soup)

# get array of slides img tags
self.slides_markup = self.get_slides_markup(self.soup)
Expand Down Expand Up @@ -129,7 +131,7 @@ def set_output(self, output_path):

# if no output filename, build from url
if output_file == '':
output_file = self.get_filename()
output_file = self.filename

# check filename for correct format
if output_file[-4:] != self.OUTPUT_FORMAT:
Expand Down

0 comments on commit 69ffbc8

Please sign in to comment.