Fix default library export type

This commit is contained in:
JonnyWong16 2020-10-15 10:56:28 -07:00
parent 401b75a76b
commit 82d9719eee
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ class Export(object):
def __init__(self, section_id=None, user_id=None, rating_key=None, file_format='csv',
metadata_level=1, media_info_level=1,
thumb_level=0, art_level=0,
custom_fields='', export_type=None, individual_files=False):
custom_fields='', export_type='all', individual_files=False):
self.section_id = helpers.cast_to_int(section_id) or None
self.user_id = helpers.cast_to_int(user_id) or None
self.rating_key = helpers.cast_to_int(rating_key) or None
@ -112,7 +112,7 @@ class Export(object):
self.art_level = helpers.cast_to_int(art_level)
self.custom_fields = custom_fields.replace(' ', '')
self._custom_fields = {}
self.export_type = str(export_type).lower() or 'all'
self.export_type = str(export_type).lower()
self.individual_files = individual_files
self.timestamp = helpers.timestamp()

View file

@ -6650,7 +6650,7 @@ class WebInterface(object):
def export_metadata(self, section_id=None, user_id=None, rating_key=None, file_format='csv',
metadata_level=1, media_info_level=1,
thumb_level=0, art_level=0,
custom_fields='', export_type=None, individual_files=False, **kwargs):
custom_fields='', export_type='all', individual_files=False, **kwargs):
""" Export library or media metadata to a file
```