Jump to content

Can't load external subtitles: Error App: Error getting subtitles


Go to solution Solved by quickmic,

Recommended Posts

quickmic
Posted
1 minute ago, toomanynights said:

Nope, still nothing. Just to be on the safe side, tried https://42.lw.itsby.design/, https://42.lw.itsby.design/toomanynights/ and https://42.lw.itsby.design/toomanynights/emby/ (in that order). Now it returns me to the "Select main server" screen real quick (before there was a delay). Nothing else seems to be changed.

kodi.log 197.56 kB · 0 downloads

ok, I run a test, hold on.

quickmic
Posted

Ok, I think I know the issue. I'll fix it...

  • Thanks 1
toomanynights
Posted

Now that was fast! Thanks! Let me try this now...

  • Like 1
quickmic
Posted

Just out of curiosity, did in 9.x the realtime (e.g. progress) updates work? I doubt that, but actually depends on your proxy settings.

toomanynights
Posted

What's the realtime updates? You mean when I for example added a new episode on emby, did it appear instantly on Kodi? It did not. Had to reboot every time.

quickmic
Posted (edited)
2 minutes ago, toomanynights said:

What's the realtime updates? You mean when I for example added a new episode on emby, did it appear instantly on Kodi? It did not. Had to reboot every time.

Yes, exactly that and that's what I expected. since 4.x the websocket connection (which is used for realtime updates) cannot work with your config. Can you please check, if they work in 10.X?

Did you configure the proxy yourself?

Edited by quickmic
toomanynights
Posted

No, it was pre-configured on my seedbox. Trying the updated version now... So far it let me authorize (hooray!), but whatever I try to play, it says "One or more items failed to play". (Not only for the problematic episode, but even for ones that were playing before)

kodi.log

quickmic
Posted
1 minute ago, toomanynights said:

No, it was pre-configured on my seedbox. Trying the updated version now... So far it let me authorize (hooray!), but whatever I try to play, it says "One or more items failed to play". (Not only for the problematic episode, but even for ones that were playing before)

kodi.log 604.04 kB · 0 downloads

Ups, I think I know the reason. I forgot to modify the playback redirections.

quickmic
Posted

Just asking, would it be possible to assign me a test account on your server for better debugging?

quickmic
Posted

btw, the fix will take a while, I'll send you an update later in the afternoon...

toomanynights
Posted
10 minutes ago, quickmic said:

Just asking, would it be possible to assign me a test account on your server for better debugging?

For sure. I'll PM you with deets

  • Thanks 1
quickmic
Posted (edited)

If you have access to the proxy config, enable "websocket"  redirections for "/emby/embywebsocket". Might also be labeled as ws/wss in your proxy config.

ws is like http and wss is like https for websockets. You might want wss.

Myself use an apache proxy, config looks like that:

        ProxyPass "/emby/embywebsocket" "wss://192.168.0.207:443/"
        ProxyPassReverse "/emby/embywebsocket/" "wss://192.168.0.207:443/"

 

Edited by quickmic
toomanynights
Posted

I don't think I have that. It's not supposed to be in Emby config, is it?

quickmic
Posted
1 minute ago, toomanynights said:

I don't think I have that. It's not supposed to be in Emby config, is it?

Emby supports websocket out of the box (no config needed there), but proxies do not redirect ws/wss request by default, only http/https.

Websocket usually must be enabled. I don't know seedbox, but quite sure it is possible. btw, even if you manage enable websocket, i doubt it will work in 9.x.

But you can test the connection already in the (broken) 10.x version (only the playback is affected by the bug). Just play something on Emby Server directly WebUI using the same account you used for connecting Kodi, and it should at least update the progress/marked as watched etc instantly.

quickmic
Posted (edited)

Fix was easier than expected.

Here is the new test version. You need to re-login to server!

Playback should work now, but not everything is reviewed yet.

On the plus side, realtime updates are working. Seems your proxy redirects the websocket communication.

You can disable the account, thanks for that.

Let me know if the subtitle download is still a problem.

 

plugin.service.emby-next-gen-10.0.31 build 3.zip

Edited by quickmic
  • Thanks 1
toomanynights
Posted

OK, so I can sign in now, I can start playback. BUT... The subtitle is still not there 😒

On a bright side - the sync seems to be working instantly now! Well, partially... I marked 1x03 of "You, me and the apocalypse" as "unwatched" and version 10 grabbed the change instantly. When I returned it back to "watched" though, the change didn't sync. It was synced after reboot though.

kodi.log

toomanynights
Posted

I nuked the database after each update from @quickmicthough.

Clearing cache, unfortunately, does not fix the issue. The subtitle is still not there.

quickmic
Posted
2 minutes ago, toomanynights said:

I nuked the database after each update from @quickmicthough.

Clearing cache, unfortunately, does not fix the issue. The subtitle is still not there.

ok, then please re-enable my account, and tell me which movie/episode includes the subtitle.

quickmic
Posted (edited)
11 minutes ago, visproduction said:

It sounds like you have it solved.  I looked up Kodi cache and this search found a lot of results.  Perhaps Kodi cache is still contributing to your errors.
 https://duckduckgo.com/?q=Clear+Kodi+cache+subtitle+error&ia=web

Yes, could be the Kodi cache, but I need to go in steps from here.

External subtitles are actually downloaded from Emby server into a temp dir on the Kodi device. This must work flawless, before blaming Kodi.

Edited by quickmic
toomanynights
Posted
26 minutes ago, quickmic said:

ok, then please re-enable my account, and tell me which movie/episode includes the subtitle.

Didn't disable it yet 😏

It's "Vexed", [EN] is embedded, I expect the external [RU]. There's only one episode.

quickmic
Posted (edited)

Ok, it's a bug in the plugin. The subtitle index was wrongly synced.

Fixed version attached, you need to resync the tvshow library.

btw, this was never detected (and is probably an very old bug) cause the subtitle indexes are usually in a row like 1,2,3,4 yours are like, 1,2,3,101 and the 101 was the affected subtitle.

I'll add the fixes in next beta, after a bit more reviewing the changes I made.

 

plugin.service.emby-next-gen-10.0.31 build 4.zip

Edited by quickmic
toomanynights
Posted

Right! Going ahead to check this.

(Why was it 101? 🤔)

Also, bit of a lame question... Is there a repo or something I could use to install these betas on my TV?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...