PlexKodiConnect: Kodi Plex Integration Done Right

@croneter,

I just started using PlexKodiConnect, and first of all, awesome work on this plugin! Thank you for taking this approach to let us have the best of both worlds. I have noticed the following issues:

  1. When you download images from fanart.tv during sync, there is no option to choose the language, so PKC attempts to download artwork that is in Kodi’s interface language (or Plex’s?), so for some people, if your interface language is not Emglish, there will be a lot fewer artwork than you would expect if you were a Kodi user and were used to what Artwork Downloader used to provide. Can this be made an option, to choose the language for fanart.tv downloads? Please let me know.

  2. Even though the xml that Plex generates internally for each media item has audio language(s) and subtitle language(s) as both full word and code (English and also eng, or Español and also spa), it seems that PKC is only writing in Kodi’s db the full text language and not the code, and thus there are issues, for example, if you have playlists based on audio language code, or subtitle language code, which is what Kodi normally uses. Could this be changed? Please let me know.

  3. There is an issue with tv shows that have extrafanart. I use the Landscape view in skin Aeon MadNox and have extrafanart set as background, and every time I move from TV show to TV show, I get a PKC error. This is an exceprt from the Kodi log:

17:30:14 T:6308 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: getExtraFanArt() takes exactly 2 arguments (0 given)
Traceback (most recent call last):
File “C:\Users\xbmc\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect.tvshows\default.py”, line 36, in
entrypoint.getExtraFanArt()
TypeError: getExtraFanArt() takes exactly 2 arguments (0 given)
–>End of Python script error report<–
17:30:14 T:5032 ERROR: Previous line repeats 1 times.
17:30:14 T:5032 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.plexkodiconnect.tvshows/1058858/extrafanart/
17:30:22 T:4780 ERROR: Previous line repeats 1 times.
17:30:22 T:4780 NOTICE: Using Image Cache Thread Count: 25 -> 1
17:30:22 T:4780 NOTICE: Parameter string:
17:30:22 T:4780 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: getExtraFanArt() takes exactly 2 arguments (0 given)
Traceback (most recent call last):
File “C:\Users\xbmc\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect.tvshows\default.py”, line 36, in
entrypoint.getExtraFanArt()
TypeError: getExtraFanArt() takes exactly 2 arguments (0 given)
–>End of Python script error report<–

Thank you for looking into these.

Regards,

Bart

@croneter said:

@rcrh said:
Perform Manual Library Sync

If i navigate to the plexkodiconnect node the above menu item is there but it doesn’t seem to do anything. Am I wrong?

It does scan your library but the Kodi notice might have been deactivated.

Thanks for that. Do you mean Kodi notice in the pkc settings? I have that turned on.

@croneter said:

@rcrh said:
Track Artist

I had an album that erroneously was split into two artists (first last & last,first). I editted the track and discovered that it was the only item that had the TRACK ARTIST field filled in. I deleted that field entry and Plex put the track back with the rest of the album and with the correct artist. But I can’t seem to get pkc to sync the change back to Kodi. I made this change three days ago and nothing has been updated in Kodi.
I’d rather not have to rebuild the music library cause it took hours the first time.
Any suggestions?

Plex sometimes doesn’t tell that you changed certain items (to be specific, certain attributes). Might have been the root cause of your problems.

Try PKC settings, Advanced, repair local database. Runs quicker than a resync

It might be quicker but wow. It’s been running 2 1/2 hours so far.
That’s a lot of time to fix one song.

Thanks for taking the time to make this plugin :slight_smile:

I just have a question with using this with Pseudo Tv plugin for kodi

I could only find this which is simlar to my problem tho this is from the emby forums
http://emby.media/community/index.php?/topic/34000-emby-db-and-pseudotv-questionwrong-episode-selection-in-epg/

When selecting from the epg it picks the wrong file

Anyone else have this issue using plexkodiconnect and pseudo tv live ?

Thanks

@rcrh said:

@croneter said:

@rcrh said:
Track Artist

