• 1
  • 95
  • 96
  • 97(current)
  • 98
  • 99
  • 122
Release gdrive - Google Drive Video/Music Add-on
(2017-09-10, 01:15)dmdsoftware Wrote: Team Drives are new, but I intend on adding support very soon. I've been creating them in my accounts for purposes of testing them.

Hi,

i am glad to hear that the support for team drives is coming very soon. I will be around for testing purpose if you need someone.
Thanks for your work.
Reply
Hey dmd,

Suddenly I can't play videos, Kodi returns a "Playback failed" message when attempting to play a video either through STRM or directly through your plugin. Managed to play a few small AVI files but the rest of my library consists of MKV files and from the ones I tried to play, all refused. Extracted this output from the log. Any ideas of the cause?

All encrypted BTW.

Code:
06:52:08.077 T:4100562944   DEBUG: ------ Window Init (DialogBusy.xml) ------
06:52:08.779 T:3400528800   DEBUG: mediaURL = https://www.googleapis.com/drive/v2/files/**************
06:52:08.784 T:3383751584   DEBUG: Accept-Encoding: identity
                                            Content-Length: 84
                                            Host: localhost:8011
                                            Content-Type: application/x-www-form-urlencoded
                                            Connection: close
                                            User-Agent: Python-urllib/2.7
06:52:08.784 T:3383751584   DEBUG: drive_stream =
06:52:08.784 T:3383751584   DEBUG: url = https://www.googleapis.com/drive/v2/files/******************
06:52:08.784 T:3383751584   ERROR: 127.0.0.1 - - [12/Sep/2017 06:52:08] "POST /crypto_playurl HTTP/1.1" 200 -
06:52:08.798 T:3400528800  NOTICE: gdrive: Seek 0
06:52:08.811 T:3375362976   DEBUG: Thread scriptobs 3375362976 terminating
06:52:08.812 T:4100562944    INFO: easy_aquire - Created session to http://localhost
06:52:08.818 T:3375362976   DEBUG: Host: localhost:8011
                                            User-Agent: Kodi/17.4-RC1 (X11; Linux aarch64) LibreELEC/8.2 App_Bitness/32 Version/17.4-RC1-Git:0b4cdc9
                                            Accept: */*
                                            Accept-Charset: UTF-8,*;q=0.8
06:52:08.818 T:3375362976   DEBUG: HEAD https://www.googleapis.com/drive/v2/files/*****************
06:52:08.898 T:3400528800   ERROR: EXCEPTION: XBMC is not playing any media file
06:52:09.511 T:3375362976   DEBUG: ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.***************************
06:52:12.229 T:3375362976   DEBUG: STILL ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.************************
06:52:12.272 T:3383751584   DEBUG: Host: localhost:8011
                                            User-Agent: Kodi/17.4-RC1 (X11; Linux aarch64) LibreELEC/8.2 App_Bitness/32 Version/17.4-RC1-Git:0b4cdc9
                                            Accept: */*
                                            Accept-Charset: UTF-8,*;q=0.8
06:52:12.273 T:3383751584   DEBUG: GET https://www.googleapis.com/drive/v2/files/***********************
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.****************************
06:52:13.019 T:3383751584   DEBUG: ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.*****************************
06:52:13.899 T:3400528800   ERROR: EXCEPTION: XBMC is not playing any media file
06:52:15.449 T:3383751584   DEBUG: STILL ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.************************
Reply
(2017-09-11, 23:53)SEIKT Wrote: Hey dmd,

Suddenly I can't play videos, Kodi returns a "Playback failed" message when attempting to play a video either through STRM or directly through your plugin. Managed to play a few small AVI files but the rest of my library consists of MKV files and from the ones I tried to play, all refused. Extracted this output from the log. Any ideas of the cause?

All encrypted BTW.

Code:
06:52:08.077 T:4100562944   DEBUG: ------ Window Init (DialogBusy.xml) ------
06:52:08.779 T:3400528800   DEBUG: mediaURL = https://www.googleapis.com/drive/v2/files/**************
06:52:08.784 T:3383751584   DEBUG: Accept-Encoding: identity
                                            Content-Length: 84
                                            Host: localhost:8011
                                            Content-Type: application/x-www-form-urlencoded
                                            Connection: close
                                            User-Agent: Python-urllib/2.7
