[RELEASE] gdrive - Google Drive Video/Music Add-on

  Thread Rating:
  • 8 Vote(s) - 4.63 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #1
Google Drive video and music add-on for XBMC

A video add-on for XBMC that enables playback of videos and music stored in a Google Drive account.

Supports [Tested on]: All XBMC 12/13 KODI 14 including Linux, Windows, OS X, Android, Pivos, iOS (including ATV2), Raspberry Pi

The plugin uses the Google Docs API 3 & Google Drive API 2.

Getting Started:

LATEST (latest stable) [v0.8.37]
http://dmdsoftware.net/repository.ddurdl...0.8.37.zip

Previous stable [v0.8.05]
http://dmdsoftware.net/repository.ddurdl...0.8.05.zip

Testing build [v0.8.37]
http://dmdsoftware.net/repository.ddurdl...0.8.37.zip

known issues with this test build:
None

Setup your account!
Instructions to setup OAUTH2 login - http://dmdsoftware.net/

GOOGLE APPS OAUTH2 - READ-only (DEFAULT) Visit in your browser and activate authorization, then create a username and passcode for the app: https://accounts.google.com/o/oauth2/aut...ontent.com

GOOGLE APPS OAUTH2 - READ/WRITE (for saving resume points) Visit in your browser and activate authorization, then create a username and passcode for the app: https://accounts.google.com/o/oauth2/aut...ontent.com

other method - dmdsoftware.net OAUTH2 - To get the "code", in your web browser, visit the following URL and "copy" the code into your code setting.
https://accounts.google.com/o/oauth2/aut...ontent.com
Once you are authenticated, you won't need to do so again, unless you revoke permissions.

Installing the plugin only (no automatic updates):
1) download the .zip file
2) transfer the .zip file to XBMC
3) in Video Add-on, select Install from .zip

Installing the repository (automatic updates):
1) download the repository.ddurdle (download from http://dmdsoftware.net/repository.ddurdle.zip or https://github.com/ddurdle/repository.dd...durdle.zip)
2) transfer the .zip file to XBMC
3) in Video Add-ons, select Install from .zip; repository should be installed
4) in Video Add-ons, select Get Add-ons, select ddurdle's XBMC Addons, select Video Add-ons, select gdrive





Before starting the add-on for the first time, either "Configure" or right click and select "Add-on Settings". Enter your fully-qualified Username (including @gmail.com or @domain) and Password.

Talk about settings:




Modes:
1) standard index
- starting the plugin via video add-ons will display a directory containing all video files within the Google Drive account or those that are shared to that account
- click on the video to playback
- don't create favourites from the index, as the index will contain a URL that will expire after 12-24 hours
2) mode=playvideo
* uses default method of streaming (either #2 or #3) based on the value of Playback Type is in Settings.
- you can create .strm or .m3u files that run Google Drive videos direct
- create .strm or .m3u files containing the following: plugin://plugin.video.gdrive?mode=playvideo&title=Title_of_video
- if your video is composed of multiple clips, you can create a .m3u that makes the above plugin:// call, one line for each clip. You can then create a .strm file that points to the .m3u. XBMC can index movies and shows contained in your Google Drive account by either a .strm containing a single plugin:// call to the video, or a .strm that points to a local .m3u file that contains a list of plugin:// calls representing the video
3) mode=memoryCacheVideo
- playback via HTTPS as if you were downloading the video -- playback is therefore in native format
- bypasses Playback Type in Settings
* HTTPS playback is problematic on a Raspberry Pi (fails most of the time -- due not use this method on a Raspberry Pi)
- create .strm or .m3u files containing the following: plugin://plugin.video.gdrive?mode=memoryCacheVideo&title=Title_of_video
- if your video is composed of multiple clips, you can create a .m3u that makes the above plugin:// call, one line for each clip. You can then create a .strm file that points to the .m3u. XBMC can index movies and shows contained in your Google Drive account by either a .strm containing a single plugin:// call to the video, or a .strm that points to a local .m3u file that contains a list of plugin:// calls representing the video
4) mode=streamVideo
- playback via stream (automatically transcoded by Google Drive playback services)
- bypasses Playback Type in Settings
- create .strm or .m3u files containing the following: plugin://plugin.video.gdrive?mode=streamVideo&title=Title_of_video
- if your video is composed of multiple clips, you can create a .m3u that makes the above plugin:// call, one line for each clip. You can then create a .strm file that points to the .m3u. XBMC can index movies and shows contained in your Google Drive account by either a .strm containing a single plugin:// call to the video, or a .strm that points to a local .m3u file that contains a list of plugin:// calls representing the video
5) mode=streamURL
- playback a specific Google Drive Video URL (format: https://docs.google.com/file/d/#####/preview) via stream (automatically transcoded by Google Drive playback services)
- handy for playback of publicly shared videos stored in Google Drive
- bypasses Playback Type in Settings
- create .strm or .m3u files containing the following: plugin://plugin.video.gdrive?mode=streamURL&url=https://docs.google.com/file/d/#####/preview
- if your video is composed of multiple clips, you can create a .m3u that makes the above plugin:// call, one line for each clip. You can then create a .strm file that points to the .m3u. XBMC can index movies and shows contained in your Google Drive account by either a .strm containing a single plugin:// call to the video, or a .strm that points to a local .m3u file that contains a list of plugin:// calls representing the video

FAQ:

1) Is there support for Google Apps Google Drive accounts?
Yes. Use your fully qualified username whether that is [email protected] or [email protected]