I had an album that erroneously was split into two artists (first last & last,first). I editted the track and discovered that it was the only item that had the TRACK ARTIST field filled in. I deleted that field entry and Plex put the track back with the rest of the album and with the correct artist. But I can’t seem to get pkc to sync the change back to Kodi. I made this change three days ago and nothing has been updated in Kodi.
I’d rather not have to rebuild the music library cause it took hours the first time.
Any suggestions?

Plex sometimes doesn’t tell that you changed certain items (to be specific, certain attributes). Might have been the root cause of your problems.

Try PKC settings, Advanced, repair local database. Runs quicker than a resync

It might be quicker but wow. It’s been running 2 1/2 hours so far.
That’s a lot of time to fix one song.

Ouch, very sorry for that. It’s unfortunate that you discovered this bug with your huge library

Edit: so large is your library?!

@NaDs01 said:
Thanks for taking the time to make this plugin :slight_smile:

I just have a question with using this with Pseudo Tv plugin for kodi

I could only find this which is simlar to my problem tho this is from the emby forums
http://emby.media/community/index.php?/topic/34000-emby-db-and-pseudotv-questionwrong-episode-selection-in-epg/

When selecting from the epg it picks the wrong file

Anyone else have this issue using plexkodiconnect and pseudo tv live ?

Thanks

Like it said in the Emby forums, try using direct paths for pseudo TV plugin

@bsoriano said:
@croneter,

I just started using PlexKodiConnect, and first of all, awesome work on this plugin! Thank you for taking this approach to let us have the best of both worlds. I have noticed the following issues:

  1. When you download images from fanart.tv during sync, there is no option to choose the language, so PKC attempts to download artwork that is in Kodi’s interface language (or Plex’s?), so for some people, if your interface language is not Emglish, there will be a lot fewer artwork than you would expect if you were a Kodi user and were used to what Artwork Downloader used to provide. Can this be made an option, to choose the language for fanart.tv downloads? Please let me know.

  2. Even though the xml that Plex generates internally for each media item has audio language(s) and subtitle language(s) as both full word and code (English and also eng, or Español and also spa), it seems that PKC is only writing in Kodi’s db the full text language and not the code, and thus there are issues, for example, if you have playlists based on audio language code, or subtitle language code, which is what Kodi normally uses. Could this be changed? Please let me know.

  3. There is an issue with tv shows that have extrafanart. I use the Landscape view in skin Aeon MadNox and have extrafanart set as background, and every time I move from TV show to TV show, I get a PKC error. This is an exceprt from the Kodi log:

17:30:14 T:6308 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: getExtraFanArt() takes exactly 2 arguments (0 given)
Traceback (most recent call last):
File “C:\Users\xbmc\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect.tvshows\default.py”, line 36, in
entrypoint.getExtraFanArt()
TypeError: getExtraFanArt() takes exactly 2 arguments (0 given)
–>End of Python script error report<–
17:30:14 T:5032 ERROR: Previous line repeats 1 times.
17:30:14 T:5032 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.plexkodiconnect.tvshows/1058858/extrafanart/
17:30:22 T:4780 ERROR: Previous line repeats 1 times.
17:30:22 T:4780 NOTICE: Using Image Cache Thread Count: 25 → 1
17:30:22 T:4780 NOTICE: Parameter string:
17:30:22 T:4780 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: getExtraFanArt() takes exactly 2 arguments (0 given)
Traceback (most recent call last):
File “C:\Users\xbmc\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect.tvshows\default.py”, line 36, in
entrypoint.getExtraFanArt()
TypeError: getExtraFanArt() takes exactly 2 arguments (0 given)
–>End of Python script error report<–

Thank you for looking into these.

Regards,

Bart

Hi Bart

Many thanks for your feedback, much appreciated

  1. PKC uses Kodi’s language to download additional artwork. If there is no artwork in that specific language, the first fallback is artwork in English. If there is no artwork in English, the second fallback is artwork with unspecified language tags.
  2. Plex does tell both the language string (“English”) as well as the code (“en”). However, Kodi only has one single database field for the language. So you would have to choose either string or code, but cannot have both. I guess most people would choose the string as it is more verbose. I will look into creating a new setting for this: Create new PKC setting to optionally choose language code, not string for synching · Issue #61 · croneter/PlexKodiConnect · GitHub
  3. Thanks for the bug report: extrafanart not working · Issue #62 · croneter/PlexKodiConnect · GitHub