06:52:08.784 T:3383751584   DEBUG: drive_stream =
06:52:08.784 T:3383751584   DEBUG: url = https://www.googleapis.com/drive/v2/files/******************
06:52:08.784 T:3383751584   ERROR: 127.0.0.1 - - [12/Sep/2017 06:52:08] "POST /crypto_playurl HTTP/1.1" 200 -
06:52:08.798 T:3400528800  NOTICE: gdrive: Seek 0
06:52:08.811 T:3375362976   DEBUG: Thread scriptobs 3375362976 terminating
06:52:08.812 T:4100562944    INFO: easy_aquire - Created session to http://localhost
06:52:08.818 T:3375362976   DEBUG: Host: localhost:8011
                                            User-Agent: Kodi/17.4-RC1 (X11; Linux aarch64) LibreELEC/8.2 App_Bitness/32 Version/17.4-RC1-Git:0b4cdc9
                                            Accept: */*
                                            Accept-Charset: UTF-8,*;q=0.8
06:52:08.818 T:3375362976   DEBUG: HEAD https://www.googleapis.com/drive/v2/files/*****************
06:52:08.898 T:3400528800   ERROR: EXCEPTION: XBMC is not playing any media file
06:52:09.511 T:3375362976   DEBUG: ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.***************************
06:52:12.229 T:3375362976   DEBUG: STILL ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.************************
06:52:12.272 T:3383751584   DEBUG: Host: localhost:8011
                                            User-Agent: Kodi/17.4-RC1 (X11; Linux aarch64) LibreELEC/8.2 App_Bitness/32 Version/17.4-RC1-Git:0b4cdc9
                                            Accept: */*
                                            Accept-Charset: UTF-8,*;q=0.8
06:52:12.273 T:3383751584   DEBUG: GET https://www.googleapis.com/drive/v2/files/***********************
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.****************************
06:52:13.019 T:3383751584   DEBUG: ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.*****************************
06:52:13.899 T:3400528800   ERROR: EXCEPTION: XBMC is not playing any media file
06:52:15.449 T:3383751584   DEBUG: STILL ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.************************

I assume the naming of the files are being displayed correctly (ruling out bad salt / password). Are you able to download the file using the web site?
Reply
(2017-09-12, 00:19)dmdsoftware Wrote:
(2017-09-11, 23:53)SEIKT Wrote: Hey dmd,

Suddenly I can't play videos, Kodi returns a "Playback failed" message when attempting to play a video either through STRM or directly through your plugin. Managed to play a few small AVI files but the rest of my library consists of MKV files and from the ones I tried to play, all refused. Extracted this output from the log. Any ideas of the cause?

All encrypted BTW.

Code:
06:52:08.077 T:4100562944   DEBUG: ------ Window Init (DialogBusy.xml) ------
06:52:08.779 T:3400528800   DEBUG: mediaURL = https://www.googleapis.com/drive/v2/files/**************
06:52:08.784 T:3383751584   DEBUG: Accept-Encoding: identity
                                            Content-Length: 84
                                            Host: localhost:8011
                                            Content-Type: application/x-www-form-urlencoded
                                            Connection: close
                                            User-Agent: Python-urllib/2.7
06:52:08.784 T:3383751584   DEBUG: drive_stream =
06:52:08.784 T:3383751584   DEBUG: url = https://www.googleapis.com/drive/v2/files/******************
06:52:08.784 T:3383751584   ERROR: 127.0.0.1 - - [12/Sep/2017 06:52:08] "POST /crypto_playurl HTTP/1.1" 200 -
06:52:08.798 T:3400528800  NOTICE: gdrive: Seek 0
06:52:08.811 T:3375362976   DEBUG: Thread scriptobs 3375362976 terminating
06:52:08.812 T:4100562944    INFO: easy_aquire - Created session to http://localhost
06:52:08.818 T:3375362976   DEBUG: Host: localhost:8011
                                            User-Agent: Kodi/17.4-RC1 (X11; Linux aarch64) LibreELEC/8.2 App_Bitness/32 Version/17.4-RC1-Git:0b4cdc9
                                            Accept: */*
                                            Accept-Charset: UTF-8,*;q=0.8
06:52:08.818 T:3375362976   DEBUG: HEAD https://www.googleapis.com/drive/v2/files/*****************
06:52:08.898 T:3400528800   ERROR: EXCEPTION: XBMC is not playing any media file
06:52:09.511 T:3375362976   DEBUG: ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.***************************
06:52:12.229 T:3375362976   DEBUG: STILL ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.************************
06:52:12.272 T:3383751584   DEBUG: Host: localhost:8011
                                            User-Agent: Kodi/17.4-RC1 (X11; Linux aarch64) LibreELEC/8.2 App_Bitness/32 Version/17.4-RC1-Git:0b4cdc9
                                            Accept: */*
                                            Accept-Charset: UTF-8,*;q=0.8
