Jump to content

embyforkodi (next-gen) 6.X.X support


quickmic

Recommended Posts

11 minutes ago, quickmic said:

fyi, next version will requrie a complete database resync. I had to add addition info in the DB to get srt subtitles working.

Since the last sync went relatively smooth and took less than a day, I can live with that :)

 

Link to comment
Share on other sites

31 minutes ago, Gizzmo80 said:

@quickmic,

were you able to reproduce the no sync issue when using „Position zurücksetzen“ ?
 

Like mentioned, setting a movie to watched works.

That "reset resume position" is/was totally confusing me. Some longer time ago I saw that this function was introduced and was so happy about it, because it was supposed to "clean up" lists wayy easier. But then the button disappeared. Now I checked in Kodi 18.9 again and the button is back lol. Did they add it, remove it and readded it within Kodi 18.x updates...?

However, I'm happy to see that button again lol, so hopefully you can make it work with E4K.

Link to comment
Share on other sites

I haven't modified anything in the context menu, actually I removed all the additional options from 4.x.

Maybe I re-add "Emby options" in the next releases (would make sense).

There was another option in 4.x "Emby play". Not sure what's good for.

"Emby transcode", edge case also removed at the moment.

So context menu is now Kodi stock.

Link to comment
Share on other sites

Add to Play Queue while 'casting' from the web client, is not queuing the item, it is playing the item immediately replacing anything alreadly playing.

  • Like 1
Link to comment
Share on other sites

New version: https://kodi.emby.media/Public testing/next-gen-ALPHA-build820.zip

 

Fixes:

Remote control (web client) multiple issues

SRT subtitles

 

New:

Native mode added. Don't use it unless there is a good reason. fyi, several functions are not be supported in native mode like trailers, Multivideo selection etc.

Migration support from 4.x

 

Known issues:

LiveTV not working in certain conditions

 

Pending:

Changelog

Local Trailers

Up-Next Review

 

Comments:

This version requires a full DB re-sync. It will trigger automatically.

Depending on bug reports, this could be the version for the beta repo.

 

Edited by quickmic
  • Like 3
  • Thanks 1
Link to comment
Share on other sites

I installed the latest build (820), and it resets the database automatically, then restarts Kodi.

When I entered the libraries to sync, it started syncing the movies, but after around 5 seconds aborts with a message popup show in the attachement. When restarting Kodi, it asks if it should resume the sync, but then the same thing happens.

In the Kodi.log, I see the following error:
 

