rename task to csv export

This commit is contained in:
simon 2021-12-29 23:20:18 +07:00
parent 0d5e77d0ac
commit b880a5d76c
Signed by: simon
GPG Key ID: 2C15AA5E89985DD4
3 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ Trailers are named in this style, a more flexible solution is in pending:
## Fix Movie Names ## Fix Movie Names
Sometimes Emby get's it wrong. Sometimes this script can get it wrong too. The *Fix Movie Names* function goes through the movie library looking for filenames that don't match with the movie name as identified in emby. Sometimes Emby get's it wrong. Sometimes this script can get it wrong too. The *Fix Movie Names* function goes through the movie library looking for filenames that don't match with the movie name as identified in emby.
## DB export ## CSV export
Export the library to csv files. Calles the Emby API to get a list of movies and episodes and exports this to a convenient set ov CSV files. Export the library to csv files. Calles the Emby API to get a list of movies and episodes and exports this to a convenient set ov CSV files.
## setup ## setup

View File

@ -55,11 +55,11 @@ class Interface:
def build_menu(self): def build_menu(self):
""" build the menu based on availabe keys in config file """ """ build the menu based on availabe keys in config file """
menu = ['All', 'Movies', 'TV shows', 'Trailer download', menu = ['All', 'Movies', 'TV shows', 'Trailer download',
'Fix Movie Names', 'DB export', 'Exit'] 'Fix Movie Names', 'CSV export', 'Exit']
config_keys = self.CONFIG.keys() config_keys = self.CONFIG.keys()
if 'emby' not in config_keys: if 'emby' not in config_keys:
menu.remove('Fix Movie Names') menu.remove('Fix Movie Names')
menu.remove('DB export') menu.remove('CSV export')
if 'ydl_opts' not in config_keys: if 'ydl_opts' not in config_keys:
menu.remove('Trailer download') menu.remove('Trailer download')
return menu return menu
@ -144,7 +144,7 @@ class Interface:
trailers.main() trailers.main()
elif menu_item == 'Fix Movie Names': elif menu_item == 'Fix Movie Names':
id_fix.main() id_fix.main()
elif menu_item == 'DB export': elif menu_item == 'CSV export':
db_export.main() db_export.main()
def print_menu(self, current_row_idx): def print_menu(self, current_row_idx):

View File

@ -287,7 +287,7 @@ class ListParser:
def main(): def main():
""" main to regenerate csv files """ """ main to regenerate csv files """
print('recreating db files') print('recreating csv files')
# stop if scan in progress # stop if scan in progress
lib_state = EmbyLibrary() lib_state = EmbyLibrary()
if not lib_state.ready: if not lib_state.ready: