Hi can I get some help with what is probably an easy fix please.
I've started using this python utility https://github.com/adamgot/python-plexlibrary where I've saved the files to /mnt/user/appdata/other/python-plexlibrary-master. When I run the python utility via command line from the folder e.g.
python plexlibrary movies_recommended
everything works fine, but when I try to do via script e.g:
#!/bin/bash
cd /mnt/user/appdata/other/python-plexlibrary-master
python plexlibrary movies_recommended
exit
I get this error:
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/mnt/user/appdata/other/python-plexlibrary-master/plexlibrary/__main__.py", line 3, in
main()
File "plexlibrary/plexlibrary.py", line 61, in main
r.run(args.sort_only)
File "plexlibrary/recipe.py", line 696, in run
missing_items, list_count = self._run()
File "plexlibrary/recipe.py", line 172, in _run
matching_total, item['title'], item['year']))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 23: ordinal not in range(128)
I've also tried:
#!/usr/bin/env python
cd /mnt/user/appdata/other/python-plexlibrary-master
plexlibrary movies_recommended
plexlibrary movies_imdb_top_250
exit
Help please
Help please