diff --git a/feedgen/__init__.py b/feedgen/__init__.py index e89a923..aef2c72 100644 --- a/feedgen/__init__.py +++ b/feedgen/__init__.py @@ -32,7 +32,7 @@ Note that for the methods which set fields that can occur more than once in a feed you can use all of the following ways to provide data: - + - Provide the data for that element as keyword arguments - Provide the data for that element as dictionary - Provide a list of dictionaries with the data for several elements @@ -131,6 +131,6 @@ You can test the module by simply executing:: - $ pythom -m feedgen + $ python -m feedgen """ diff --git a/feedgen/__main__.py b/feedgen/__main__.py index 1ff4d0a..833a897 100644 --- a/feedgen/__main__.py +++ b/feedgen/__main__.py @@ -20,12 +20,12 @@ def print_enc(s): if __name__ == '__main__': - if len(sys.argv) != 2 or not ( + if len(sys.argv) != 2 or not ( sys.argv[1].endswith('rss') \ or sys.argv[1].endswith('atom') \ or sys.argv[1].endswith('podcast') ): print_enc ('Usage: %s ( .atom | atom | .rss | rss | podcast )' % \ - 'pythom -m feedgen') + 'python -m feedgen') print_enc ('') print_enc (' atom -- Generate ATOM test output and print it to stdout.') print_enc (' rss -- Generate RSS test output and print it to stdout.') diff --git a/feedgen/ext/dc.py b/feedgen/ext/dc.py index d5c95e9..c4450a8 100644 --- a/feedgen/ext/dc.py +++ b/feedgen/ext/dc.py @@ -51,7 +51,7 @@ class DcBaseExtension(BaseExtension): :returns: The feed root element ''' DCELEMENTS_NS = 'http://purl.org/dc/elements/1.1/' - + feed = atom_feed for elem in ['contributor', 'coverage', 'creator', 'date', 'description', @@ -151,7 +151,7 @@ class DcBaseExtension(BaseExtension): def dc_creator(self, creator=None, replace=False): '''Get or set the dc:creator which is an entity primarily responsible for - making the resource. + making the resource. For more information see: http://dublincore.org/documents/dcmi-terms/#elements-creator @@ -419,7 +419,7 @@ class DcEntryExtension(DcBaseExtension): ''' def extend_atom(self, entry): '''NYI. Differs from RSS Implementation? - + ''' return entry diff --git a/feedgen/ext/podcast.py b/feedgen/ext/podcast.py index 26494fe..14a8a95 100644 --- a/feedgen/ext/podcast.py +++ b/feedgen/ext/podcast.py @@ -112,7 +112,7 @@ class PodcastExtension(BaseExtension): def itunes_block(self, itunes_block=None): '''Get or set the ITunes block attribute. Use this to prevent the entire - podcast from appearing in the iTunes podcast directory. + podcast from appearing in the iTunes podcast directory. :param itunes_block: Block the podcast. :returns: If the podcast is blocked. @@ -286,10 +286,10 @@ class PodcastExtension(BaseExtension): _itunes_categories = { 'Arts': [ 'Design', 'Fashion & Beauty', 'Food', 'Literature', 'Performing Arts', 'Visual Arts' ], - 'Business' : [ 'Business News', 'Careers', 'Investing', + 'Business' : [ 'Business News', 'Careers', 'Investing', 'Management & Marketing', 'Shopping' ], 'Comedy' : [], - 'Education' : [ 'Education', 'Education Technology', + 'Education' : [ 'Education', 'Education Technology', 'Higher Education', 'K-12', 'Language Courses', 'Training' ], 'Games & Hobbies' : [ 'Automotive', 'Aviation', 'Hobbies', 'Other Games', 'Video Games' ], diff --git a/feedgen/ext/podcast_entry.py b/feedgen/ext/podcast_entry.py index adda032..179694c 100644 --- a/feedgen/ext/podcast_entry.py +++ b/feedgen/ext/podcast_entry.py @@ -95,7 +95,7 @@ class PodcastEntryExtension(BaseEntryExtension): def itunes_block(self, itunes_block=None): '''Get or set the ITunes block attribute. Use this to prevent episodes - from appearing in the iTunes podcast directory. + from appearing in the iTunes podcast directory. :param itunes_block: Block podcast episodes. :returns: If the podcast episode is blocked.