Jump to content

Movies don't start anymore


Recommended Posts

Posted

I do have the same issue - should I just wait for an updated version or should I replace the py as well ?

Posted

I would try to replace the py. (make a backup from the old one)

Angelblue05
Posted (edited)

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

Edited by Angelblue05
Posted

I'm scared! I just have a running system again  :lol:

Posted

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
Posted

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

Posted (edited)

Have you restarted after the patch has been applied?

This was required on my end at home.

Edited by sualfred
Posted

I restarted the box after each crash completely (incl. making the box powerless)

Posted (edited)

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
Posted

changed the value up to "6", same results (kodi still crashes)

Posted

How long does it take until your playback starts?

Posted

4.12 seconds

Posted

changing back to the action.py you gave me yesterday.

It works again, even via context menu.

Posted (edited)

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

Edited by sualfred
Posted (edited)

100 works

decreasing the value to 25: still works fine

Edited by Volkmar
Posted

Please try to decrease it more and let me know the lowest possible value.

Posted

8 is the lowest possible value

Posted

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

Posted

with value 1 it don't work, I had to increase to value 7 (before it was value 8)

Posted

Hmm ok. We will look into it. At least it works for you for the moment.

  • Like 1
Posted (edited)

@@Volkmar
 

Could you please try the attached actions.py?

And increase the count value again until it works.

actions.zip

Edited by sualfred
Posted

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
Posted

That's what I wanted to hear. Great. Thanks

  • Like 1
Angelblue05
Posted

I will apply the changes by sualfred. Thank you for confirming this resolves the situation.

  • Like 1
Angelblue05
Posted

@@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
Guest
This topic is now closed to further replies.
×
×
  • Create New...