• 1
  • 93
  • 94
  • 95(current)
  • 96
  • 97
  • 122
Release gdrive - Google Drive Video/Music Add-on
(2017-08-08, 06:02)masimito Wrote: Hi!!

Please, help!

I have two kodi devices and one google drive account.

I followed the steps in dmdsoftware for OAUTH2.

Everything worked fine in the first kodi.

I am lazy, so in the second kodi device I just copied the .kodi/userdata/addon_data/plugin.video.gdrive/settings.xml from the first kodi device and everything worked OK.

However, when I came back to the first kodi device, gdrive can show all videos but just can't play it, it hangs in "opening stream", if I cancel I get: "Playback failed, one or more items failed to play. Check the log for more information about this message". Where is the log information?.

After a while it works again, but then it doesn't work anymore in the second kodi device!

I need the streams to work in both kodi devices, and also be able to add a third or fourth one.

Do I need to create a second username/auth code for the second kodi device? and the third and so on?

Could anyone help? please.

Thank you!

PD. Just if this is important, I have set up the google share only for people with the link.

try again. try different media files. It should work.
Reply
(2017-08-08, 15:46)SEIKT Wrote: Going to lay down some enhancement ideas which may be out of scope/not possible.

Enhancements to improve newbies ease of use:

1. Rename STRMs to a Kodi friendly format:

Example 1 - if the movie file is named Ghost in the Shell 2017 BluRay CEE 1080p AVC Atmos TrueHD 7 1
gdrive creates a STRM named Ghost in the Shell (2017).strm inside a folder dedicated to movie STRMs.

Example 2 - a TV episode file named Fear Factor S05E18 WEB x264
gdrive creates a directory named Fear Factor (if non-existent) inside a folder dedicated to TV STRMs. gdrive also creates a sub-directory named Season 05 (if non-existent). Within the Season 05 folder a STRM is created named S05E18.strm

2. Gdrive monitors a movie folder and TV folder within Google Drive, scouting for changes. When a new movie/TV show is uploaded, gdrive automatically creates a STRM file and also updates the local Kodi library. Perhaps gdrive even fetches subtitles for that particular video too.

3. Sync STRMs to cloud - Option to encrypt them for those who have gone down the encryption route.

General enhancements:

1. Now that it's possible to locally resume and mark videos as watched using STRMs, this may be a possibility too - Display movie/TV episode information and its poster art within the Kodi player when playing a STRM file.

2. Ability to delete videos within the browser and when deleted, gdrive automatically deletes the videos associated STRM file and cleans/updates the local library.

All great ideas.

Added for tracking:

https://github.com/ddurdle/GDrive-for-KODI/issues/147
https://github.com/ddurdle/GDrive-for-KODI/issues/148
https://github.com/ddurdle/GDrive-for-KODI/issues/149
https://github.com/ddurdle/GDrive-for-KODI/issues/150
https://github.com/ddurdle/GDrive-for-KODI/issues/151
Reply
(2017-08-08, 13:52)SEIKT Wrote: I have duplicates of the same settings.xml on multiple devices and haven't incurred an issue.

Thanks for your reply, indeed it works ... it was a DNS issue, not kodi or gdrive.

Everything is working perfect now Smile

Now, I guess I need to enable write support, because episodes are not being marked as watched.
Reply
(2017-08-09, 01:02)masimito Wrote:
(2017-08-08, 13:52)SEIKT Wrote: I have duplicates of the same settings.xml on multiple devices and haven't incurred an issue.

Thanks for your reply, indeed it works ... it was a DNS issue, not kodi or gdrive.

Everything is working perfect now Smile

Now, I guess I need to enable write support, because episodes are not being marked as watched.

viewing from within the plugin or STRM?
Reply
(2017-08-09, 01:18)dmdsoftware Wrote:
(2017-08-09, 01:02)masimito Wrote:
(2017-08-08, 13:52)SEIKT Wrote: I have duplicates of the same settings.xml on multiple devices and haven't incurred an issue.

Thanks for your reply, indeed it works ... it was a DNS issue, not kodi or gdrive.

Everything is working perfect now Smile

Now, I guess I need to enable write support, because episodes are not being marked as watched.

viewing from within the plugin or STRM?

From STRM ... while debugging I thought I needed to access the account from the plugin first ... but there is no need for that. Smile

I am happy now.
Reply
(2017-08-09, 05:38)masimito Wrote:
(2017-08-09, 01:18)dmdsoftware Wrote:
(2017-08-09, 01:02)masimito Wrote: Thanks for your reply, indeed it works ... it was a DNS issue, not kodi or gdrive.

Everything is working perfect now Smile

Now, I guess I need to enable write support, because episodes are not being marked as watched.

