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

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MattBlacK85 Offline
Junior Member
Posts: 3
Joined: Jul 2014
Reputation: 0
Post: #61
If i add a .strm file to my webserver and use streamURL. Then the file plays with the wrong audio track, can't select an other one.
Is it possible to use a stream without transcode from google. So that the file will be played with highest bitrate and sound?

In this case the file is public and the .strm is on my webserver so i can add this folder as a source in xbmc
find quote
dmdsoftware Offline
Member
Posts: 89
Joined: Sep 2013
Reputation: 3
Post: #62
(2014-07-20 23:58)MattBlacK85 Wrote:  If i add a .strm file to my webserver and use streamURL. Then the file plays with the wrong audio track, can't select an other one.
Is it possible to use a stream without transcode from google. So that the file will be played with highest bitrate and sound?

In this case the file is public and the .strm is on my webserver so i can add this folder as a source in xbmc

Select MemoryCache instead of Stream in the settings and it wont transcode.
find quote
MattBlacK85 Offline
Junior Member
Posts: 3
Joined: Jul 2014
Reputation: 0
Post: #63
(2014-07-21 00:13)dmdsoftware Wrote:  
(2014-07-20 23:58)MattBlacK85 Wrote:  If i add a .strm file to my webserver and use streamURL. Then the file plays with the wrong audio track, can't select an other one.
Is it possible to use a stream without transcode from google. So that the file will be played with highest bitrate and sound?

In this case the file is public and the .strm is on my webserver so i can add this folder as a source in xbmc

Select MemoryCache instead of Stream in the settings and it wont transcode.

Thank you for your reply. Tried the memorycache, this works if i use the addon. But not from the videolibrary (webserver) where the .strm files are stored.

And how would the .strm look like? It's now like this.

plugin://plugin.video.gdrive?title=movietitle(year)&mode=streamURL&url=https://drive.google.com/file/d/xxxxxxxxxx/edit?usp=sharing

Also i'm getting the name videoplayback instead of the title, but that is a known issue right?
(This post was last modified: 2014-07-22 00:33 by MattBlacK85.)
find quote
madcow84 Offline
Junior Member
Posts: 1
Joined: May 2014
Reputation: 0
Post: #64
This is a must have addons for XBMC. Thanks for creating this!

I noticed that I'm having some playback problem with only some files and gets the "script failed" error while other files plays flawlessly.

My setup is:
1. Installed stable version 2.7
2. playback is set at "diskcache" (is there any difference between memory/disk cache?)
3. Manually creating strm files to have movies be included in local library.
-strm file code: "plugin://plugin.video.gdrive/?mode=playvideo&title=Cloudy with a Chance of Meatballs 2 (2013).mp4"

I've attached a log file just incase you need to see the detail of it. LINK

Do you know why not all files are playing? Thanks for the help!
find quote
jbuk99 Offline
Junior Member
Posts: 1
Joined: Jul 2014
Reputation: 0
Post: #65
Is there a way to set a root folder (such as /Media) where it loads all the videos from?

Is it also possible to organise the videos by folders?
find quote
dmdsoftware Offline
Member
Posts: 89
Joined: Sep 2013
Reputation: 3
Post: #66
(2014-07-23 16:56)jbuk99 Wrote:  Is there a way to set a root folder (such as /Media) where it loads all the videos from?

Is it also possible to organise the videos by folders?

Which version are you using. Version 3+ in unstable uses folders. So if your videos are in folder structure in Google Drive, they show up in folder structure. Then there is also a "Show all videos" which is what version 2 does.
find quote
dmdsoftware Offline
Member
Posts: 89
Joined: Sep 2013
Reputation: 3
Post: #67
(2014-07-22 20:30)madcow84 Wrote:  This is a must have addons for XBMC. Thanks for creating this!

I noticed that I'm having some playback problem with only some files and gets the "script failed" error while other files plays flawlessly.

My setup is:
1. Installed stable version 2.7
2. playback is set at "diskcache" (is there any difference between memory/disk cache?)
3. Manually creating strm files to have movies be included in local library.
-strm file code: "plugin://plugin.video.gdrive/?mode=playvideo&title=Cloudy with a Chance of Meatballs 2 (2013).mp4"

I've attached a log file just incase you need to see the detail of it. LINK

Do you know why not all files are playing? Thanks for the help!

Thanks for posting the log. To confirm, the video title in Google Drive is "Cloudy with a Chance of Meatballs 2 (2013).mp4". When you do a search for it in Google Drive, does it return it as a search result? From your log, I can see the plugin performs a search for it but the results are empty. Can you try modifying the STRM to title=Cloudy with a Chance of Meatballs 2 You should not need to modify the name of the file in your Google Drive. It should match even with partial name searches.

I think the ()s are causing issues with search on Google Drive through the API (from what I recall before).

I will try to create a video file with the same name and validate on my end.