06:52:12.273 T:3383751584   DEBUG: GET https://www.googleapis.com/drive/v2/files/***********************
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.****************************
06:52:13.019 T:3383751584   DEBUG: ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.*****************************
06:52:13.899 T:3400528800   ERROR: EXCEPTION: XBMC is not playing any media file
06:52:15.449 T:3383751584   DEBUG: STILL ERROR
                                            Cookie=DRIVE_STREAM%3D&Authorization=Bearer+ya29.************************

I assume the naming of the files are being displayed correctly (ruling out bad salt / password). Are you able to download the file using the web site?

Yeah, all displayed correctly. Videos that were playable a day ago are now not playable. I'm guessing the Google Drive API shit the bed?
Reply
Interesting. Tried downloading a video just now from Google Drive and it returned a download quota exceeded message. Odd considering I've only uploaded about 50GB to that drive account in the last 24 hours and have only played back two videos in the last 24 hours.
Reply
(2017-09-12, 07:57)SEIKT Wrote: Interesting. Tried downloading a video just now from Google Drive and it returned a download quota exceeded message. Odd considering I've only uploaded about 50GB to that drive account in the last 24 hours and have only played back two videos in the last 24 hours.

This is a google drive paid account?
Reply
(2017-09-12, 12:03)dmdsoftware Wrote:
(2017-09-12, 07:57)SEIKT Wrote: Interesting. Tried downloading a video just now from Google Drive and it returned a download quota exceeded message. Odd considering I've only uploaded about 50GB to that drive account in the last 24 hours and have only played back two videos in the last 24 hours.

This is a google drive paid account?

Nah, my uni account. All good though, ban has been lifted. Maybe rclone caused it.
Reply
can some1 please explain what is the crypto option for?
i understand that it doesnt decrypt rclone decrypted passwords.

so how can i upload encrypted videos that gdrive addon will be able to read on the fly?

thanks
Reply
(2017-09-11, 23:53)SEIKT Wrote: All encrypted BTW.

Can you explain how you used the plugin to mount your crypted data? How did you encrypt it?

(2017-09-16, 15:44)hasamba Wrote: can some1 please explain what is the crypto option for?
i understand that it doesnt decrypt rclone decrypted passwords.

so how can i upload encrypted videos that gdrive addon will be able to read on the fly?

thanks

+1

Would be very pleased if someone could explain how this works with this plugin.

Right now I have to use rclone mount to be able to play my files, although this works using only the plugin would be more convenient.

Thanks!
Reply
(2017-09-10, 12:59)klesk Wrote:
(2017-09-10, 01:15)dmdsoftware Wrote: Team Drives are new, but I intend on adding support very soon. I've been creating them in my accounts for purposes of testing them.

Hi,

i am glad to hear that the support for team drives is coming very soon. I will be around for testing purpose if you need someone.
Thanks for your work.

Team drives are now supported in gdrive-testing 0.8.53 when searching for files or viewing starred folders/files. In other words, if you want to playback navigate into a folder on a team drive, star it and it will appear in show all starred files and folders.

Listing the drives in the main root view is coming in next release.
Reply
(2017-09-17, 20:47)neik Wrote:
(2017-09-11, 23:53)SEIKT Wrote: All encrypted BTW.

Can you explain how you used the plugin to mount your crypted data? How did you encrypt it?

By using dmds encryption example titled 'encryptFolder.py' located in the root of the gdrive plugin folder. I adopted/slightly modified it to use in my automated upload to Google Drive scripts. You may view them here: https://github.com/SteveMalso/Encrypt-and-Upload-GDrive
Reply
(2017-09-23, 05:08)dmdsoftware Wrote: Team drives are now supported in gdrive-testing 0.8.53 when searching for files or viewing starred folders/files. In other words, if you want to playback navigate into a folder on a team drive, star it and it will appear in show all starred files and folders.
t
Listing the drives in the main root view is coming in next release.

