Kodi Community Forum

Full Version: gdrive - Google Drive Video/Music Add-on
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Use your own client ID and client secret.
(2020-01-31, 23:57)aerik Wrote: [ -> ]Sign in with Google temporarily disabled for this app.

Any solution?

Use your own client ID and client secret.
(2020-02-01, 18:47)dmdsoftware Wrote: [ -> ]
(2020-01-31, 23:57)aerik Wrote: [ -> ]Sign in with Google temporarily disabled for this app.

Any solution?

Use your own client ID and client secret. 
How?
--UPDATE--
it seems that the problem I was facing got solved by itself, everything back to normal for me Smile

----------
Hi
I'm getting this error when i try to enter to my drives via the Gdrive addon (started just this morning) :

https://paste.kodi.tv/niwoparucu.kodi

any advice please? thanks in advanced.

p.s
it seems that I cannot enroll new account via http://dmdsoftware.net/GoogleSetupOAUTH2/index.html, it shows 404 not found, maybe it's related to my issue?
Do not post logs in the forum. Use https://paste.kodi.tv/ instead.

And upload a full debug log (wiki), not a snippet.
(2020-08-16, 11:21)DarrenHill Wrote: [ -> ]Do not post logs in the forum. Use https://paste.kodi.tv/ instead.

And upload a full debug log (wiki), not a snippet.

sorry, i fixed my post now. thanks.
You fixed the first part, but not the second one. Such snippets are usually not much help, upload the full log not just part of it.
@dmdsoftware
Is this plugin dead ?

If i am not mistaken i think you have app to export google drive to .strm to work with both kodi and emby ,but I can’t find the page on github , are you still developing apps with the same purpose ?
For anyone using this plugin to stream media with ddurdle's encryption, I have updated the plugin to be compatible with Kodi 19 and added new features. There's also a branch for Kodi 18.

https://github.com/JDRIVO/GDrive-for-KODI

Improvements:

1. Ability to add media flags to movies and episodes in their respective libraries
2. Resume support now functional for encrypted files
3. Watch status marking now functional featuring separate control of movie and episode watch status'

For media flags to be added the format of a STRM file must resemble the following:

python:
plugin://plugin.video.gdrive/?mode=video&encfs=True&title=Ted (2012)&video_codec=h264&video_width=1920&video_height=1040&video_duration=6282.326000&aspect_ratio=1.84615384615&audio_codec=dts&audio_channels=6&filename=5DfVdkGdGvpGdWgJm

An example of STRM builder script to achieve the above.

python:
import sys
import commands
import subprocess
import shlex
import json

videoName = sys.argv[1]
videoPath = sys.argv[2]
encryptedFilePath = sys.argv[3]
strmPath = sys.argv[4]

cmd = "ffprobe -v quiet -print_format json -show_format -show_streams"
args = shlex.split(cmd)
args.append(videoPath)
ffprobeOutput = subprocess.check_output(args).decode('utf-8')
ffprobeOutput = json.loads(ffprobeOutput)

if "codec_name" in ffprobeOutput['streams'][0]:
    videoCodec = str(ffprobeOutput['streams'][0]['codec_name'])
else:
    videoCodec = "unknown"

videoWidth = str(ffprobeOutput['streams'][0]['width'])
videoHeight = str(ffprobeOutput['streams'][0]['height'])
videoDuration = str(ffprobeOutput['format']['duration'])
aspectRatio = str(float(videoWidth) / float(videoHeight) )
audioCodec = str(ffprobeOutput['streams'][1]['codec_name'])
audioChannels = str(ffprobeOutput['streams'][1]['channels'])

fileID = commands.getstatusoutput("rclone lsf --format i '%s'" % encryptedFilePath)[1]

with open(strmPath + "/" + videoName + ".strm", "w+") as strm:
    strm.write("plugin://plugin.video.gdrive/?mode=video&encfs=True&title=%s&video_codec=%s&video_width=%s&video_height=%s&video_duration=%s&aspect_ratio=%s&audio_codec=%s&audio_channels=%s&filename=%s" % ( videoName, videoCodec, videoWidth, videoHeight, videoDuration, aspectRatio, audioCodec, audioChannels, fileID) )
I have a question.

When I check my video files on the Google Drive web browser, I see that Google transcodes as 360p and 720p version of a 720o video file.


In the Gdrive add-on settings I see an option to specify resolution.


If I choose 480P in the add-on settings will it serve a 480P version?

Basically I want to know if it's *only* the Transcoded resolutions on the Google Drive webpage that the add-on can serve.


I'm curious because for some reason my 4K videos only have 360P transcodes on the webpage
https://github.com/JDRIVO/gDrive/tree/Matrix
https://github.com/JDRIVO/gDrive/tree/Leia

Bringing this addon back from the dead in a simplified, barebones form. A lot of the functionality that I don't use has been stripped out and it only plays videos. It doesn't automatically create strms, I may add this in the future. You can use the old addon to create them or use a script like this one (tested and working):
https://github.com/makkonen/get-google-drive-streams

My strm files are created by the script that I use to upload files to Google Drive. Here is an example of a strm building script:
https://github.com/JDRIVO/gDrive/blob/Ma...example.py
Wow, great work thanks mate!!!  Very stable and fast!

I am now using the old and your new one, in combination...  As you suggested, the old one for strm creation.

And if you do get around to it...
I would be super interested in having your new version of Google Drive with the auto .strm file creation, using the "watch for changes" option, the same way the original addon did.  That way I can delete the old addon.
Big Grin

Cheers and Happy New Year!!!
Ken
Happy new year matey. Working on it now. Will report back when I have a test version ready.
Alrighty I have built a decent foundation for automated STRM creation. Here is a test build for Kodi Leia to play around with.

https://github.com/JDRIVO/gDrive/tree/Testing-Leia
I'm facing problem of lagging when I try to stream a 4K file from my google drive in Kodi

I have sony sony xe 9005 with Andriod 9

https://paste.kodi.tv/bugixufaxu.kodi