Describe the bug
When running the plex_api_share.py script, if empty library or one that has not been scanned yet, the script returns the following:
python.exe plex_api_share.py --share --allUsers --allLibraries
Traceback (most recent call last):
File "plex_api_share.py", line 299, in <module>
movie_ratings += get_ratings_lst(movie)
File "plex_api_share.py", line 159, in get_ratings_lst
ratings_keys = content.json()['MediaContainer']['Directory']
File "C:\Python27\lib\site-packages\requests\models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Python27\lib\json\__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
To Reproduce
Steps to reproduce the behavior:
Have empty plex library
Go to 'JBOPS/utility folder in cmd or PS'
Enter ' python.exe plex_api_share.py --share --allUsers --allLibraries'
See error
Desktop (please complete the following information):
OS: Windows 10 Pro 1909
Python Version [2.7]
** Notes
Still waiting on Plex to scan the last library for content to see if this is the only issue. Through chatting with Blacktwin, the empty library appears to be the culprit. Was asked to submit an issue to document the process.
Describe the bug When running the plex_api_share.py script, if empty library or one that has not been scanned yet, the script returns the following:
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
** Notes Still waiting on Plex to scan the last library for content to see if this is the only issue. Through chatting with Blacktwin, the empty library appears to be the culprit. Was asked to submit an issue to document the process.