@doomf1ghter said:
Guys Kodi 17.5 Windows with PlexKodiconnect ban my google drive all day, any tip?
Don’t solely blame PKC and maybe this helps: https://blog.themain.house/connecting-plex-to-google-drive-without-the-api-bans/
@doomf1ghter said:
Guys Kodi 17.5 Windows with PlexKodiconnect ban my google drive all day, any tip?
Don’t solely blame PKC and maybe this helps: https://blog.themain.house/connecting-plex-to-google-drive-without-the-api-bans/
Hi there.
Trying to setup PKC on Kodi17.5 with Plex clod server for my music on gdrive. Sync works ok, but playback doesn’t.
17:03:41.527 T:139888755828800 DEBUG: Loading settings for musicdb://songs/424
17:03:41.528 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers(musicdb://songs/424)
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
17:03:41.528 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
17:03:41.529 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
17:03:41.529 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
17:03:41.529 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
17:03:41.529 T:139888755828800 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
17:03:41.529 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
17:03:41.529 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (PAPlayer)
17:03:41.529 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
17:03:41.529 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
17:03:41.529 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: VideoPlayer
17:03:41.529 T:139888755828800 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
17:03:41.536 T:139888755828800 ERROR: Init: Error opening file musicdb://songs/424
17:03:41.536 T:139888755828800 ERROR: CAudioDecoder: Unable to Init Codec while loading file musicdb://songs/424
17:03:41.536 T:139888755828800 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
Music DB looks fine:
sqlite> select * from songview where idSong=424;
424|The White Stripes|Indie Rock / Indie|Lafayette Blues|19|135|1999|google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE?X-Plex-Token=REAL_TOKEN_WAS_HERE||0|0|0||0.0|0|0||30|The White Stripes[Bonus Track]|https://29c8437ba96aeb20-05f4c5a00bbf4330a5fce9435d929ff8.ric.plex.services:443/services/clouddrive/google/media/|0|The White Stripes|album||
I can download this flac file with provided path and filename without problems. Giving up to find a problem myself, any help?
@chebba said:
sqlite> select * from songview where idSong=424;
424|The White Stripes|Indie Rock / Indie|Lafayette Blues|19|135|1999|google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE?X-Plex-Token=REAL_TOKEN_WAS_HERE||0|0|0||0.0|0|0||30|The White Stripes[Bonus Track]|https://29c8437ba96aeb20-05f4c5a00bbf4330a5fce9435d929ff8.ric.plex.services:443/services/clouddrive/google/media/|0|The White Stripes|album||I can download this flac file with provided path and filename without problems. Giving up to find a problem myself, any help?
You’re trying to set-up PKC with Direct Paths, correct? Unfortunately, Google drive paths don’t work out-of-the-box with Kodi, but needs a plugin like https://forum.kodi.tv/showthread.php?tid=177557 even for “simple” standard playback and Kodi features.
Currently, PKC Direct Paths do yet not support Google Drive.
Edit: If you’re extremely lucky, you just need to install the add-on linked above and PKC works. But I highly doubt it
@croneter said:
@chebba said:
sqlite> select * from songview where idSong=424;
424|The White Stripes|Indie Rock / Indie|Lafayette Blues|19|135|1999|google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE?X-Plex-Token=REAL_TOKEN_WAS_HERE||0|0|0||0.0|0|0||30|The White Stripes[Bonus Track]|https://29c8437ba96aeb20-05f4c5a00bbf4330a5fce9435d929ff8.ric.plex.services:443/services/clouddrive/google/media/|0|The White Stripes|album||I can download this flac file with provided path and filename without problems. Giving up to find a problem myself, any help?You’re trying to set-up PKC with Direct Paths, correct? Unfortunately, Google drive paths don’t work out-of-the-box with Kodi, but needs a plugin like https://forum.kodi.tv/showthread.php?tid=177557 even for “simple” standard playback and Kodi features.
Currently, PKC Direct Paths do yet not support Google Drive.
Edit: If you’re extremely lucky, you just need to install the add-on linked above and PKC works. But I highly doubt it
I’m trying to setup the default Addon mode
<setting id="useDirectPaths" value="0" />
I’ve just installed the fresh 17.5 Kodi with PKC on my laptop with all default settings. Got the same db structure and playback doesn’t work
Should it work in Addon mode with gdrive?
Spent some more time on the issue. I bet the problem is here https://forum.kodi.tv/showthread.php?tid=262269&pid=2265952#pid2265952
I’ve updated all strFileName in song to smth like google:0B2tm5_ETNwpfUnpNWm5IWV9oalU.flac, update path to my local nginx with redirect to original plex location and it works. So i guess the problem is in the strFileName without extensions
Hi all,
I used default path with success since now but I would like to use direct path.
My PLEX MEDIA SERVER is on a NAS Synology with my medias.
My player is an android SHIELD TV
My NAS has a static IP 192.168.1.103 and named on the network: NAS-SYNOLOGY
The sync works (movie and posters appears) but the playback don’t launch and Kodi says that the media isn’t available.
I’m unable to apply direct path.
My movies are located in on this path: NAS-SYNOLOGY/volume1/VIDEO/FILMS
The default path of movies location on Plex is: /volume1/VIDEO/FILMS/aaaaaa.mkv
Please could you tell me the right path to assign on smb://
Because I have entered this on the picture below:
But nothing works.
May I have to write something on “original Plex movie path to replace” like I do on the screen?
I would be very grateful if you could write me the right path to enter and right option to choose on these screen settings.
Thank you for your help because I don’t understand the mistake.
Regards
pierre
@mikty
Can Kodi access smb://NAS-SYNOLOGY/volume1/VIDEO/FILMS? So did you check number 2 here: https://github.com/croneter/PlexKodiConnect/wiki/Set-up-Direct-Paths
@chebba said:
Spent some more time on the issue. I bet the problem is here Help with plugin:// call using the native Kodi music database
I’ve updated allstrFileNameinsongto smth likegoogle:0B2tm5_ETNwpfUnpNWm5IWV9oalU.flac, update path to my localnginxwith redirect to original plex location and it works. So i guess the problem is in thestrFileNamewithout extensions
That’s quite the hack. Direct paths work for you now for Google drive?!? I’d love to implement that for PKC for others…
What was strFileName before your replacement? How did you know the string to replace it with, google:0B2tm5_ETNwpfUnpNWm5IWV9oalU.flac? How does nginx come into play?
@croneter the log I sent you in PM for the disconnection errors was a debug log.
Is there something else you need or did I do it wrong? I can see debug entries in the log?
@croneter said:
@chebba said:
Spent some more time on the issue. I bet the problem is here Help with plugin:// call using the native Kodi music database
I’ve updated allstrFileNameinsongto smth likegoogle:0B2tm5_ETNwpfUnpNWm5IWV9oalU.flac, update path to my localnginxwith redirect to original plex location and it works. So i guess the problem is in thestrFileNamewithout extensionsThat’s quite the hack. Direct paths work for you now for Google drive?!? I’d love to implement that for PKC for others…
What was strFileName before your replacement? How did you know the string to replace it with,
google:0B2tm5_ETNwpfUnpNWm5IWV9oalU.flac? How does nginx come into play?
Default PKC installation with direct paths off generates the following db schema for plex cloud with gdrive:
path.strPath=https://29c8437ba96aeb20-05f4c5a00bbf4330a5fce9435d929ff8.ric.plex.services:443/services/clouddrive/google/media/
song.strFileName=google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE?X-Plex-Token=MY_REAL_TOKEN
which is generated from server, url and token here https://github.com/croneter/PlexKodiConnect/blob/aa83776a8bcb5891aecd2a9a796ed6fdb2191478/resources/lib/itemtypes.py#L1659
So the full path to the track is
https://29c8437ba96aeb20-05f4c5a00bbf4330a5fce9435d929ff8.ric.plex.services:443/services/clouddrive/google/media/google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE?X-Plex-Token=MY_REAL_TOKEN
and it works correctly. I can download it (it redirects to googledrive and returns direct file content), i can add this url to m3u playlist and it works from kodi. But it doesn’t work from music db (i assume because of some problem inside kodi which doesn’t handle filenames without extensions).
I’ve updated db with:
path.strPath=http://localhost/services/clouddrive/google/media/?X-Plex-Token=MY_REAL_TOKEN
song.strFileName=google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE.flac
The result url is
http://localhost/services/clouddrive/google/media/google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE.flac?X-Plex-Token=MY_REAL_TOKEN (Kodi handles url parameters correctly - moves it to the end)
nginx on the localhost just redirects to the original url removing .flac extension
https://29c8437ba96aeb20-05f4c5a00bbf4330a5fce9435d929ff8.ric.plex.services:443/services/clouddrive/google/media/google:0B2tm5_ETNwpfbm9NY0NjSGx4dlE?X-Plex-Token=MY_REAL_TOKEN
I don’t know how to make a workaround inside PKC. If db schema contains file extension there should be a place which rewrites url to the real one (like nginx in my test). I guess addon:// urls don’t work inside musicdb.
@croneter said:
@mikty
Can Kodi accesssmb://NAS-SYNOLOGY/volume1/VIDEO/FILMS? So did you check number 2 here: Set up Direct Paths · croneter/PlexKodiConnect Wiki · GitHub
hi, thanks,
I can access on smb with kodi adding manuallly a source but with path below on the screen (without volume1):
but even with this path on plekodiconnect, I can’t access to a movie and show me a kodi message that the media isn’t available and ask for delete yes/no.
the sync works normally but I can’t access to movies.
I don’t understand what happens. if you could show me the right path to write with my original path of my first post. thanks for your help. regards pierre
@chebba
Many thanks for this detailed description. Unfortunately, it comes down to the Kodi music DB once again
. plugin:// paths don’t work there, nor do files without an extension, apparently. Also, PKC simply modifies the music and video DBs and leaves the heavy lifting like actual playback to Kodi. I don’t see a way to internalize your .flac / nginx hack into PKC, sorry
@mikty
So you cannot reach Plex by its hostname NAS-SYNOLOGY, but the above IP 192.168.1.103 works when you manually add a Kodi source? Make sure you’re using fixed IPs then.
Try the following:
/volume1/VIDEO
smb://192.168.1.103/video
FILMS or SERIES if it is exactly the same folder, mind the case though!)Reset the Kodi database.... Then hit Yes, Yes, No@croneter said:
@mikty
So you cannot reach Plex by its hostnameNAS-SYNOLOGY, but the above IP 192.168.1.103 works when you manually add a Kodi source? Make sure you’re using fixed IPs then.Try the following:
- Make sure that you do NOT have any Kodi sources manually added! This confuses Kodi and is unnecessary for PKC. It’s only a way of testing whether you can actually access the Plex media files using Kodi
- Use the following PKC settings (remember that these paths are case-sensitive!!):
- Original Plex movie path to replace:
/volume1/VIDEO- Replace Plex movie path with:
smb://192.168.1.103/video- Same for TV series (no need to attach the
FILMSorSERIESif it is exactly the same folder, mind the case though!)- In the PKC settings under Advanced, hit the red
Reset the Kodi database.... Then hit Yes, Yes, No
It works !
thank you so much for your time to show me the right path. for information , my nas has a static IP (192.168.1.103) and don’t understand why NAS-SONOLOGY (his name on my network) don’t work but nevermind. All is ok thanks for your marvelous addon regards pierre
hello, for the last couple of weeks I am unable to see any remote plex servers in my plex kodi connect. i.e. my brothers one. When I log in via the an internet explorer or use a plex app on a mobile phone or even plex app on a firetv, I can see the server and perform playback.
Any known issues? I am on the latest beta version.
Hi,
I have just done a latest Kodi install on windows and with the latest stable pkc. Been going through the log files and what seems to happen is that when it tries to connect to plex.tv… plextv is not passing back a token.
“16:40:43.186 T:11800 ERROR: PLEX.PlexAPI: Could not find token in plex.tv answer”
I picked up the token manually from the plex web server, stuck it and and was able then to get connected again to plex.tv but still in the “choose server” I am still on able to see my Home (local) server.
@wot76 said:
Hi,
I have just done a latest Kodi install on windows and with the latest stable pkc. Been going through the log files and what seems to happen is that when it tries to connect to plex.tv… plextv is not passing back a token.“16:40:43.186 T:11800 ERROR: PLEX.PlexAPI: Could not find token in plex.tv answer”
I picked up the token manually from the plex web server, stuck it and and was able then to get connected again to plex.tv but still in the “choose server” I am still on able to see my Home (local) server.
Try going to the PKC Settings, advanced, then the red Reset the Kodi database. Hit 3x Yes to completely reset PKC
Hey croneter,
i just walked by to tell you that since the last Kodi 17.5 update all my devices are not able to play videos or tv shows. It keeps telling me that the media is not found.
While looking into the logfiles it seems that the SSL connect error (35) mentioned earlier returned again but this time on Android, Windows, Linux and Fire TV Sticks.
As i am not able to replace or install python on my Android device it must be kodi or plexkodiconnect specific. I am using the newest plex server version 1.9.6 and as of today 1.9.7 which didn’t resolve the issue either. Playing files from within the web player works.
Edit: If i deactivate “use SSL” it starts working again after a kodi restart. So the error must belong to some kind of connection part of PKC or kodi with the ssl implementation, maybe curl ? (Also ccurl error shows up also)
There might have been a python update on the Kodi or Android side then (requests package, not curl). Try to deactivate Verify SSL certificate in the PKC Settings
Edit - I’d be happy to receive a full debug log so I can have a look (send a pm)
@croneter said:
There might have been a python update on the Kodi or Android side then (requests package, not curl). Try to deactivate Verify SSL certificate in the PKC SettingsEdit - I’d be happy to receive a full debug log so I can have a look (send a pm)
The requests package was updated recently. I saw it update the other day. There was a fix for the Plex for Kodi, maybe that will give you an idea of where to look?
I think this is the package Kodi installs.