Git Product home page Git Product logo

plexunify's Issues

KeyError: 'tmdb_id'

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?

UnicodeDecodeError

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

No module named 'bs4'

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$ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.