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.
(2017-09-23, 21:46)dmdsoftware Wrote: [ -> ]Are you using google drive spreadsheet functionality to store watch/resume status?

Yes, you hit the mark.
As soon as i set the resume point and playback count to "local only" playback starts working.
If i set it back to "Google Drive Spreadsheet" it stops.
The preference was overtaken due the copy of the settings.xml and i totally forgot about it.
(2017-09-23, 22:58)klesk Wrote: [ -> ]
(2017-09-23, 21:46)dmdsoftware Wrote: [ -> ]Are you using google drive spreadsheet functionality to store watch/resume status?

Yes, you hit the mark.
As soon as i set the resume point and playback count to "local only" playback starts working.
If i set it back to "Google Drive Spreadsheet" it stops.
The preference was overtaken due the copy of the settings.xml and i totally forgot about it.

I'm still interested into finding out why that prevented playback, so I'll be trying to replicate your situation. Even if you carry over a settings.xml and there is a some kind of spreadsheet read/save issue, it is not supposed to prohibit playback. So I'll be checking into this.

0.8.55 has been pushed out and your team drives should appear in the root drive as [Team Drive - name]. All the features should not be fully supported (subtitles, etc, anything that works from non-Team Drive). I am debating adding ability to do starred files/folders and search options that would obviously only return results from the particular team drive.
(2017-09-24, 00:08)dmdsoftware Wrote: [ -> ]
(2017-09-23, 22:58)klesk Wrote: [ -> ]
(2017-09-23, 21:46)dmdsoftware Wrote: [ -> ]Are you using google drive spreadsheet functionality to store watch/resume status?
t

Yes, you hit the mark.
As soon as i set the resume point and playback count to "local only" playback starts working.
If i set it back to "Google Drive Spreadsheet" it stops.
The preference was overtaken due the copy of the settings.xml and i totally forgot about it.

I'm still interested into finding out why that prevented playback, so I'll be trying to replicate your situation. Even if you carry over a settings.xml and there is a some kind of spreadsheet read/save issue, it is not supposed to prohibit playback. So I'll be checking into this.

0.8.55 has been pushed out and your team drives should appear in the root drive as [Team Drive - name]. All the features should not be fully supported (subtitles, etc, anything that works from non-Team Drive). I am debating adding ability to do starred files/folders and search options that would obviously only return results from the particular team drive.

Took a look this morning at 0.8.55 and can confirm that it works.
Maybe, only as a suggestion, it could be a good idea to separate accounts as normal/teamdrives, similar to rclone, where i need 2 configured remotes to access both.
(2017-09-24, 12:21)klesk Wrote: [ -> ]
(2017-09-24, 00:08)dmdsoftware Wrote: [ -> ]
(2017-09-23, 22:58)klesk Wrote: [ -> ]t

Yes, you hit the mark.
As soon as i set the resume point and playback count to "local only" playback starts working.
If i set it back to "Google Drive Spreadsheet" it stops.
The preference was overtaken due the copy of the settings.xml and i totally forgot about it.

I'm still interested into finding out why that prevented playback, so I'll be trying to replicate your situation. Even if you carry over a settings.xml and there is a some kind of spreadsheet read/save issue, it is not supposed to prohibit playback. So I'll be checking into this.

0.8.55 has been pushed out and your team drives should appear in the root drive as [Team Drive - name]. All the features should not be fully supported (subtitles, etc, anything that works from non-Team Drive). I am debating adding ability to do starred files/folders and search options that would obviously only return results from the particular team drive.

Took a look this morning at 0.8.55 and can confirm that it works.
Maybe, only as a suggestion, it could be a good idea to separate accounts as normal/teamdrives, similar to rclone, where i need 2 configured remotes to access both.

You mean have enroll account for a teamdrive?
(2017-09-24, 14:37)dmdsoftware Wrote: [ -> ]
(2017-09-24, 12:21)klesk Wrote: [ -> ]
(2017-09-24, 00:08)dmdsoftware Wrote: [ -> ]I'm still interested into finding out why that prevented playback, so I'll be trying to replicate your situation. Even if you carry over a settings.xml and there is a some kind of spreadsheet read/save issue, it is not supposed to prohibit playback. So I'll be checking into this.

0.8.55 has been pushed out and your team drives should appear in the root drive as [Team Drive - name]. All the features should not be fully supported (subtitles, etc, anything that works from non-Team Drive). I am debating adding ability to do starred files/folders and search options that would obviously only return results from the particular team drive.

Took a look this morning at 0.8.55 and can confirm that it works.
Maybe, only as a suggestion, it could be a good idea to separate accounts as normal/teamdrives, similar to rclone, where i need 2 configured remotes to access both.

You mean have enroll account for a teamdrive?