@croneter said:

@NaDs01 said:
Thanks for taking the time to make this plugin :slight_smile:

I just have a question with using this with Pseudo Tv plugin for kodi

I could only find this which is simlar to my problem tho this is from the emby forums
http://emby.media/community/index.php?/topic/34000-emby-db-and-pseudotv-questionwrong-episode-selection-in-epg/

When selecting from the epg it picks the wrong file

Anyone else have this issue using plexkodiconnect and pseudo tv live ?

Thanks

Like it said in the Emby forums, try using direct paths for pseudo TV plugin

I believe there is no setting for this in the pseudo tv plugin - from what I can see…

I believe they are talking about the emby plugin for the fix

Shown here:

Thanks

@NaDs01 said:

@croneter said:

@NaDs01 said:
Thanks for taking the time to make this plugin :slight_smile:

I just have a question with using this with Pseudo Tv plugin for kodi

I could only find this which is simlar to my problem tho this is from the emby forums
http://emby.media/community/index.php?/topic/34000-emby-db-and-pseudotv-questionwrong-episode-selection-in-epg/

When selecting from the epg it picks the wrong file

Anyone else have this issue using plexkodiconnect and pseudo tv live ?

Thanks

Like it said in the Emby forums, try using direct paths for pseudo TV plugin

I believe there is no setting for this in the pseudo tv plugin - from what I can see…

I believe they are talking about the emby plugin for the fix

Shown here:
Home · MediaBrowser/plugin.video.emby Wiki · GitHub

Thanks

No, this is a PKC setting. You have to enable Direct Paths in PKC, see Create new page · croneter/PlexKodiConnect Wiki · GitHub

@rcrh said:

@croneter said:

@rcrh said:
Track Artist

I had an album that erroneously was split into two artists (first last & last,first). I editted the track and discovered that it was the only item that had the TRACK ARTIST field filled in. I deleted that field entry and Plex put the track back with the rest of the album and with the correct artist. But I can’t seem to get pkc to sync the change back to Kodi. I made this change three days ago and nothing has been updated in Kodi.
I’d rather not have to rebuild the music library cause it took hours the first time.
Any suggestions?

Plex sometimes doesn’t tell that you changed certain items (to be specific, certain attributes). Might have been the root cause of your problems.

Try PKC settings, Advanced, repair local database. Runs quicker than a resync

It might be quicker but wow. It’s been running 2 1/2 hours so far.
That’s a lot of time to fix one song.

And after over three hours it finished and didn’t change anything.
In frustration I looked at ALL of the id3 tags and found a field called “Band/Orchestra”. It had the “last,first” artist name. When I cleared it Plex updated & passed it on to Kodi.
I’m not sure why the actual ID3 info is being picked up by Kodi rather than what is in Plex.
Any thought?

@croneter said:

@bsoriano said:
@croneter,

I just started using PlexKodiConnect, and first of all, awesome work on this plugin! Thank you for taking this approach to let us have the best of both worlds. I have noticed the following issues:

  1. When you download images from fanart.tv during sync, there is no option to choose the language, so PKC attempts to download artwork that is in Kodi’s interface language (or Plex’s?), so for some people, if your interface language is not Emglish, there will be a lot fewer artwork than you would expect if you were a Kodi user and were used to what Artwork Downloader used to provide. Can this be made an option, to choose the language for fanart.tv downloads? Please let me know.

  2. Even though the xml that Plex generates internally for each media item has audio language(s) and subtitle language(s) as both full word and code (English and also eng, or Español and also spa), it seems that PKC is only writing in Kodi’s db the full text language and not the code, and thus there are issues, for example, if you have playlists based on audio language code, or subtitle language code, which is what Kodi normally uses. Could this be changed? Please let me know.

  3. There is an issue with tv shows that have extrafanart. I use the Landscape view in skin Aeon MadNox and have extrafanart set as background, and every time I move from TV show to TV show, I get a PKC error. This is an exceprt from the Kodi log:

