sahara101 / Movie-Roulette

Python App which chooses a random movie from your movie library.
MIT License
79 stars 1 forks source link

V2.0 - Fails to load with default configuration from before #4

Closed NightHawkATL closed 2 weeks ago

NightHawkATL commented 2 weeks ago

Error message stating that one or more libraries need to be configured but I have one configured, just not for posters. Logs:


    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load

  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 850, in exec_module

  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

  File "/app/movie_selector.py", line 17, in <module>

    from utils.fetch_movie_links import fetch_movie_links

  File "/app/utils/fetch_movie_links.py", line 10, in <module>

    raise EnvironmentError("At least one service (Plex or Jellyfin) must be configured.")

OSError: At least one service (Plex or Jellyfin) must be configured.```

Compose:
```services:
  plex-random-movie:
    image: ghcr.io/sahara101/movie-roulette:latest
    container_name: movie-roulette
    network_mode: host
    environment:
      HOMEPAGE_MODE: "FALSE" 
      PLEX_URL: "https://plex.{{REDACTED}}.com" 
      PLEX_TOKEN: "{{REDACTED}}" 
      MOVIES_LIBRARY_NAME: 'Movies' 
      TZ: America/New_York
    volumes:
      - /portainer/Files/AppData/Config/movie_roulette:/app/data  
    restart: unless-stopped
sahara101 commented 2 weeks ago

Hey, I added on the README it was a breaking change, had to change the ENV name to make more sense. Please use PLEX_MOVIE_LIBRARIES:

NightHawkATL commented 2 weeks ago

OK, now I am getting: ERROR:utils.jellyfin_service:Error fetching active Jellyfin sessions: Invalid URL 'None/Sessions': No scheme supplied. Perhaps you meant https://None/Sessions?

NightHawkATL commented 2 weeks ago

I only setup Plex

sahara101 commented 2 weeks ago

Thank, that is a bug. I will remove the error, but it should work nontheless now.

NightHawkATL commented 2 weeks ago

I will keep it stopped until the next release to fix that issue so it is not spamming the logs but it does work with the changed ENV for Plex Movies. Sorry I overlooked that.

sahara101 commented 2 weeks ago

The Jellyfin error is fixed in the dev image. I will release a new latest version shortly.

sahara101 commented 2 weeks ago

Hey, latest version is released, please update to it :)

NightHawkATL commented 2 weeks ago

Looks good! image