viewing from within the plugin or STRM?

From STRM ... while debugging I thought I needed to access the account from the plugin first ... but there is no need for that. Smile

I am happy now.

You don't need to enable write support for STRM watch status. You need to enable the tv and movie toggles in Settings->Experimental. The STRM files need to be scraped into KODI library.

Best results are when accessing TV or Movies from main menu. You can also view STRM from Files, the status still gets updated when watched from here, but the icons or status in this view don't reflect accurately.
Reply
(2017-08-08, 18:58)dmdsoftware Wrote:
(2017-08-08, 15:46)SEIKT Wrote: Going to lay down some enhancement ideas which may be out of scope/not possible.

Enhancements to improve newbies ease of use:

1. Rename STRMs to a Kodi friendly format:

Example 1 - if the movie file is named Ghost in the Shell 2017 BluRay CEE 1080p AVC Atmos TrueHD 7 1
gdrive creates a STRM named Ghost in the Shell (2017).strm inside a folder dedicated to movie STRMs.

Example 2 - a TV episode file named Fear Factor S05E18 WEB x264
gdrive creates a directory named Fear Factor (if non-existent) inside a folder dedicated to TV STRMs. gdrive also creates a sub-directory named Season 05 (if non-existent). Within the Season 05 folder a STRM is created named S05E18.strm

2. Gdrive monitors a movie folder and TV folder within Google Drive, scouting for changes. When a new movie/TV show is uploaded, gdrive automatically creates a STRM file and also updates the local Kodi library. Perhaps gdrive even fetches subtitles for that particular video too.

3. Sync STRMs to cloud - Option to encrypt them for those who have gone down the encryption route.

General enhancements:

1. Now that it's possible to locally resume and mark videos as watched using STRMs, this may be a possibility too - Display movie/TV episode information and its poster art within the Kodi player when playing a STRM file.

2. Ability to delete videos within the browser and when deleted, gdrive automatically deletes the videos associated STRM file and cleans/updates the local library.

All great ideas.

Added for tracking:

https://github.com/ddurdle/GDrive-for-KODI/issues/147
https://github.com/ddurdle/GDrive-for-KODI/issues/148
https://github.com/ddurdle/GDrive-for-KODI/issues/149
https://github.com/ddurdle/GDrive-for-KODI/issues/150
https://github.com/ddurdle/GDrive-for-KODI/issues/151

Cool as. Just realised plugins can add their own button to the Kodi context menu so I'll extend on the delete idea.

A user stumbles across duplicate movies when browsing the Kodi library, they want to know the name of each file listed on Google Drive and delete one of the two. The user then opens the Kodi context menu and navigates to a button called 'delete' and clicks on it. A new window appears which highlights the name of the file in Google Drive (in case the user accidentally double clicks). Below the filename lists confirmation options to delete or not delete the movie; 'yes' and 'no'. Clicking down on the remote will highlight 'no'. Clicking down followed by a left/right button click will highlight 'yes', to avoid user error. Another confirmation window could be added if the user were to press yes, but that just prolongs the process.

gdrive first deletes the the file from google drive and if this is successful, deletes the local STRM. If not successful, for a reason such as no internet access being available at the time of operation, gdrive returns an error and terminates the task, leaving the STRM untouched.

If a sync STRM feature is provided. Other devices will be monitoring a STRM folder in Google Drive for additions/deletions. So when the STRM file has been deleted from the users local STRM folder, gdrive also erases the STRM file that resides in the Google Drive STRM folder. - This process can be simplified if a STRM folder/media folder on Google Drive can be added as a source within Kodi. However, library scanning of cloud stored STRMs/media may be vastly slower compared to locally stored STRMs.
- Other devices detect this change and erase their local STRM.
Reply
Playing streamURLs is causing errors in the most current version on an android TV box.

Sample url:
plugin://plugin.video.gdrive?mode=streamURL&url=https://docs.google.com/file/d/0BzkKcwwUddEiclNvY2NhVjRHeDA/preview

(started from a m3u or strm file)

In the user select menu thats popping up in addition to the "normal" user there are also *public and public users selectable, but regardless of which one you chose, the plugin just crashes.

The log at this point spits out the following:
Code:
12:05:03.752 T:18446744072303836536   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'fmtlist' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.ftmc/files/.ftmc/addons/plugin.video.gdrive/default.py", line 1078, in <module>
                                                mediaURLs = service.getPublicStream(url)
                                              File "/storage/emulated/0/Android/data/org.xbmc.ftmc/files/.ftmc/addons/plugin.video.gdrive/resources/lib/gdrive_api2.py", line 1734, in getPublicStream
                                                fmtlist, re.DOTALL):
                                            UnboundLocalError: local variable 'fmtlist' referenced before assignment
                                            -->End of Python script error report<--