2020-12-20 19:16:14.562 T:1441788128  NOTICE: EMBY.sync -> starting sync with [u'f137a2dd21bbc1b99aa5c0f6bf02a805', u'767bffe4f11c93ef34b805451a696a4e', u'7e64e319657a9516ec78490da03edccb', u'0c41907140d802bb58430fed7e2cd79e', u'86ec31c1b7607ce32ca3cafe770d8d0d', u'542982fef76b941ec285a96e910407b3', u'0a8c5d44aaef95710f722e9c3f4fc924', u'1d455cf489ed7e2a220dcb0fb77d9bf4', u'4240dbb208327dfe0cba93b7f24bde32', u'0cb6976320197fb761d4ad7591d7f890', u'3aeb99515c5a4d67fe12f482a99e3d6c', u'Boxsets:']
2020-12-20 19:16:14.658 T:1441788128  NOTICE: EMBY.helper.wrapper -> Processing Movies: f137a2dd21bbc1b99aa5c0f6bf02a805
2020-12-20 19:16:15.888 T:1441788128  NOTICE: EMBY.corekodi.kodi.Kodi -> UPDATE movie [30/51/51] 1177226: 41
2020-12-20 19:16:15.998 T:1441788128  NOTICE: EMBY.corekodi.kodi.Kodi -> UPDATE movie [4/52/52] 1176613: 44 Minutes: The North Hollywood Shoot-Out
2020-12-20 19:16:16.057 T:1441788128  NOTICE: EMBY.corekodi.kodi.Kodi -> UPDATE movie [7/53/53] 1176813: .45
2020-12-20 19:16:16.117 T:1441788128  NOTICE: EMBY.corekodi.kodi.Kodi -> UPDATE movie [10/54/54] 1172786: 88 Minutes
2020-12-20 19:16:16.177 T:1441788128  NOTICE: EMBY.corekodi.kodi.Kodi -> UPDATE movie [10/55/55] 1176929: 99 Pieces
2020-12-20 19:16:16.232 T:1441788128  NOTICE: EMBY.corekodi.kodi.Kodi -> UPDATE movie [12/56/56] 1172871: 100 Girls
2020-12-20 19:16:16.339 T:1441788128  NOTICE: EMBY.database.__init__ -> ERROR:: type: <class 'sqlite3.ProgrammingError'> value: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
2020-12-20 19:16:16.348 T:1441788128  NOTICE: EMBY.database.__init__ -> [emby] 52 rows updated.
2020-12-20 19:16:16.393 T:1441788128  NOTICE: EMBY.database.__init__ -> ERROR:: type: <class 'sqlite3.ProgrammingError'> value: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
2020-12-20 19:16:16.405 T:1441788128  NOTICE: EMBY.database.__init__ -> [video] 303 rows updated.
2020-12-20 19:17:51.591 T:1915773872  NOTICE: Samba is idle. Closing the remaining connections
2020-12-20 19:19:46.139 T:1441788128  NOTICE: EMBY.sync -> ERROR:: full sync exited unexpectedly
2020-12-20 19:19:46.177 T:1441788128  NOTICE: EMBY.helper.utils.Utils -> ---[ screensaver/ ] {u'jsonrpc': u'2.0', u'id': 1, u'result': True}
2020-12-20 19:19:46.187 T:1441788128  NOTICE: EMBY.sync -> --<[ fullsync ]
2020-12-20 19:19:46.211 T:1441788128  NOTICE: EMBY.library.Library -> ERROR:: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/library.py", line 415, in startup
                                                self.sync_libraries()
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/library.py", line 375, in sync_libraries
                                                sync.libraries(forced=forced)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/sync.py", line 86, in libraries
                                                self.start()
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/sync.py", line 160, in start
                                                self.process_library(library)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/sync.py", line 204, in process_library
                                                media[library['CollectionType']](library, self.Downloader)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/helper/wrapper.py", line 27, in wrapper
                                                result = func(self, dialog=dialog, *args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/sync.py", line 233, in movies
                                                obj.movie(movie, library=library)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/helper/wrapper.py", line 64, in wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/helper/wrapper.py", line 74, in wrapper
                                                return func(self, item, e_item=e_item, *args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/helper/wrapper.py", line 125, in wrapper
                                                return func(self, item, *args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/core/movies.py", line 135, in movie
                                                self.movie_add(obj)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/core/movies.py", line 223, in movie_add
                                                obj['FileId'] = self.add_file(*self.Utils.values(obj, QU.add_file_obj))
                                              File "/home/osmc/.kodi/addons/plugin.video.emby/resources/lib/corekodi/kodi.py", line 70, in add_file
                                                self.cursor.execute(QU.get_file, (path_id, filename,))
                                            ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
2020-12-20 19:19:48.258 T:1441788128  NOTICE: EMBY.library.Library -> ---<[ library ]

 

20201220_191625.jpg

Link to comment
Share on other sites

feerlessleadr

@quickmic installed the latest build on a 100% fresh profile, and everything appears to be working fine.

Running latest CoreELEC stable version on an odroid N2.

Edited by feerlessleadr
  • Like 1
Link to comment
Share on other sites

3 minutes ago, quickmic said:

Kodi 18, right? Looks like a unicode issue.

Yes, Kodi 18 on Raspberry Pi/osmc. Never saw this issue with previous builds.

Link to comment
Share on other sites

What's the next file after:

100 Girls

 

Please drop the Filename here. Are there special characters in the filename or in the Emby Movie name etc?

Link to comment
Share on other sites

7 minutes ago, quickmic said:

What's the next file after:


100 Girls

 

Please drop the Filename here. Are there special characters in the filename or in the Emby Movie name etc?

Well, this is a bit weird.
I opened my movie library in the Emby webinterface and sorted the movies by title, so it starts with the numbers. However, none of the movies from the log ("41", "44 Minutes", ".45", "88 Minutes", "99 Pieces", "1000 Girls") appear in my Emby movie library! However when I use the search in Emby, they are all found and can be played without problems. So I can't tell what would have been the next file after that since I can't make them appear in Emby easily. Anyone an idea what is going on here? Emby library has been fully updated/recreated a few days ago.

 

Link to comment
Share on other sites

15 minutes ago, quickmic said:

What's the next file after:


100 Girls

 

Please drop the Filename here. Are there special characters in the filename or in the Emby Movie name etc?

I grabbed and sorted all files on a file level and I think the next movie would be "247°F (2011)". Maybe the "°" character causes trouble.

 

Link to comment
Share on other sites

Hi

 

Just a quick note....

  1. Thanks for all your efforts on this, its very much appreciated!
  2. Just upgraded from 735 to 820.  Did the full db reset, and ran into problems.  For "reasons" the upgrade had switched me into Native mode rather than Plugin - not sure why, never used that setting before.  Did a full settings reset and started again and all appears well.

 

Regards

 

Rich

Edited by rwinstock
Link to comment
Share on other sites

Thanks, native mode is not really tested yet and it shouldn't switch at all on update.

@All

Verify you are not in native mode. Probably reset settings, when e4k asks you for! Seems there is a bug in mode settings.

 

Edited by quickmic
Link to comment
Share on other sites

Hi Thanks for your efforts, I just updated the latest version, completed DB reset, sync was fine, however, the issue which I reported a while back still persist both in Kodi 18 &19 see attached screen this show information is not available once I update to the e4k alpha if I switch to e4k 4.22 that shows information is available , it only happen for TV shows, Movies works fine.

Let me know if you need further information to address this issue

Cheers!

 

 screenshot000.thumb.png.0cc58e08e6f68d4caaabd094f617a92e.png

  • Like 1
Link to comment
Share on other sites

2 minutes ago, quickmic said:

@t123thomas

I found the bug, wrong reference in the DB. Will be fixed in next version, another DB resync will be required.

 

Ah ok, maybe I abort the resync I have running with the latest build then, it has been going for the last 2 days and is still at 28% (but increasing/still running).

Link to comment
Share on other sites

Propably yes, I also modified something in the music DB. Not sure if this modification is requried, but as a precaution I added ID's in the pathes to be unique.

I hope this has no side effect, cause this adds in the path table in MyMusic.db for each Song a unique path. -> This means, before it was one record now it's a record for each song and could double the size of the MyMusic.db. Still testing...

Edited by quickmic
Link to comment
Share on other sites

On 12/17/2020 at 9:04 AM, horstepipe said:

From what I remember about audiobooks support in E4K, Angelblue once implemented it via plugin listing, so without database sync due to the fact that Kodi's database doesn't support resume positions for audio at all. But this was removed later because of Emby's general lack of support for audiobooks. But what I tested at that time was better than nothing, resuming worked (limited by Emby server's resuming capabilities for audiobooks). So maybe it's worth to examine this approach again...?

Is this on your list quick?

Link to comment
Share on other sites

On 12/17/2020 at 9:04 AM, horstepipe said:

From what I remember about audiobooks support in E4K, Angelblue once implemented it via plugin listing, so without database sync due to the fact that Kodi's database doesn't support resume positions for audio at all. But this was removed later because of Emby's general lack of support for audiobooks. But what I tested at that time was better than nothing, resuming worked (limited by Emby server's resuming capabilities for audiobooks). So maybe it's worth to examine this approach again...?

Is this on your list quick?

Link to comment
Share on other sites

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...