2) Is there support for multiple accounts?
Sort of. For now, you should share all your videos from subsquent Google Drive accounts to the main Google Drive account that you use with this add-on. The shared videos will appear in the index and are viewwable.

3) Does thie add-on support Pictures or other filetypes?
Yes, pictures / photos is being tested and is supported since 0.4.5.

4) Any limitations?
I've tested the add-on with several Google Drive accounts, including one with over 700 videos.

It's time for users to submit a list of requested features they'd like to see added to this plugin. Don't hold back.

Either drop your request here or drop it here https://github.com/ddurdle/GDrive-for-KODI/issues
(This post was last modified: 2017-05-06 15:11 by dmdsoftware.)
find quote
rflores2323 Offline
Posting Freak
Posts: 1,914
Joined: Jan 2009
Reputation: 2
Post: #2
Great job. I hope to try it out soon

ATV1 with crystalbuntu (12.2 frodo) as main theater. Theater remote URC MX-810, droidx with xbmc remote, or transformer tf101 with YATSE. 3 x ATV2 (V12.2 frodo).

find quote
alibaba011 Offline
Member
Posts: 83
Joined: Dec 2011
Reputation: 21
Post: #3
Thank you for the great plugin. It is smooth but i dont have too may videos. I also tested it to play from livestreams plugin and it works great. Thanks for great sharing.
find quote
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #4
Thanks for the encouragement.

I'm intending on adding more features and extending functionality.
find quote
markas Offline
Junior Member
Posts: 2
Joined: Nov 2013
Reputation: 0
Post: #5
Thank you for this great app just as I started using XBMC for the first time. I have over a hundred alternative films on my google drive and this is the add-on i need. Unfortunately, I have not yet been able to get it to work. I am very much a noob but I did manage to get the add-on installed and enabled and it appears in my video add-ons. I went into the configure screen and entered my gmail/drive user name in the form [email protected] and entered my password as well. When i go to Video - Add-on and click on the gDrive icon I get back a message "Error! script failed gDrive 2.0" I am running Linux Mint 15 on an HP DV-9230us. Any help would be greatly appreciated.
I was not sure what you meant in your instructions when you stated "2) transfer the .zip file to XBMC " I simply clicked on Install from .zip file then navigated to where i had downloaded it to in my Home-Download folder and clicked on the file to install the add-on.
find quote
Eleazar Coding Offline
Banned
Posts: 187
Joined: Oct 2013
Location: Jerusalem, Israel
Post: #6
Nice work!
find quote
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #7
(2013-11-09 06:43)alibaba011 Wrote:  Thank you for the great plugin. It is smooth but i dont have too may videos. I also tested it to play from livestreams plugin and it works great. Thanks for great sharing.

