adamgot / python-plexlibrary

Create and maintain dynamic Plex libraries based on recipes.
BSD 3-Clause "New" or "Revised" License
204 stars 40 forks source link

New install .. keeps creating the same library #88

Closed Radikaltimes closed 4 years ago

Radikaltimes commented 4 years ago

i ran python3 plexlibrary hulu .. it created the library and started to populate it .. got around 74 shows and error out. .. about 2 hours later started again and created another library with the same name. i have no setup any cron ...

any ideas?

Radikaltimes commented 4 years ago

here is the error. Setting the sort titles for the 'TV Shows Hulu' library... Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "plexlibrary/main.py", line 3, in main() File "plexlibrary/plexlibrary.py", line 64, in main r.run(args.sort_only) File "plexlibrary/recipe.py", line 637, in run missing_items, list_count = self._run() File "plexlibrary/recipe.py", line 613, in _run all_new_items = self._modify_sort_titles_and_cleanup(item_list=item_list, imdb_map=imdb_map, new_library=new_library, sort_only=False) File "plexlibrary/recipe.py", line 438, in _modify_sort_titles_and_cleanup return all_new_items UnboundLocalError: local variable 'all_new_items' referenced before assignment

Radikaltimes commented 4 years ago

100% my fault