Jump to content

Movies don't start anymore


Volkmar

Recommended Posts

Angelblue05

Check for updates in the addon settings > advanced. That should pick up on the fix that was just pushed to github.

Edited by Angelblue05
Link to comment
Share on other sites

sualfred

We just pushed the changes to the repo ^^ Plus fixed another small one that was introcuded with the file I gave you.

No need to worry.

  • Like 1
Link to comment
Share on other sites

Volkmar

After installing the update and patch was applied:

 

Results:

 

Resuming a movie via widget -> resume at(resuming time): passed

Playing a new movie via widget: passed

 

Resuming a movie via widget -> context menu -> resume at(resuming time): kodi crashed

Playing a new movie via widget -> context menu -> play: kodi crashed

Resuming a movie via widget -> context menu -> information -> resume: kodi crashed

 

 

Changed the settings -> media -> videos -> default action = show information

Resuming a video: passed

Playing a new video: crash kodi

Link to comment
Share on other sites

sualfred

Have you restarted after the patch has been applied?

This was required on my end at home.

Edited by sualfred
Link to comment
Share on other sites

sualfred

Please open the exisitng actions.py on your box and scroll down to the bottom.

 

To this part:

   
.....
 elif not isPlaying and window('emby.playinfo.bool') and not xbmc.getCondVisibility('Window.IsVisible(DialogContextMenu.xml)'):
        window('emby.context.count', value=str(count + 1))

        if count == 2:

            window('emby.playinfo', clear=True)
            window('emby.context.count', clear=True)

    elif not isPlaying and window('emby.context.widget.bool') and not xbmc.getCondVisibility('Window.IsVisible(DialogVideoInfo.xml)'):
        window('emby.context.count', value=str(count + 1))

        if count == 2:

            window('emby.context.widget', clear=True)
            window('emby.context.count', clear=True)

Please change both lines from "if count == 2" to "if count == 3" And test it again.

If that doesn't work increase it to 4. If that also doesn't work try 5 and 6.

 

Also don't forget to restart Kodi after replacing the values and let us know if another value works.

Edited by sualfred
Link to comment
Share on other sites

sualfred

Please change to the current one and increase the count to something very like 100

Edited by sualfred
Link to comment
Share on other sites

sualfred

Ok. Race condition issue.

 

I have an idea which works on my end.

 

Please go to your default addon folder: /addons/plugin.video.emby/resources/lib/database

and edito _init_.py:

From this
 

try:
    from objects import obj
except Exception as error:
    # clear patch
    LOG.exception(error)
    delete_folder()
    dialog("ok", heading="{emby}", line1=_(33155))
    xbmc.executebuiltin('RestartApp')

to this
 

try:
    from objects import obj
except Exception as error:
    pass

And after that please replace the actions.py in the hidden folder again with the one that is attached to this post.

If that still does not work please increase the count value again and let me know if the minimum required count value is lower than before.
 

actions.zip

Link to comment
Share on other sites

Volkmar

I didn't had to increase the value. It works to me as it is (value 1).

 

/addons/plugin.video.emby/resources/lib/database/_init_.py is still modified.

  • Like 2
Link to comment
Share on other sites

Angelblue05

@@Volkmar

 

Let's try this again, in the add-on settings > advanced > check for updates. Let me know if everything still works. We found a small error in the code, which I've corrected in the process.

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...