catt icon indicating copy to clipboard operation
catt copied to clipboard

catt cast always fails with the same error

Open hiredman opened this issue 1 year ago • 1 comments

when I try to cast a local mp4 file I get

Exception thrown when calling load failed callback
Traceback (most recent call last):
  File "/home/kevin/.local/lib/python3.13/site-packages/pychromecast/controllers/media.py", line 771, in _fire_load_failed
    listener.load_media_failed(queue_item_id, error_code)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MediaStatusListener' object has no attribute 'load_media_failed'
Error: Playback of local file has failed.

it looks like MediaStatusListener is defined here https://github.com/skorokithakis/catt/blob/b4e33f91e44daab87ae26a4d3f437a62e9cce6f9/catt/controllers.py#L198 and it is definitely missing the load_media_failed method.

hiredman avatar Jul 03 '24 22:07 hiredman

Hm, I think PyChromecast changed its API again... Any PRs would be welcome.

skorokithakis avatar Jul 03 '24 22:07 skorokithakis