17:30:14 T:6308 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: getExtraFanArt() takes exactly 2 arguments (0 given)
Traceback (most recent call last):
File “C:\Users\xbmc\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect.tvshows\default.py”, line 36, in
entrypoint.getExtraFanArt()
TypeError: getExtraFanArt() takes exactly 2 arguments (0 given)
–>End of Python script error report<–
17:30:14 T:5032 ERROR: Previous line repeats 1 times.
17:30:14 T:5032 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.plexkodiconnect.tvshows/1058858/extrafanart/
17:30:22 T:4780 ERROR: Previous line repeats 1 times.
17:30:22 T:4780 NOTICE: Using Image Cache Thread Count: 25 → 1
17:30:22 T:4780 NOTICE: Parameter string:
17:30:22 T:4780 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: getExtraFanArt() takes exactly 2 arguments (0 given)
Traceback (most recent call last):
File “C:\Users\xbmc\AppData\Roaming\Kodi\addons\plugin.video.plexkodiconnect.tvshows\default.py”, line 36, in
entrypoint.getExtraFanArt()
TypeError: getExtraFanArt() takes exactly 2 arguments (0 given)
–>End of Python script error report<–

Thank you for looking into these.

Regards,

Bart

Hi Bart

Many thanks for your feedback, much appreciated

  1. PKC uses Kodi’s language to download additional artwork. If there is no artwork in that specific language, the first fallback is artwork in English. If there is no artwork in English, the second fallback is artwork with unspecified language tags.
  2. Plex does tell both the language string (“English”) as well as the code (“en”). However, Kodi only has one single database field for the language. So you would have to choose either string or code, but cannot have both. I guess most people would choose the string as it is more verbose. I will look into creating a new setting for this: Create new PKC setting to optionally choose language code, not string for synching · Issue #61 · croneter/PlexKodiConnect · GitHub
  3. Thanks for the bug report: extrafanart not working · Issue #62 · croneter/PlexKodiConnect · GitHub

Thanks @croneter! It seems that the fallback for artwork in English is not working properly. When I had my Kodi interface language set to Spanish, very few logos, banners, etc. were downloaded, even though there were English ones in fanart.tv. When I switched my Kodi interface language to English and did a PKC database reset, all the artwork was downloaded.

Regards,

Bart

@rcrh said:

@rcrh said:

@croneter said:

@rcrh said:
Track Artist

I had an album that erroneously was split into two artists (first last & last,first). I editted the track and discovered that it was the only item that had the TRACK ARTIST field filled in. I deleted that field entry and Plex put the track back with the rest of the album and with the correct artist. But I can’t seem to get pkc to sync the change back to Kodi. I made this change three days ago and nothing has been updated in Kodi.
I’d rather not have to rebuild the music library cause it took hours the first time.
Any suggestions?

Plex sometimes doesn’t tell that you changed certain items (to be specific, certain attributes). Might have been the root cause of your problems.

Try PKC settings, Advanced, repair local database. Runs quicker than a resync

It might be quicker but wow. It’s been running 2 1/2 hours so far.
That’s a lot of time to fix one song.

And after over three hours it finished and didn’t change anything.
In frustration I looked at ALL of the id3 tags and found a field called “Band/Orchestra”. It had the “last,first” artist name. When I cleared it Plex updated & passed it on to Kodi.
I’m not sure why the actual ID3 info is being picked up by Kodi rather than what is in Plex.
Any thought?

Aha! Darn Kodi music database! (there is a dedicated music DB, separate from the video one). Are you using Direct Paths? In that case, Kodi seems to scan the files in the path, regardless whether Kodi already has all info in the DB.

@croneter one other thing I have found in regards to audio and subtitle language codes vs full name is that since Plex uses the full name in the original language (meaning PKC will write Español instead of Spanish in the Kodi db), the non-standard characters like ñ will make certain addons fail, like script.skin.info.service, when they parse the details for a movie or a tv episode.

Again, thanks for looking into making this a setting.