Hi, nice to read this, by that time i was able to test this version a little bit. Unfortunately i had some problems make it work.
I am not 100% sure that the failure isn't on my behalf but i will post the Logs and you will see.
First things first, i use LibreELEC 8.1.1 on a RaspberryPi I .

1. I can't enrol an account with the testing version, right after the start i get an error, though it works as expected with 0.8.52.
I decided to copy settings.xml from 0.8.52 stable to 0.8.53 testing. This seems to work and i can access my google drive.
Here is the log before copying the settings.xml.

Code:
14:22:00.469 T:1608512416   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.NameError'>
                                            Error Contents: global name 'kodi_common' is not defined
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 321, in <module>
                                                service = cloudservice2(PLUGIN_URL,addon,instanceName, user_agent, settings)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gdrive_api2.py", line 130, in __init__
                                                self.getToken(self.getInstanceSetting('code'))
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gdrive_api2.py", line 220, in getToken
                                                kodi_common.dialogOK(kodi_common.language(30000), kodi_common.language(30140), kodi_common.language(30141))
                                            NameError: global name 'kodi_common' is not defined
                                            -->End of Python script error report<--
14:22:00.623 T:1945055232   ERROR: GetDirectory - Error getting plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll
14:22:00.627 T:1945055232   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll) failed
14:23:01.229 T:1633678240  NOTICE: ES: Client  from ::ffff:192.168.178.29 timed out
14:23:24.875 T:1526428576   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 'passcode' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 132, in <module>
                                                kodi_common.accountActions(addon, addon_parameters.PLUGIN_NAME, mode, instanceName, numberOfAccounts)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/kodi_common.py", line 382, in accountActions
                                                addon.setSetting(instanceName + '_passcode', str(passcode))
                                            UnboundLocalError: local variable 'passcode' referenced before assignment
                                            -->End of Python script error report<--
14:23:25.031 T:1945055232   ERROR: GetDirectory - Error getting plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll
14:23:25.035 T:1945055232   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll) failed
14:24:25.201 T:1633678240  NOTICE: ES: Client  from ::ffff:192.168.178.29 timed out

2. It works like you stated, marked files/folders are visible via [SEARCH] and [show all Starred Files & Folders], but i can't playback them.

