kblixt / plexunify Goto Github PK
View Code? Open in Web Editor NEWsome plex python scripts
some plex python scripts
I'm trying to run PlexUnify and I am getting this error. I have BeautifulSoup installed.
skip@media-server:~/Scripts/PlexUnify-master$ sudo apt-get install python-bs4
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-bs4 is already the newest version (4.6.0-1).
0 upgraded, 0 newly installed, 0 to remove and 226 not upgraded.
skip@media-server:~/Scripts/PlexUnify-master$ sudo -u plex python3 PlexUnify.py
Traceback (most recent call last):
File "PlexUnify.py", line 13, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
skip@media-server:~/Scripts/PlexUnify-master$
Trying to run this at the moment on Ubuntu 18.04 and seeing the below error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 0: invalid continuation byte
Traceback (most recent call last):
File "PlexUnify.py", line 36, in <module>
config.read_file(open_config_file)
File "/usr/lib/python3.6/configparser.py", line 718, in read_file
self._read(f, source)
File "/usr/lib/python3.6/configparser.py", line 1015, in _read
for lineno, line in enumerate(fp, start=1):
File "/usr/lib/python3.6/codecs.py", line 713, in __next__
return next(self.reader)
File "/usr/lib/python3.6/codecs.py", line 644, in __next__
line = self.readline()
File "/usr/lib/python3.6/codecs.py", line 557, in readline
data = self.read(readsize, firstline=True)
File "/usr/lib/python3.6/codecs.py", line 503, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 0: invalid continuation byte
When the script attempts to process a movie which isn't listed on tmdb it will fail with the error below:
Processing movie: "Top Gear the Great Adventures 3"
Traceback (most recent call last):
File "PlexUnify.py", line 1143, in <module>
main()
File "PlexUnify.py", line 389, in main
collection = get_collection_data()
File "PlexUnify.py", line 281, in get_collection_data
current_collection_metadata_holder = get_metadata_holder()
File "PlexUnify.py", line 190, in get_metadata_holder
get_tmdb_movie_metadata(movie)
File "PlexUnify.py", line 1003, in get_tmdb_movie_metadata
if movie['tmdb_id'] is None:
KeyError: 'tmdb_id'
Could the script be adapted to skip such movies rather than terminating?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.