skorokithakis / catt

Cast All The Things allows you to send videos from many, many online sources to your Chromecast.
BSD 2-Clause "Simplified" License
3.3k stars 153 forks source link

catt cast always fails with the same error #449

Open hiredman opened 3 weeks ago

hiredman commented 3 weeks ago

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.

skorokithakis commented 3 weeks ago

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