Kodi Community Forum

Full Version: Google Drive for KODI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2019-07-23, 14:56)Publish3r Wrote: [ -> ]
(2019-07-23, 03:19)olympus Wrote: [ -> ]
(2019-07-22, 15:24)Publish3r Wrote: [ -> ]2.) - very important for me:

Added Google Drive to Video and Music database/library with localhost:port/path...
It's working for both.
Videofiles scraping works. All information are loaded.
MP3 scraping ist not working. Kodi tries to scrape... 0% up to 100% but in the end no data found.

As far as I have understood about how Kodi works, I don't think it's possible to make this to work.
Because music scraping works differently than video scraping.
Kodi reads the metadata of the songs from the files (it's a mandatory) unlike video scraping.
Kodi can't read the files because they are not actual audio files.
I may don't know what I am talking about, but I think I am right on this.
I don't think this is something cguZZMan could make it to work.
Kodi's music scraping would have to be changed fundamentally.   
@olympus Maybe you are right. But another guy from the german kodi forum is using gdrive with rclone and emby. He can scrape his mp3s.
I'm not using emby and i don't want to use it. Rclone is of course an alternative to this addon. I have to try it, maybe it will work with rclone.  

I haven't tested it a lot because most of my content is local, I don't have a lot of content in my Google Drive account.
I tried something out of curiosity.
I created some dummy audio files with ffmpeg (with the same duration and metadata) and scraped them.
Then I uploaded the original audio files to my Drive following the same folder structure.
I edited with SQLite Browser the music database db file, the paths, to make it have as root of each album the http directory of them.
I mean this kind of directory http://localhost:8587/source/.
Kodi played them from my Google Drive account.
I am shocked this worked, but I wouldn't suggest anybody to try it.
I think it's a bad idea to edit the db files ourselves, everything can go wrong.
Maybe Emby, I don't have any exprerience on it, gives actual audio files to Kodi.
Let's hope when cguZZMan is back, to give a better answer than mine, he definitely knows if he could make this to work.
(2019-07-23, 15:35)olympus Wrote: [ -> ]
(2019-07-23, 14:56)Publish3r Wrote: [ -> ]
(2019-07-23, 03:19)olympus Wrote: [ -> ]As far as I have understood about how Kodi works, I don't think it's possible to make this to work.
Because music scraping works differently than video scraping.
Kodi reads the metadata of the songs from the files (it's a mandatory) unlike video scraping.
Kodi can't read the files because they are not actual audio files.
I may don't know what I am talking about, but I think I am right on this.
I don't think this is something cguZZMan could make it to work.
Kodi's music scraping would have to be changed fundamentally.   
@olympus Maybe you are right. But another guy from the german kodi forum is using gdrive with rclone and emby. He can scrape his mp3s.
I'm not using emby and i don't want to use it. Rclone is of course an alternative to this addon. I have to try it, maybe it will work with rclone.    

I haven't tested it a lot because most of my content is local, I don't have a lot of content in my Google Drive account.
I tried something out of curiosity.
I created some dummy audio files with ffmpeg (with the same duration and metadata) and scraped them.
Then I uploaded the original audio files to my Drive following the same folder structure.
I edited with SQLite Browser the music database db file, the paths, to make it have as root of each album the http directory of them.
I mean this kind of directory http://localhost:8587/source/.
Kodi played them from my Google Drive account.
I am shocked this worked, but I wouldn't suggest anybody to try it.
I think it's a bad idea to edit the db files ourselves, everything can go wrong.
Maybe Emby, I don't have any exprerience on it, gives actual audio files to Kodi.
Let's hope when cguZZMan is back, to give a better answer than mine, he definitely knows if he could make this to work.  
I had the same idea but havn't tryed it yet.
It's somethink for a rainy weekend.
Thanks for your suggestions.

Edit:
I found another solution.
I added my GDrive to my Nextcloud, added Nextcloud via webdav to Kodi, MP3 scraping works.
(2019-04-22, 16:58)gilsonsjc Wrote: [ -> ]
(2019-04-22, 16:54)stevensgl Wrote: [ -> ]
(2019-04-22, 12:31)ojerez Wrote: [ -> ]Hello, since a few days ago my nVidia Shield plays with many cuts my movies from my Google Drive Team Drive. I have restored Kodi from 0, but playback is still failing. I have installed the addon in a Mecool KI Pro and I have reproduced the same movie in 4k and without cuts. What can be the failure?

Try restoring your shield tv  

I have been facing the same issue: https://github.com/cguZZman/plugin.googl.../issues/67 

The workaround for me: install Kodi 18.0. 

@cguZZMan - I am still facing that slow source issue on Kodi 18.0, 18.1, 18.2 and 18.3 on Shield  - any news about it?
Hi cguZZMan, since this last friday I had have a issue trying to connect my Google account in yor add-ons but when I put the pin in the website and select my account  in the add-ons said me "Unable to retrieve the drive information: HTTP Error 404:Not Found, Please try again." And I tried witn many networks and I couldn´t join my account.
I guess this Addon is no longer being supported .
Unknown error

Extra data line 118 column 2-line 1118 column 3 (char 5012-5013)
@keithcq71

This is not an add-on I follow so I don't know its status and the developers intention. But a Debug Log might help.
Thanks .
just checking - has anyone seen this error message on their google drive add-on?
unknown error: no json object could be decoded. please try again.
I'm using leia on nvidia shield. 
im currently away and wife getting this error when she tried to play any file on the google team drive.
I'm using this addon to add movies and series to the library. Almost everything is working well enough, I just have two little problems. How do I keep it from scraping Extras as well? When I used to put my films in my HDD, I just used the ".nomedia" solution. But it doesn't seem to work with the Google Drive addon. Also, for some reason, Dark Shadows (1996) S01E01 is not being added to the library (the rest of the episodes are)
(2019-08-16, 02:03)mondasianangel Wrote: [ -> ]I'm using this addon to add movies and series to the library. Almost everything is working well enough, I just have two little problems. How do I keep it from scraping Extras as well? When I used to put my films in my HDD, I just used the ".nomedia" solution. But it doesn't seem to work with the Google Drive addon. Also, for some reason, Dark Shadows (1996) S01E01 is not being added to the library (the rest of the episodes are)

Extras: https://kodi.wiki/view/Add-on:Extras 
TV Show scrapping: check the naming convention for TV Shows: https://kodi.wiki/view/Naming_video_files/TV_shows and also check if the information you are providing match what is found at https://themoviedb.org/
(2019-08-16, 02:09)gilsonsjc Wrote: [ -> ]
(2019-08-16, 02:03)mondasianangel Wrote: [ -> ]I'm using this addon to add movies and series to the library. Almost everything is working well enough, I just have two little problems. How do I keep it from scraping Extras as well? When I used to put my films in my HDD, I just used the ".nomedia" solution. But it doesn't seem to work with the Google Drive addon. Also, for some reason, Dark Shadows (1996) S01E01 is not being added to the library (the rest of the episodes are)

Extras: https://kodi.wiki/view/Add-on:Extras 
TV Show scrapping: check the naming convention for TV Shows: https://kodi.wiki/view/Naming_video_files/TV_shows and also check if the information you are providing match what is found at https://themoviedb.org/ 
Everything is correct. Extras weren't being added to the library as movies and the episode was being added to the library before. It's not a naming problem. The problems only appeared after I uploaded to Google Drive and started using it as the source
(2019-08-16, 02:21)mondasianangel Wrote: [ -> ]
(2019-08-16, 02:09)gilsonsjc Wrote: [ -> ]
(2019-08-16, 02:03)mondasianangel Wrote: [ -> ]I'm using this addon to add movies and series to the library. Almost everything is working well enough, I just have two little problems. How do I keep it from scraping Extras as well? When I used to put my films in my HDD, I just used the ".nomedia" solution. But it doesn't seem to work with the Google Drive addon. Also, for some reason, Dark Shadows (1996) S01E01 is not being added to the library (the rest of the episodes are)

Extras: https://kodi.wiki/view/Add-on:Extras 
TV Show scrapping: check the naming convention for TV Shows: https://kodi.wiki/view/Naming_video_files/TV_shows and also check if the information you are providing match what is found at https://themoviedb.org/  
Everything is correct. Extras weren't being added to the library as movies and the episode was being added to the library before. It's not a naming problem. The problems only appeared after I uploaded to Google Drive and started using it as the source 
Extras: check this out: https://forum.kodi.tv/showthread.php?tid...pid2058449 
TV Shows: how are you setting up your google drive libraries? Using the service? I am using the .strm exports. Sometimes you have to run it manually though, but it works most of the times.
Extras: I tried but the it didn't work
TV Shows: I'm exporting the TV Shows folder as .strm files from Google Drive to a folder on my HD and added it (the .strm folder) as source
(2017-11-28, 22:19)cguZZMan Wrote: [ -> ]Image

The Google Drive add-on for KODI is in the Kodi Addon Repository
  • Unlimited accounts
  • Team Drives support
  • Google Photos support
  • Playback your music and videos. Listing of videos with thumbnails.
  • Use Google Drive as a source.
  • Subtitles can be assigned automatically if a .str file exists with the same name as the video.
  • Export your videos to your library (.strm files). You can export your music too, but kodi won't support it yet. It's a Kodi issue for now.
  • Show your photos individually or run a slideshow of them. Listing of pictures with thumbnails.
  • Auto-Refreshed slideshow.
  • Use of OAuth 2 login. You don't have to write your user/password within the add-on. Use the login process in your browser.
  • Extremely fast. Using the Google Drive API

All platforms supported!

Installation
  • From the Kodi Add-on repository
  • From my repository if for any reason the latest version is still not in the Kodi Add-on repository.
  • Manual, by downloading the source code and creating your zip. 
    • If your installation is manual, you must install first the latest version of the common module.
How to add an account?
1. Select "Add an account...".
2. Scan and follow the QR code, then sign-in into your account and allow the app permissions. That's it.
or
2. Go to the login page displayed in your screen and enter the code generated for you.
3. Sign-in into your account and allow the app permissions. That's it!

How to add Google Drive as a source?
1. Add an account.
2. The source path is: http://localhost:8587/source/. If you want/need to change the port number, you can do so within the addon settings.


Want to contribute? If you need to report an issue, post always your message with your debug log file: https://kodi.wiki/view/Log_file/Easy

Source code:
https://github.com/cguZZman/plugin.googledrive


Any comment, suggestion or report of issues are appreciated. I'll try to respond asap.

This program/addon is not affiliated with or sponsored by Google. 

What is the purpose of this addon, to host repos or other files, it can't possibly be to stream videos if so what about google's daily data limits? Unless you have a paid google account this could be restrictive. OR perhaps I'm just not getting the point of the purpose of the app but I'm learning so please do clarify.