Yes, that was my thought.
(2017-09-23, 10:46)SEIKT Wrote: [ -> ]
(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


can you pleaseeeeee make a small instructions guide how to encrypt and upload for noobs?

thanks
(2017-09-25, 16:59)hasamba Wrote: [ -> ]
(2017-09-23, 10:46)SEIKT Wrote: [ -> ]
(2017-09-17, 20:47)neik Wrote: [ -> ]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


can you pleaseeeeee make a small instructions guide how to encrypt and upload for noobs?

thanks

@SEIKT, thanks for answering.

I had a look at all files you mentioned but to be honest I didn't really get how to use it.

So, I'm with hasamba: A little How To would be awesome. Unfortunately, I couldn't find anything that explain how it works.
(2017-09-26, 14:37)neik Wrote: [ -> ]
(2017-09-25, 16:59)hasamba Wrote: [ -> ]
(2017-09-23, 10:46)SEIKT Wrote: [ -> ]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


can you pleaseeeeee make a small instructions guide how to encrypt and upload for noobs?

thanks

@SEIKT, thanks for answering.

I had a look at all files you mentioned but to be honest I didn't really get how to use it.

So, I'm with hasamba: A little How To would be awesome. Unfortunately, I couldn't find anything that explain how it works.

If all you want to do is file encryption, just use encrypt.py and encryption.py from that github link. Here's the command you need to enter into your terminal:

Code:
python encrypt.py saltfile thepassword sourcefolderpath filename destinationfolderpath

Example:

I have a movie located in: /home/bob/movie/cindy 2011
and the filename = cindy.mkv

I would enter this command in the terminal

Code:
python encrypt.py saltfile thepassword "/home/bob/movie/cindy 2011" cindy.mkv /home/bob/upload

Forgot to mention you would need to have pycrypto installed.
Hi,

after one week of testing i discovered something, which i think maybe, is not only related to teamdrives. I searched whether it was already posted on Github and here but couldn't find anything.
After round about 1 hour of watching a movie, when i jump backward, the movie played crashes (i forgot to verify if it behaves the same if i jump forward). I can immediately start the movie again and in most cases from the timestamp where it crashed. After restart i can jump forward/backward again. It is always around the 1 hour mark, even shortly before jumping is not a problem. I will try to provide a log file later.

Thanks.
Hi 
I think there is an issue Kodi cannot load subtitle through strm file when the movie's file name includes the symbol " ' " but it works fine through the gdrive Addon 
Thanks
@SEIKT, thanks a lot for the liitle how to! :-)
Gonna give it a try as soon as I have little bit of spare time and report back how it worked.
(2017-10-07, 17:48)klesk Wrote: [ -> ]Hi,

after one week of testing i discovered something, which i think maybe, is not only related to teamdrives. I searched whether it was already posted on Github and here but couldn't find anything.
After round about 1 hour of watching a movie, when i jump backward, the movie played crashes (i forgot to verify if it behaves the same if i jump forward).  I can immediately start the movie again and in most cases from the timestamp where it crashed. After restart i can jump forward/backward again. It is always around the 1 hour mark, even shortly before jumping is not a problem. I will try to provide a log file later.

Thanks.


Tested it a little bit in the meantime and discovered that the problem doesn't only appears after the mentioned time,  rather random. But for sure, it is not from the beginning of the movie. The more the movie proceeds the chances getting higher that it happens.

Code:
01:33:02.159 T:1469051808   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                            - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                           Error Type: <type 'exceptions.TypeError'>
                                           Error Contents: onPlayBackSeek() takes exactly 2 arguments (3 given)
                                           TypeError: onPlayBackSeek() takes exactly 2 arguments (3 given)
                                           -->End of Python script error report<--
01:33:02.928 T:1521009568   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 401
01:33:02.947 T:1571341216  NOTICE: CVideoPlayer::OnExit()
01:33:02.947 T:1571341216  NOTICE: VideoPlayer: eof, waiting for queues to empty
01:33:02.947 T:1571341216  NOTICE: Closing stream player 1
01:33:02.958 T:1443885984  NOTICE: thread end: OMXPlayerAudio::OnExit()
01:33:03.039 T:1571341216  NOTICE: Closing stream player 2
01:33:03.039 T:1479066528   ERROR: OMXPlayerVideo: Got MSGQ_IS_ERROR(-1) Aborting
01:33:03.039 T:1479066528  NOTICE: thread end: video_thread
01:33:03.089 T:1571341216  NOTICE: Closing stream player 3
01:33:03.161 T:1469051808  NOTICE: gdrive-testing: PLAYBACK ENDED
01:33:03.303 T:1944997888   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
01:33:03.563 T:1944997888  NOTICE: CVideoPlayer::CloseFile()
01:33:03.564 T:1944997888  NOTICE: VideoPlayer: waiting for threads to exit
01:33:03.564 T:1944997888  NOTICE: VideoPlayer: finished waiting
01:33:03.565 T:1944997888  NOTICE: CVideoPlayer::CloseFile()
01:33:03.565 T:1944997888  NOTICE: VideoPlayer: waiting for threads to exit
01:33:03.565 T:1944997888  NOTICE: VideoPlayer: finished waiting
01:33:04.913 T:1469051808  NOTICE: gdrive-testing: 1 Updated watch status local tv db id=1398 playcount=1
01:33:04.914 T:1469051808 WARNING: Attempt to use invalid handle 32
01:33:16.012 T:1479066528  NOTICE: gdrive-testing: Seek 0
(2017-10-07, 17:48)klesk Wrote: [ -> ]Hi,