Regarding diskcache and memorycache, you are correct, they are identical on windows (which you are using). Some devices, like Raspberry Pi, have known, documented bugs where viewing non-streaming data (that is, accessing a direct download file) over HTTPS will cause the device to hang. So, on Raspberry Pi, the two behave differently.
find quote
dmdsoftware Offline
Member
Posts: 89
Joined: Sep 2013
Reputation: 3
Post: #68
(2014-07-22 00:31)MattBlacK85 Wrote:  
(2014-07-21 00:13)dmdsoftware Wrote:  
(2014-07-20 23:58)MattBlacK85 Wrote:  If i add a .strm file to my webserver and use streamURL. Then the file plays with the wrong audio track, can't select an other one.
Is it possible to use a stream without transcode from google. So that the file will be played with highest bitrate and sound?

In this case the file is public and the .strm is on my webserver so i can add this folder as a source in xbmc

Select MemoryCache instead of Stream in the settings and it wont transcode.

Thank you for your reply. Tried the memorycache, this works if i use the addon. But not from the videolibrary (webserver) where the .strm files are stored.

And how would the .strm look like? It's now like this.

plugin://plugin.video.gdrive?title=movietitle(year)&mode=streamURL&url=https://drive.google.com/file/d/xxxxxxxxxx/edit?usp=sharing

Also i'm getting the name videoplayback instead of the title, but that is a known issue right?

Sorry for the confusion in the readme. It can become confusing constructing your own STRM following the different options. I hope this becomes more clear once I add a "Generate STRM" function.

If you have a URL for a media file that you want to playback that is not in your Google Drive account (something you found online, something not linked or saved to your account persay), then the proper call is:
plugin://plugin.video.gdrive?mode=streamURL&url=https://docs.google.com/file/d/0B1k7UEAA7ikFcXZmWDhJTnFXZk0/preview

(that should work for you, it is a shared DTS file)

The "preview" vs "edit" doesn't matter. From testing, if I have a link with /edit instead of /preview, it should work the same. The ?usp=sharing shouldn't matter either (should work with it), but it is not something I have personally tested. A key though is to ensure it is docs. and not drive. If you are copying the links from somewhere and they have a drive.google.com, you can sub in docs.google.com. Perhaps I will consider doing this in the code myself, after I test it. If you pass in drive.google.com, it will look for an authentication token associated with drive.google.com, and the code is authenticating with docs.google.com instead (for accessing search API calls, etc).

If you have a file in your Google Drive account (whether it is shared or not), you can use the following:
plugin://plugin.video.gdrive?mode=streamVideo&title=title_of_video_in_google_drive

Where title_of_video_in_google_drive is the title of the media file in Google Drive.
(This post was last modified: 2014-07-23 19:02 by dmdsoftware.)
find quote
dmdsoftware Offline
Member
Posts: 89
Joined: Sep 2013
Reputation: 3
Post: #69
(2014-07-23 18:00)dmdsoftware Wrote:  
(2014-07-22 20:30)madcow84 Wrote:  This is a must have addons for XBMC. Thanks for creating this!

I noticed that I'm having some playback problem with only some files and gets the "script failed" error while other files plays flawlessly.

My setup is:
1. Installed stable version 2.7
2. playback is set at "diskcache" (is there any difference between memory/disk cache?)
3. Manually creating strm files to have movies be included in local library.
-strm file code: "plugin://plugin.video.gdrive/?mode=playvideo&title=Cloudy with a Chance of Meatballs 2 (2013).mp4"

I've attached a log file just incase you need to see the detail of it. LINK

Do you know why not all files are playing? Thanks for the help!

Thanks for posting the log. To confirm, the video title in Google Drive is "Cloudy with a Chance of Meatballs 2 (2013).mp4". When you do a search for it in Google Drive, does it return it as a search result? From your log, I can see the plugin performs a search for it but the results are empty. Can you try modifying the STRM to title=Cloudy with a Chance of Meatballs 2 You should not need to modify the name of the file in your Google Drive. It should match even with partial name searches.

I think the ()s are causing issues with search on Google Drive through the API (from what I recall before).

I will try to create a video file with the same name and validate on my end.

Regarding diskcache and memorycache, you are correct, they are identical on windows (which you are using). Some devices, like Raspberry Pi, have known, documented bugs where viewing non-streaming data (that is, accessing a direct download file) over HTTPS will cause the device to hang. So, on Raspberry Pi, the two behave differently.

Actually scratch what I said earlier. I just ran a test. () and [] are accepted. That's not the issue. I was able to run a sample file with both () and [] in 0.3.3 and 0.2.7 using these two STRMs:

plugin://plugin.video.gdrive?mode=playvideo&title=Seinfeld - S5Ep20(84) - The FireV2[TC].avi-0000
plugin://plugin.video.gdrive?mode=streamVideo&title=Seinfeld - S5Ep20(84) - The FireV2[TC].avi-0000

Using both disk and memory cache being set in Settings.
find quote
Post Reply