flix-cli icon indicating copy to clipboard operation
flix-cli copied to clipboard

AttributeError: 'list' object has no attribute 'get'

Open supersri811 opened this issue 2 years ago • 1 comments

Metadata (please complete the following information) Version: 1.5.3 OS: Manjaro 22.1 Movie: Every Describe the bug Stops every time displaying this error: Traceback (most recent call last): File "/home/user/.local/bin/flix-cli", line 5, in <module> from flix_cli.__main__ import __flixcli__ File "/home/user/.local/lib/python3.10/site-packages/flix_cli/__main__.py", line 1, in <module> from .core import __flix_cli__ File "/home/user/.local/lib/python3.10/site-packages/flix_cli/core/__flix_cli__.py", line 219, in <module> poison() File "/home/user/.local/lib/python3.10/site-packages/flix_cli/core/__flix_cli__.py", line 213, in poison movie() File "/home/user/.local/lib/python3.10/site-packages/flix_cli/core/__flix_cli__.py", line 94, in movie movie.subtitles = (_.get("file") for _ in content.get("track", {}).get("tracks", [])) AttributeError: 'list' object has no attribute 'get'

Steps To Reproduce

  1. Run flix-cli <any movie/series>
  2. Choose an option

Expected behavior Downloading should work

Screenshots (if applicable; you can just drag the image onto github)

Additional context

supersri811 avatar May 20 '23 15:05 supersri811

Did you try pip install flix-cli --upgrade as the version you are using is the old one.

DemonKingSwarn avatar May 20 '23 16:05 DemonKingSwarn