Regards,

Bart

Movie sets/collections are working well, except that I still haven’t gotten any of them to download posters. All of the other art gets downloaded aside from a few obscure sets. Is there any way to tweak them to be sure that they get recognized by the scraper?

Also, I understand that resetting the Kodi database is necessary for some updates, but would there be any way to reset just the movie portion of the database, or is it an all or nothing type of thing? I ask because I have a pretty decently sized TV show collection (3500+ episodes) and it becomes a 2+ hour process to re-sync both TV and movies. I find myself resetting the database strictly for updates or issues pertaining to movies which is fine, but becomes a pain when it also means resetting the TV Shows also.

@sciascia88 said:
Movie sets/collections are working well, except that I still haven’t gotten any of them to download posters. All of the other art gets downloaded aside from a few obscure sets. Is there any way to tweak them to be sure that they get recognized by the scraper?

Also, I understand that resetting the Kodi database is necessary for some updates, but would there be any way to reset just the movie portion of the database, or is it an all or nothing type of thing? I ask because I have a pretty decently sized TV show collection (3500+ episodes) and it becomes a 2+ hour process to re-sync both TV and movies. I find myself resetting the database strictly for updates or issues pertaining to movies which is fine, but becomes a pain when it also means resetting the TV Shows also.

Posters for sets work fine here on my side. Anyone else reading this who has the same issue? I’ll have a look: Additional fanarttv posters not downloading · Issue #65 · croneter/PlexKodiConnect · GitHub

Could you collect the sets that were not recognized/no artwork at all was downloaded? I’d be especially interested in the PMS xml for these items: choose a movie belonging to an obscure set, go the three dots, show info, then display XLM (or something like that, don’t have access to the PMS right now). I can then look at the set titles/names and see where the problem is exactly.

Resetting the DB is a sore point, I agree. With your large library you’re not a candidate for any beta testing that is still sometimes happening. Unfortunately, both movies and TV shows reside in the same DB, so the resetting of either one of them cannot be split from the other.

on the subject of sets…

Do you need to reset the database every time a new set is added to get it to show up

thanks

@Grumpy70 said:
on the subject of sets…

Do you need to reset the database every time a new set is added to get it to show up

thanks

No. If a new set “shows up” on Plex, the PMS items belonging to that set got changed. Hence they should be automatically rescanned by PKC.

@sciascia88 said:
Movie sets/collections are working well, except that I still haven’t gotten any of them to download posters. All of the other art gets downloaded aside from a few obscure sets. Is there any way to tweak them to be sure that they get recognized by the scraper?

Are you saying you get no collection posters at all @sciascia88? Ive noticed that there are quite a few missing collection posters on Fanart.tv for popular titles (like Aladdin). I thought something was wrong myself initially when I navigated through my library starting with"A" and kept seeing no posters.

Also note that I needed to let my system kind of sit and wait after the initial scan was done before collection posters started showing up. Not sure how long but at one point I was going to post here that posters weren’t working but then went back to my system and started flipping around and they were there.

@croneter is there any way that you know of to choose different art for the sections that are not controlled by PMS? Like movie collections or clear art? I know Kodi itself is downloading that per your setting in PKC.

Lets use Star Wars as an example. FanArt.tv has like 10 different posters to choose from for the collection image. Is there any way to change up that poster in Kodi?

@hstamas said:
@croneter is there any way that you know of to choose different art for the sections that are not controlled by PMS? Like movie collections or clear art? I know Kodi itself is downloading that per your setting in PKC.

Lets use Star Wars as an example. FanArt.tv has like 10 different posters to choose from for the collection image. Is there any way to change up that poster in Kodi?

I wondered the same thing @hstamas… would be kinda cool to be able to pick from fanart.TV the set poster/fanart art we preferred over others. I thought it may be slightly far fetched to request this, but seeing as you have, I shall show my support for it, should there be a possibility to accommodate it.

@croneter - just wondering if there is any news on PLEX playlist support? (honestly not trying to be pushy)… just interested to know if you think it shall be possible to support playlists at some stage?

thanks again, for your continued great work