mike99mac 6 Posted September 15, 2022 Share Posted September 15, 2022 This is weird. I'm getting music played (by voice!) for albums, artists and tracks. Now I'm working on "full random" (all music). I find sending no search term to Items/ returns all tracks in the library. I get the track IDs, shuffle them and convert the first 50 to URIs. But the song won't play. I look at the logs and see for the failed track: 2022-09-15 14:50:44.201 Debug NetworkManager: Detected local ip addresses: 192.168.1.229, 2603:7000:d706:4c6a::136b, 2603:7000:d706:4c6a:b0f7:c5d0:42b6:8969, 2603:7000:d706:4c6a:b432:13fe:a2a6:453c, fe80::da77:af34:ca13:246%3, 127.0.0.1, ::1 2022-09-15 14:51:24.458 Info Server: http/1.1 POST http://192.168.1.229:8096/Users/AuthenticateByName. Accept=*/*, Connection=keep-alive, Host=192.168.1.229:8096, User-Agent=python-requests/2.25.1, Accept-Encoding=gzip, deflate, Content-Type=application/json, Content-Length=30, X-Emby-Authorization=MediaBrowser Client=Emby Skill, Device=Mycroft, DeviceId=5ecc47bbd9ccfc712b8a2b7656d9a248, Version=v0.8.5-528593-g8051e4e1f8 2022-09-15 14:51:24.460 Info UserManager: Authentication request for pi has succeeded. 2022-09-15 14:51:24.461 Info SessionManager: Reissuing access token: 3f0c96effd274c33a5f221747297d9af 2022-09-15 14:51:24.467 Info Server: http/1.1 Response 200 to 192.168.1.229. Time: 9ms. http://192.168.1.229:8096/Users/AuthenticateByName The logs just stop here and the Error message returned is: "Unable to cast object of type 'MediaBrowser.Controller.Entities.Audio.MusicAlbum' to type 'MediaBrowser.Controller.Entities.IHasMediaSources'." Here's an example of a successful track which goes beyond "Resonse 200": 2022-09-15 14:54:16.947 Info Server: http/1.1 POST http://192.168.1.229:8096/Users/AuthenticateByName. Accept=*/*, Connection=keep-alive, Host=192.168.1.229:8096, User-Agent=python-requests/2.25.1, Accept-Encoding=gzip, deflate, Content-Type=application/json, Content-Length=30, X-Emby-Authorization=MediaBrowser Client=Emby Skill, Device=Mycroft, DeviceId=5ecc47bbd9ccfc712b8a2b7656d9a248, Version=v0.8.5-528593-g8051e4e1f8 2022-09-15 14:54:16.949 Info UserManager: Authentication request for pi has succeeded. 2022-09-15 14:54:16.950 Info SessionManager: Reissuing access token: 3f0c96effd274c33a5f221747297d9af 2022-09-15 14:54:16.951 Info Server: http/1.1 Response 200 to 192.168.1.229. Time: 5ms. http://192.168.1.229:8096/Users/AuthenticateByName 2022-09-15 14:54:18.447 Info Server: http/1.1 HEAD http://192.168.1.229:8096/Audio/3329/stream.mp3. UserAgent: python-requests/2.25.1 2022-09-15 14:54:18.462 Info Server: http/1.1 Response 200 to 192.168.1.229. Time: 15ms. http://192.168.1.229:8096/Audio/3329/stream.mp3 2022-09-15 14:54:18.540 Info Server: http/1.0 GET http://192.168.1.229:8096/Audio/3329/stream.mp3. UserAgent: mpg123/1.29.3 Any ideas? Thanks. -Mike Mac Link to comment Share on other sites More sharing options...
Luke 37094 Posted September 15, 2022 Share Posted September 15, 2022 Hi, I don't see any error there. Please attach the complete log file. Thanks. Link to comment Share on other sites More sharing options...
mike99mac 6 Posted September 16, 2022 Author Share Posted September 16, 2022 Sorry, this was an error in my code. Not sure how the: Unable to cast object of type 'MediaBrowser.Controller.Entities.Audio.MusicAlbum' error also popped up. Thanks. -Mike Mac 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now