Code:
14:27:04.806 T:1945055232   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
14:27:12.966 T:1526428576 WARNING: CPythonInvoker(9, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:21.287 T:1526428576 WARNING: CPythonInvoker(10, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:26.417 T:1526428576 WARNING: CPythonInvoker(11, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:33.218 T:1526428576   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: unknown url type: ?sq=folderid=0B-LCsCcewNoySnFVdGd3RFJtcTA%20or%20fileid=0B-LCsCcewNoyTEdHb2VjSXE0djQ
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 1631, in <module>
                                                media = service.gSpreadsheet.updateMediaPackage(service.worksheetID, package)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gSpreadsheets.py", line 949, in updateMediaPackage
                                                response = urllib2.urlopen(req)
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                              File "/usr/lib/python2.7/urllib2.py", line 421, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
                                            ValueError: unknown url type: ?sq=folderid=0B-LCsCcewNoySnFVdGd3RFJtcTA%20or%20fileid=0B-LCsCcewNoyTEdHb2VjSXE0djQ
                                            -->End of Python script error report<--
14:27:33.363 T:1526428576 WARNING: CPythonInvoker(12, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:33.382 T:1945055232   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.gdrive-testing/?mode=video&instance=gdrive1&folder=0B-LCsCcewNoySnFVdGd3RFJtcTA&filename=0B-LCsCcewNoyTEdHb2VjSXE0djQ&title=nice-movie-1080p.mkv&content_type=video]
14:28:29.210 T:1633678240  NOTICE: ES: Client  from ::ffff:192.168.178.29 timed out

3. Ok, maybe this is not a real problem and it only occurred in 1 case.
Most of the file/folder names are displayed correctly. However in 1 case, at least i discovered till now, the filename "rsg-peaky-blinders-s02e01-1080p.mkv" is changed in the addon to "01 1080.mkv".


I hope this post can help you a little bit with your work.
Reply
(2017-09-23, 15:08)klesk Wrote:
(2017-09-23, 05:08)dmdsoftware Wrote: Team drives are now supported in gdrive-testing 0.8.53 when searching for files or viewing starred folders/files. In other words, if you want to playback navigate into a folder on a team drive, star it and it will appear in show all starred files and folders.
t
Listing the drives in the main root view is coming in next release.

Hi, nice to read this, by that time i was able to test this version a little bit. Unfortunately i had some problems make it work.
I am not 100% sure that the failure isn't on my behalf but i will post the Logs and you will see.
First things first, i use LibreELEC 8.1.1 on a RaspberryPi I .

1. I can't enrol an account with the testing version, right after the start i get an error, though it works as expected with 0.8.52.
I decided to copy settings.xml from 0.8.52 stable to 0.8.53 testing. This seems to work and i can access my google drive.
Here is the log before copying the settings.xml.

Code:
14:22:00.469 T:1608512416   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.NameError'>
                                            Error Contents: global name 'kodi_common' is not defined
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 321, in <module>
                                                service = cloudservice2(PLUGIN_URL,addon,instanceName, user_agent, settings)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gdrive_api2.py", line 130, in __init__
                                                self.getToken(self.getInstanceSetting('code'))
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gdrive_api2.py", line 220, in getToken
                                                kodi_common.dialogOK(kodi_common.language(30000), kodi_common.language(30140), kodi_common.language(30141))
                                            NameError: global name 'kodi_common' is not defined
                                            -->End of Python script error report<--
14:22:00.623 T:1945055232   ERROR: GetDirectory - Error getting plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll
14:22:00.627 T:1945055232   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll) failed
14:23:01.229 T:1633678240  NOTICE: ES: Client  from ::ffff:192.168.178.29 timed out
14:23:24.875 T:1526428576   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 'passcode' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 132, in <module>
                                                kodi_common.accountActions(addon, addon_parameters.PLUGIN_NAME, mode, instanceName, numberOfAccounts)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/kodi_common.py", line 382, in accountActions
                                                addon.setSetting(instanceName + '_passcode', str(passcode))
                                            UnboundLocalError: local variable 'passcode' referenced before assignment
                                            -->End of Python script error report<--
14:23:25.031 T:1945055232   ERROR: GetDirectory - Error getting plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll
14:23:25.035 T:1945055232   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.gdrive-testing/?content_type=video&mode=enroll) failed
14:24:25.201 T:1633678240  NOTICE: ES: Client  from ::ffff:192.168.178.29 timed out

2. It works like you stated, marked files/folders are visible via [SEARCH] and [show all Starred Files & Folders], but i can't playback them.

Code:
14:27:04.806 T:1945055232   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
14:27:12.966 T:1526428576 WARNING: CPythonInvoker(9, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:21.287 T:1526428576 WARNING: CPythonInvoker(10, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:26.417 T:1526428576 WARNING: CPythonInvoker(11, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:33.218 T:1526428576   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: unknown url type: ?sq=folderid=0B-LCsCcewNoySnFVdGd3RFJtcTA%20or%20fileid=0B-LCsCcewNoyTEdHb2VjSXE0djQ
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 1631, in <module>
                                                media = service.gSpreadsheet.updateMediaPackage(service.worksheetID, package)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gSpreadsheets.py", line 949, in updateMediaPackage
                                                response = urllib2.urlopen(req)
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                              File "/usr/lib/python2.7/urllib2.py", line 421, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
                                            ValueError: unknown url type: ?sq=folderid=0B-LCsCcewNoySnFVdGd3RFJtcTA%20or%20fileid=0B-LCsCcewNoyTEdHb2VjSXE0djQ
                                            -->End of Python script error report<--
14:27:33.363 T:1526428576 WARNING: CPythonInvoker(12, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
14:27:33.382 T:1945055232   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.gdrive-testing/?mode=video&instance=gdrive1&folder=0B-LCsCcewNoySnFVdGd3RFJtcTA&filename=0B-LCsCcewNoyTEdHb2VjSXE0djQ&title=nice-movie-1080p.mkv&content_type=video]
14:28:29.210 T:1633678240  NOTICE: ES: Client  from ::ffff:192.168.178.29 timed out

3. Ok, maybe this is not a real problem and it only occurred in 1 case.
Most of the file/folder names are displayed correctly. However in 1 case, at least i discovered till now, the filename "rsg-peaky-blinders-s02e01-1080p.mkv" is changed in the addon to "01 1080.mkv".


I hope this post can help you a little bit with your work.

That one item is being detected as a TV show due to the s##e##, so I populated TV show data for that. The default behaviour of KODI is to then reference the show with episode number because it assumes you are in a directory of season 2 of that show. Maybe there is someway I can override this behaviour to populate the TV fields without changing the displaying of filenames.

It is looking like I broke something with enroll when I added team drive support, will fix.

There were some cases I saw that playback won't work with team drive files. That should be now fixed in 0.8.54 that is being pushed out momentarily.

I guess the listing of team drives will have to wait until 0.8.55 or 0.8.56 (code is written but I don't have time right now to test). Hopefully by end-of-day Sunday.
Reply
(2017-09-23, 17:38)dmdsoftware Wrote: That one item is being detected as a TV show due to the s##e##, so I populated TV show data for that. The default behaviour of KODI is to then reference the show with episode number because it assumes you are in a directory of season 2 of that show. Maybe there is someway I can override this behaviour to populate the TV fields without changing the displaying of filenames.

It is looking like I broke something with enroll when I added team drive support, will fix.

There were some cases I saw that playback won't work with team drive files. That should be now fixed in 0.8.54 that is being pushed out momentarily.

I guess the listing of team drives will have to wait until 0.8.55 or 0.8.56 (code is written but I don't have time right now to test). Hopefully by end-of-day Sunday.

Hi,

i appreciate your work.
I was able to test 0.8.54 but still can't playback.

Code:
17:57:58.039 T:1577673632   DEBUG: -->Python Interpreter Initialized<--
17:57:58.040 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the source file to load is "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py"
17:57:58.040 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): setting the Python path to /storage/.kodi/addons/plugin.video.gdrive-testing:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
17:57:58.040 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): entering source directory /storage/.kodi/addons/plugin.video.gdrive-testing
17:57:58.041 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): instantiating addon using automatically obtained id of "plugin.video.gdrive-testing" dependent on version 2.1.0 of the xbmc.python api
17:57:58.096 T:1944240128   DEBUG: ------ Window Init (DialogBusy.xml) ------
17:57:58.586 T:1569285024   DEBUG: Thread FileCache start, auto delete: false
17:57:58.592 T:1569285024    INFO: CFileCache::Process - Source read didn't return any data! Hit eof(?)
17:57:58.642 T:1586062240    INFO: easy_aquire - Created session to https://lh3.googleusercontent.com
17:57:59.165 T:1586062240   DEBUG: CCurlFile::GetMimeType - https://lh3.googleusercontent.com/lVDuLLRJ__YR5ngd8d30y0qV0ifcgmTloLl-r_eav7_WPuakE2AyXpl7ya4hcQUmouw3MA=s220 -> image/jpeg
17:57:59.167 T:1747973024   DEBUG: CWebServer[8080]: request received for /jsonrpc
17:57:59.213 T:1569285024   DEBUG: Previous line repeats 1 times.
17:57:59.213 T:1569285024   DEBUG: Thread FileCache 1569285024 terminating
17:57:59.213 T:1586062240   DEBUG: Caching image 'https://lh3.googleusercontent.com/lVDuLLRJ__YR5ngd8d30y0qV0ifcgmTloLl-r_eav7_WPuakE2AyXpl7ya4hcQUmouw3MA=s220' to '9/904c6d19.jpg':
17:57:59.214 T:1586062240   DEBUG: cached image 'special://masterprofile/Thumbnails/9/904c6d19.jpg' size 220x165
17:57:59.217 T:1586062240   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_encode input port 340 output port 341 m_handle 0x2a102f8
17:57:59.220 T:1586062240   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_encode) - port(340), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(157696), nBufferAlignmen(16)
17:57:59.222 T:1586062240   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.image_encode) - port(341), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(81920) nBufferAlignmen(16)
17:57:59.231 T:1586062240   DEBUG: COMXImageEnc::CreateThumbnailFromSurface : special://masterprofile/Thumbnails/9/904c6d19.jpg width 220 height 165
17:57:59.235 T:1586062240   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_encode handle 0x2a102f8
17:58:00.710 T:1747973024   DEBUG: CWebServer[8080]: request received for /jsonrpc
17:58:01.534 T:1577673632   DEBUG: Previous line repeats 1 times.
17:58:01.535 T:1577673632   DEBUG: OgFIYJjQvaI
17:58:02.260 T:1747973024   DEBUG: CWebServer[8080]: request received for /jsonrpc
17:58:02.748 T:1577673632   DEBUG: Previous line repeats 1 times.
17:58:02.748 T:1577673632   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: unknown url type: ?sq=folderid=0B-LCsCcewNoyYnNuRjh0YzU5eWM%20or%20fileid=0B-LCsCcewNoydGRBNTdfenIxMVk
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 1632, in <module>
                                                media = service.gSpreadsheet.updateMediaPackage(service.worksheetID, package)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gSpreadsheets.py", line 949, in updateMediaPackage
                                                response = urllib2.urlopen(req)
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                              File "/usr/lib/python2.7/urllib2.py", line 421, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
                                            ValueError: unknown url type: ?sq=folderid=0B-LCsCcewNoyYnNuRjh0YzU5eWM%20or%20fileid=0B-LCsCcewNoydGRBNTdfenIxMVk
                                            -->End of Python script error report<--
17:58:02.779 T:1944240128   DEBUG: ------ Window Init (DialogNotification.xml) ------
17:58:02.901 T:1577673632 WARNING: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
17:58:02.901 T:1577673632    INFO: Python script stopped
17:58:02.902 T:1577673632   DEBUG: Thread LanguageInvoker 1577673632 terminating
17:58:02.912 T:1594450848   DEBUG: Thread scriptobs 1594450848 terminating
17:58:02.913 T:1944240128   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.gdrive-testing/?mode=video&instance=gdrive1&folder=0B-LCsCcewNoyYnNuRjh0YzU5eWM&filename=0B-LCsCcewNoydGRBNTdfenIxMVk&title=rsg-peaky-blinders-s02e01-1080p.mkv&content_type=video]
17:58:02.913 T:1944240128   DEBUG: Playlist Player: no more playable items... aborting playback
17:58:02.914 T:1594450848   DEBUG: Thread BackgroundLoader start, auto delete: false
17:58:03.042 T:1594450848   DEBUG: Thread BackgroundLoader 1594450848 terminating
17:58:03.069 T:1944240128   DEBUG: ------ Window Deinit (DialogBusy.xml) ------