after one week of testing i discovered something, which i think maybe, is not only related to teamdrives. I searched whether it was already posted on Github and here but couldn't find anything.
After round about 1 hour of watching a movie, when i jump backward, the movie played crashes (i forgot to verify if it behaves the same if i jump forward).  I can immediately start the movie again and in most cases from the timestamp where it crashed. After restart i can jump forward/backward again. It is always around the 1 hour mark, even shortly before jumping is not a problem. I will try to provide a log file later.

Thanks.

How did you create the STRM file?  Can you try recreating the STRM file by right-clicking on the item in the plugin, save to STRM.  There should be a folder id inside the STRM file.  If the srt file is in the same directory as the movie, regardless of name, it should load, unless you are using a STRM file that lacks the folder ID information.  Then it is search for file.
(2017-10-09, 07:31)kyosean Wrote: [ -> ]Hi 
I think there is an issue Kodi cannot load subtitle through strm file when the movie's file name includes the symbol " ' " but it works fine through the gdrive Addon 
Thanks

How did you create the STRM file?  Can you try recreating the STRM file by right-clicking on the item in the plugin, save to STRM.  There should be a folder id inside the STRM file.  If the srt file is in the same directory as the movie, regardless of name, it should load, unless you are using a STRM file that lacks the folder ID information.  Then it is search for file.
(2017-10-12, 14:03)klesk Wrote: [ -> ]
(2017-10-07, 17:48)klesk Wrote: [ -> ]Hi,

after one week of testing i discovered something, which i think maybe, is not only related to teamdrives. I searched whether it was already posted on Github and here but couldn't find anything.
After round about 1 hour of watching a movie, when i jump backward, the movie played crashes (i forgot to verify if it behaves the same if i jump forward).  I can immediately start the movie again and in most cases from the timestamp where it crashed. After restart i can jump forward/backward again. It is always around the 1 hour mark, even shortly before jumping is not a problem. I will try to provide a log file later.

Thanks.


Tested it a little bit in the meantime and discovered that the problem doesn't only appears after the mentioned time,  rather random. But for sure, it is not from the beginning of the movie. The more the movie proceeds the chances getting higher that it happens.

Code:
01:33:02.159 T:1469051808   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                            - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                           Error Type: <type 'exceptions.TypeError'>
                                           Error Contents: onPlayBackSeek() takes exactly 2 arguments (3 given)
                                           TypeError: onPlayBackSeek() takes exactly 2 arguments (3 given)
                                           -->End of Python script error report<--
01:33:02.928 T:1521009568   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 401
01:33:02.947 T:1571341216  NOTICE: CVideoPlayer::OnExit()
01:33:02.947 T:1571341216  NOTICE: VideoPlayer: eof, waiting for queues to empty
01:33:02.947 T:1571341216  NOTICE: Closing stream player 1
01:33:02.958 T:1443885984  NOTICE: thread end: OMXPlayerAudio::OnExit()
01:33:03.039 T:1571341216  NOTICE: Closing stream player 2
01:33:03.039 T:1479066528   ERROR: OMXPlayerVideo: Got MSGQ_IS_ERROR(-1) Aborting
01:33:03.039 T:1479066528  NOTICE: thread end: video_thread
01:33:03.089 T:1571341216  NOTICE: Closing stream player 3
01:33:03.161 T:1469051808  NOTICE: gdrive-testing: PLAYBACK ENDED
01:33:03.303 T:1944997888   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
01:33:03.563 T:1944997888  NOTICE: CVideoPlayer::CloseFile()
01:33:03.564 T:1944997888  NOTICE: VideoPlayer: waiting for threads to exit
01:33:03.564 T:1944997888  NOTICE: VideoPlayer: finished waiting
01:33:03.565 T:1944997888  NOTICE: CVideoPlayer::CloseFile()
01:33:03.565 T:1944997888  NOTICE: VideoPlayer: waiting for threads to exit
01:33:03.565 T:1944997888  NOTICE: VideoPlayer: finished waiting
01:33:04.913 T:1469051808  NOTICE: gdrive-testing: 1 Updated watch status local tv db id=1398 playcount=1
01:33:04.914 T:1469051808 WARNING: Attempt to use invalid handle 32
01:33:16.012 T:1479066528  NOTICE: gdrive-testing: Seek 0

Almost looks like a KODI bug because I don't call those two methods, and the code is calling the methods with the wrong number of parameters.  But why randomly?  I would need to reproduce it to capture exactly what is going on.

Generally the back and forth won't work well with Google streams once the buffer fills because they don't tend to like to handle seeks well. The intention of the streamer option is to bypass this.