12:05:03.863 T:18446744072290022472   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.gdrive/?mode=streamURL&url=https://docs.google.com/file/d/0BzkKcwwUddEiclNvY2NhVjRHeDA/preview]

Is this known behavior? Videos from the main account play without any issues.
Reply
(2017-08-11, 12:54)harlekin Wrote: Playing streamURLs is causing errors in the most current version on an android TV box.

Sample url:
plugin://plugin.video.gdrive?mode=streamURL&url=https://docs.google.com/file/d/0BzkKcwwUddEiclNvY2NhVjRHeDA/preview

(started from a m3u or strm file)

In the user select menu thats popping up in addition to the "normal" user there are also *public and public users selectable, but regardless of which one you chose, the plugin just crashes.

The log at this point spits out the following:
Code:
12:05:03.752 T:18446744072303836536   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'fmtlist' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.ftmc/files/.ftmc/addons/plugin.video.gdrive/default.py", line 1078, in <module>
                                                mediaURLs = service.getPublicStream(url)
                                              File "/storage/emulated/0/Android/data/org.xbmc.ftmc/files/.ftmc/addons/plugin.video.gdrive/resources/lib/gdrive_api2.py", line 1734, in getPublicStream
                                                fmtlist, re.DOTALL):
                                            UnboundLocalError: local variable 'fmtlist' referenced before assignment
                                            -->End of Python script error report<--
12:05:03.863 T:18446744072290022472   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.gdrive/?mode=streamURL&url=https://docs.google.com/file/d/0BzkKcwwUddEiclNvY2NhVjRHeDA/preview]

Is this known behavior? Videos from the main account play without any issues.

Thank you for reporting the issue. Investigating and tracking here -> https://github.com/ddurdle/GDrive-for-KODI/issues/152
Reply
Thank you very much.
Reply
Hey lads,

I have faced accuracy issues with Kodi's movie library scrapers. Some STRMs would be scanned in as random movies, whilst others wouldn't be recognised at all. I think I have solved this dilemma and I'll share the solution in this post. I have scanned around 500 STRMs and all were assigned the correct metadata using this method.

For this to work:

- Your movie/strm format must mirror: The One (2001) [tt0267804].strm
# tt0267804 = the movies IMDB ID

- You must use the Universal Movie Scraper, install it from the Kodi repo.

- You must add the following code to your advancedsettings.xml file - http://kodi.wiki/view/Advancedsettings.xml

Code:
<advancedsettings>
<video>
<cleandatetime>\[(tt[0-9]+)\]</cleandatetime>
<cleanstrings></cleanstrings>
</video>
</advancedsettings>

For anyone wanting to rename their STRM files to include the IMDB ID, I have made this python script to facilitate this process. You will need to install this python wrapper for the script to function: https://pypi.python.org/pypi/tmdb3

Script:

Code:
import os
import sys
from tmdb3 import searchMovieWithYear
from tmdb3 import set_key

set_key("Your TMDb API Key Goes Here")

strmFolder = "/path/to/strm/folder"

root, dirs, files = os.walk(strmFolder).next()

for file in files:
  movieName = os.path.splitext(file)[0]
  searchResult = searchMovieWithYear(movieName)
  tmdbMatch = searchResult[0]
  fullPath = os.path.join(strmFolder, file)
  name, ext = os.path.splitext(fullPath)
  os.rename(fullPath, name + ' [' + tmdbMatch.imdb + ']' + ext)
Reply
Question 
Friends, I'm going through problems to watch some Google Drive videos on my cell phone (Galaxy S4), there have been some freezes and etc, I think it's due to the original audio being in FLAC. When I choose the original stream it freezes, but when I choose a stream with AAC audio everything is perfect, but without subtitles. The videos have built-in captioning (.ass subtitles are embedded in the container videos .mkv). Is there any way around this?

By the way, my congratulations on the great addon. Just wonderful!
Reply
Realised I needed to include code to handle sports files after the Mayweather fight. Code enhanced & uploaded to github.

https://github.com/SteveMalso/Encrypt-and-Upload-GDrive
Reply
gdrive transcode 720p and 1080p Not working
Only work 320p and original
I download and install the las version in GiTHUB
Reply
(2017-08-31, 18:42)maxifullmedia Wrote: gdrive transcode 720p and 1080p Not working
Only work 320p and original
I download and install the las version in GiTHUB

New install? was it working for you prior?

log?

I played a video yesterday at 720p ok.
Reply
  • 1
  • 93
  • 94
  • 95(current)
  • 96
  • 97
  • 122

Logout Mark Read Team Forum Stats Members Help
gdrive - Google Drive Video/Music Add-on12