If you need i can send you the whole log in case something is missing.
Reply
(2017-09-23, 18:05)klesk Wrote:
(2017-09-23, 17:38)dmdsoftware Wrote: That one item is being detected as a TV show due to the s##e##, so I populated TV show data for that. The default behaviour of KODI is to then reference the show with episode number because it assumes you are in a directory of season 2 of that show. Maybe there is someway I can override this behaviour to populate the TV fields without changing the displaying of filenames.

It is looking like I broke something with enroll when I added team drive support, will fix.

There were some cases I saw that playback won't work with team drive files. That should be now fixed in 0.8.54 that is being pushed out momentarily.

I guess the listing of team drives will have to wait until 0.8.55 or 0.8.56 (code is written but I don't have time right now to test). Hopefully by end-of-day Sunday.

Hi,

i appreciate your work.
I was able to test 0.8.54 but still can't playback.

Code:
17:57:58.039 T:1577673632   DEBUG: -->Python Interpreter Initialized<--
17:57:58.040 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the source file to load is "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py"
17:57:58.040 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): setting the Python path to /storage/.kodi/addons/plugin.video.gdrive-testing:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
17:57:58.040 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): entering source directory /storage/.kodi/addons/plugin.video.gdrive-testing
17:57:58.041 T:1577673632   DEBUG: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): instantiating addon using automatically obtained id of "plugin.video.gdrive-testing" dependent on version 2.1.0 of the xbmc.python api
17:57:58.096 T:1944240128   DEBUG: ------ Window Init (DialogBusy.xml) ------
17:57:58.586 T:1569285024   DEBUG: Thread FileCache start, auto delete: false
17:57:58.592 T:1569285024    INFO: CFileCache::Process - Source read didn't return any data! Hit eof(?)
17:57:58.642 T:1586062240    INFO: easy_aquire - Created session to https://lh3.googleusercontent.com
17:57:59.165 T:1586062240   DEBUG: CCurlFile::GetMimeType - https://lh3.googleusercontent.com/lVDuLLRJ__YR5ngd8d30y0qV0ifcgmTloLl-r_eav7_WPuakE2AyXpl7ya4hcQUmouw3MA=s220 -> image/jpeg
17:57:59.167 T:1747973024   DEBUG: CWebServer[8080]: request received for /jsonrpc
17:57:59.213 T:1569285024   DEBUG: Previous line repeats 1 times.
17:57:59.213 T:1569285024   DEBUG: Thread FileCache 1569285024 terminating
17:57:59.213 T:1586062240   DEBUG: Caching image 'https://lh3.googleusercontent.com/lVDuLLRJ__YR5ngd8d30y0qV0ifcgmTloLl-r_eav7_WPuakE2AyXpl7ya4hcQUmouw3MA=s220' to '9/904c6d19.jpg':
17:57:59.214 T:1586062240   DEBUG: cached image 'special://masterprofile/Thumbnails/9/904c6d19.jpg' size 220x165
17:57:59.217 T:1586062240   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_encode input port 340 output port 341 m_handle 0x2a102f8
17:57:59.220 T:1586062240   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_encode) - port(340), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(157696), nBufferAlignmen(16)
17:57:59.222 T:1586062240   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.image_encode) - port(341), nBufferCountMin(1), nBufferCountActual(1), nBufferSize(81920) nBufferAlignmen(16)
17:57:59.231 T:1586062240   DEBUG: COMXImageEnc::CreateThumbnailFromSurface : special://masterprofile/Thumbnails/9/904c6d19.jpg width 220 height 165
17:57:59.235 T:1586062240   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_encode handle 0x2a102f8
17:58:00.710 T:1747973024   DEBUG: CWebServer[8080]: request received for /jsonrpc
17:58:01.534 T:1577673632   DEBUG: Previous line repeats 1 times.
17:58:01.535 T:1577673632   DEBUG: OgFIYJjQvaI
17:58:02.260 T:1747973024   DEBUG: CWebServer[8080]: request received for /jsonrpc
17:58:02.748 T:1577673632   DEBUG: Previous line repeats 1 times.
17:58:02.748 T:1577673632   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: unknown url type: ?sq=folderid=0B-LCsCcewNoyYnNuRjh0YzU5eWM%20or%20fileid=0B-LCsCcewNoydGRBNTdfenIxMVk
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py", line 1632, in <module>
                                                media = service.gSpreadsheet.updateMediaPackage(service.worksheetID, package)
                                              File "/storage/.kodi/addons/plugin.video.gdrive-testing/resources/lib/gSpreadsheets.py", line 949, in updateMediaPackage
                                                response = urllib2.urlopen(req)
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                              File "/usr/lib/python2.7/urllib2.py", line 421, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
                                            ValueError: unknown url type: ?sq=folderid=0B-LCsCcewNoyYnNuRjh0YzU5eWM%20or%20fileid=0B-LCsCcewNoydGRBNTdfenIxMVk
                                            -->End of Python script error report<--