(2013-11-11 05:48)markas Wrote:  Thank you for this great app just as I started using XBMC for the first time. I have over a hundred alternative films on my google drive and this is the add-on i need. Unfortunately, I have not yet been able to get it to work. I am very much a noob but I did manage to get the add-on installed and enabled and it appears in my video add-ons. I went into the configure screen and entered my gmail/drive user name in the form [email protected] and entered my password as well. When i go to Video - Add-on and click on the gDrive icon I get back a message "Error! script failed gDrive 2.0" I am running Linux Mint 15 on an HP DV-9230us. Any help would be greatly appreciated.
I was not sure what you meant in your instructions when you stated "2) transfer the .zip file to XBMC " I simply clicked on Install from .zip file then navigated to where i had downloaded it to in my Home-Download folder and clicked on the file to install the add-on.

For installing, from within XBMC, you can access Videos -> Add-ons -> Get More -> Install from zip file, then navigate to the .zip file and click ok. You can also install it from System -> Add-ons -> Install from zip file.

If you have it installed, you'll notice a directory called plugin.video.gdrive under ~/.xbmc/addons/

Can you send me the debug log? I will PM you the email address. You can enable debug by going to System -> System -> Debugging, enable debug logging. Then try accessing the plugin. After you encounter the error, send me the log located at ~/.xbmc/temp/xbmc.log.
find quote
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #8
I have pushed a 0.2.1 version.

I found a minor issue with the authorization token feature turning on by itself. If you are encountering errors and if you see the authorization token field containing a value in Addon Settings, install the new revision, go into Addon Settings and click Defaults. This will reset your input fields. The authorization token field should not populate with a value unless you turn the experimental feature on. At this time, it is not recommended you turn that feature on.
find quote
sumac Offline
Junior Member
Posts: 4
Joined: Jan 2014
Reputation: 0
Post: #9
Great work! I'm trying to build my first addon, which will play videos that are publicly hosted on Google Drive. Is there a way for me to call plugin://plugin.video.gdrive?mode=playvideo&videoid=ID_of_video instead of using the title, and without having to enter credentials for authentication? Thank you
find quote
hasselhof Offline
Donor
Posts: 595
Joined: Jul 2008
Reputation: 34
Location: UK
Post: #10
Hi dmdsoftware, great add-on thank you very much. Is there any chance that you could add picture viewing also, this would be fantastic if possible to view all the family backed up photo's. Once again thanks for your time and effort.
find quote
o2ri Offline
Junior Member
Posts: 24
Joined: Jun 2013
Reputation: 0
Post: #11
tried it , shows the list but fails to play it
find quote
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #12
(2014-01-25 20:20)o2ri Wrote:  tried it , shows the list but fails to play it

It was working as of Monday.

It appears (from reading on google drive developer APIs) that they are pushing through new changes to the Google Drive Accounts (new features). I logged in today to my drive account, and sure enough, the UI is different. The plugin isn't working for me anymore either. I get the list but playback fails. Debugging shows that an API call that was working before now fails. It looks to be a google bug, but there should be a way around it. Will need to work on it.
find quote
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #13
Updated! with version 0.2.5

I tracked the newly introduced problem recently where the list of videos show up, but playback fails. This problem started for me on Tuesday Feb 04, 2014. I, coincidentally, noticed that the UI for Google Drive WebSite UI also updated at the same time. I don't know if it is a bug or an intentional change. The change is that now video files are accessible via the wise service and not writely (the way it has been previously). Therefore, playback would fail. I have updated the plugin to download or stream using wise.

IF YOUR ACCOUNT ISN'T AFFECTED BY THIS CHANGE, that is, if your Google Drive account has not yet been updated (since changes to the services are rolled out gradually), you can force using the old method. In most cases, the plugin will automatically try to use the writely service if it detects that your account hasn't switched over yet. But in cases where you use the playvideo or memoryCacheVideo parameters to invoke a video file directly, you will need to actually enable "Force old writely service for plackback" to ON/TRUE in settings IF you find that playback fails
find quote
matjai Offline
Junior Member
Posts: 1
Joined: Feb 2014
Reputation: 0
Post: #14
Can't wait for the folders updates.
find quote
dmdsoftware Offline
Posting Freak
Posts: 1,193
Joined: Sep 2013
Reputation: 45
Post: #15
The folder updates are my next task. My main account has over 500 videos.
find quote
Post Reply