17:58:02.779 T:1944240128   DEBUG: ------ Window Init (DialogNotification.xml) ------
17:58:02.901 T:1577673632 WARNING: CPythonInvoker(29, /storage/.kodi/addons/plugin.video.gdrive-testing/default.py): the python script "/storage/.kodi/addons/plugin.video.gdrive-testing/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
17:58:02.901 T:1577673632    INFO: Python script stopped
17:58:02.902 T:1577673632   DEBUG: Thread LanguageInvoker 1577673632 terminating
17:58:02.912 T:1594450848   DEBUG: Thread scriptobs 1594450848 terminating
17:58:02.913 T:1944240128   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.gdrive-testing/?mode=video&instance=gdrive1&folder=0B-LCsCcewNoyYnNuRjh0YzU5eWM&filename=0B-LCsCcewNoydGRBNTdfenIxMVk&title=rsg-peaky-blinders-s02e01-1080p.mkv&content_type=video]
17:58:02.913 T:1944240128   DEBUG: Playlist Player: no more playable items... aborting playback
17:58:02.914 T:1594450848   DEBUG: Thread BackgroundLoader start, auto delete: false
17:58:03.042 T:1594450848   DEBUG: Thread BackgroundLoader 1594450848 terminating
17:58:03.069 T:1944240128   DEBUG: ------ Window Deinit (DialogBusy.xml) ------

If you need i can send you the whole log in case something is missing.

Are you using google drive spreadsheet functionality to store watch/resume status?
Reply
  • 1
  • 95
  • 96
  • 97(current)
  • 98
  • 99
  • 122

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