Release - Dropbox addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
josetaza Offline
Member
Posts: 50
Joined: Aug 2013
Reputation: 2
Location: The Netherlands, Eindhoven
Lightbulb  Dropbox addon
Post: #1
Website: http://sourceforge.net/projects/xbmc-dropbox/
Wiki: http://wiki.xbmc.org/index.php?title=Add-on:Dbmc

Description
XBMC addon for Dropbox. Features:
  • Browse your dropbox files and folders in the Pictures, Videos, Music and Programs menus
  • Pictures: View dropbox pictures (with slideshow of XBMC)
  • Videos: View dropbox videos
  • Music: Play dropbox music
  • Programs: Browse all files and folders
  • Dropbox files are cached to local disk/location for smooth performance
  • Delete, copy, move, upload and download files in/to Dropbox
  • Create folders in Dropbox
  • Search for files/folders in Dropbox
  • One way (dropbox to local) synchronization service (from version 0.6.1)

Notice when using the synchronizing service
This service is a one way synchronization only! From Dropbox to local. So:
No files will be added/uploaded to Dropbox, which are added locally
No Dropbox items will be removed or changed when removed or changed locally (on a new new sync they will be put back)
Important: If you are on a platform, for which the native Dropbox Application is available, use that! That is a much better working, more stable and more safe than this service. This service has been created for the platforms which are not supported by Dropbox (like Raspbmc).
Check the Dropbox site for their native Application.

First login
The addon uses the OAuth 2.0 process for accessing the dropbox data. It means that you only have to login to dropbox once to get the authorization code for this addon. The addon uses this code to access your dropbox account. The Web Viewer addon (http://wiki.xbmc.org/index.php?title=Add-on:Web_Viewer) is used for displaying and logging into the Dropbox website to authorize the addon. You should use this WebViewer. An external browser (like on your phone or PC) is not supported.
Procedure:
1. Open the Dropbox addon (in the Pictures/Music/Videos menu)
2. A popup will appear, saying that a Dropbox Authorization is required. Press 'OK'
3. A keyboard popup will appear, requesting your dropbox username. Type in your dropbox username (email)
4. Now the WebViewer is started and the Dropbox website is automatically loaded. The password field is highlighted and you should press <enter> (or select key).
5. The keyboard popup is shown again. Now enter your Dropbox password. Select 'OK' when done.
6. Use the down arrow to select the "Sign in" button and press <enter> again.
7. A new page will be loaded and the "Cancel" and "Allow" buttons will be visible. Select the "Allow" button and press <enter>.
8. A popup is shown. The authorization is finished and the WebViewer can be closed (select "yes").

The access code is automatically stored in your addon settings and now you should be able to use the addon.
(This post was last modified: 2014-02-16 14:20 by josetaza.)
find quote
Hedda Offline
Fan
Posts: 373
Joined: Feb 2013
Reputation: 7
Post: #2
Very nice work, thank you!

Do you think that this (or a fork of the code) could also be made into a service addon that always runs in the background or could be called upon on demand?

http://forum.xbmc.org/forumdisplay.php?fid=152
http://wiki.xbmc.org/index.php?title=Cat...ce_add-ons

Would be cool if other addons XBMC could use Dropbox to backup or synchronize data between when you have XBMC running on multiple devices.

Kind of like how several different iOS and Android apps are using API for Dropbox and similar online cloud storage services to share data between them.
find quote
Jmhthefirst Offline
Senior Member
Posts: 276
Joined: Jan 2013
Reputation: 0
Post: #3
I'm trying to log on using web viewer but it is only asking for password (not email). What am I missing?
find quote
Jmhthefirst Offline
Senior Member
Posts: 276
Joined: Jan 2013
Reputation: 0
Post: #4
Ah. Got it using Confluence. Nice and thanks!
find quote
josetaza Offline
Member
Posts: 50
Joined: Aug 2013
Reputation: 2
Location: The Netherlands, Eindhoven
Post: #5
(2013-09-06 13:56)Hedda Wrote:  Very nice work, thank you!

Do you think that this (or a fork of the code) could also be made into a service addon that always runs in the background or could be called upon on demand?

http://forum.xbmc.org/forumdisplay.php?fid=152
http://wiki.xbmc.org/index.php?title=Cat...ce_add-ons

Would be cool if other addons XBMC could use Dropbox to backup or synchronize data between when you have XBMC running on multiple devices.

Kind of like how several different iOS and Android apps are using API for Dropbox and similar online cloud storage services to share data between them.

Thanks for your feedback.
The synchronizing, which I would like to implement in a later release, would run in the background (always). So I guess it would be like a service addon. So it would keep a folder on the XBMC device in sync with the Dropbox folder. But, are you referring to specific XBMC data(files) you want to synchronize with Dropbox? What kind of data would that be? Can you name an example?
find quote
bry- Online
Donor
Posts: 1,201
Joined: Jan 2011
Reputation: 13
Post: #6
Would be cool to be able to sync xbmc settings/addons/data etc

[Image: gn.php?u=bry-&fs=10&l=180&t=...;q=_L+-+_T]
find quote
robweber Offline
Posting Freak
Posts: 920
Joined: Sep 2009
Reputation: 27
Post: #7
The XBMC Backup addon already runs as a service and can use Dropbox as a target. Not saying this addon isn't needed for other types of files you may want to sync but settings/addons/etc can already be backed up via this addon. You might want to check it out if you're looking for something to just backup your settings data. The setup is basically the same as outlined for this addon to get your dropbox account authorized by the addon.

http://forum.xbmc.org/showthread.php?tid=129499
find quote
bry- Online
Donor
Posts: 1,201
Joined: Jan 2011
Reputation: 13
Post: #8
Kudos. Was not aware. Thank you!

[Image: gn.php?u=bry-&fs=10&l=180&t=...;q=_L+-+_T]
find quote
josetaza Offline
Member
Posts: 50
Joined: Aug 2013
Reputation: 2
Location: The Netherlands, Eindhoven
Post: #9
A new version is available (0.4.0). If you have the addon installed it should automatically update to the new version. If not you can download it from here:
http://sourceforge.net/projects/xbmc-dropbox/

New features are:
  • Add context menu items for:
    • searching for dropbox files/folders
    • deleting files/folders from Dropbox
    • copying files/folders in Dropbox
    • move files/folders in Dropbox
    • create folders in Dropbox
    • upload files to Dropbox
  • Added passcode lock functionality
  • Add the addon to the Programs menu
  • Added fanart image
  • Remove cached files/folders/thumbnails when items are no longer
    present in dropbox folders

I hope you like it. :-)

Now I will start working on synchronizing a folder with dropbox.
find quote
Agora1 Offline
Junior Member
Posts: 9
Joined: Sep 2013
Reputation: 0
Post: #10
I am unable to stream/play videos.

I can only browse them.

The context menu doesn't provide options for streaming/playback.

Also, I'm unable to open all folders. When I try to open them they give errors.

Any idea why this is happening?
find quote
josetaza Offline
Member
Posts: 50
Joined: Aug 2013
Reputation: 2
Location: The Netherlands, Eindhoven
Post: #11
(2013-09-22 07:41)Agora1 Wrote:  I am unable to stream/play videos.

I can only browse them.

The context menu doesn't provide options for streaming/playback.
The addon caches the media files in the folders that you open in the addon. Videos are normally large files so it can take some time before they are actually downloaded. After they are downloaded you can play them. I understand that this is not very clear, so I'll try to add some background progress bar dialog so that you can see if the addon is still downloading media items.
I already tested with streaming from dropbox directly (so no caching), but this didn't work that well. It takes to long to get the media url from dropbox... But I'll check this again, maybe I missed something...

(2013-09-22 07:41)Agora1 Wrote:  Also, I'm unable to open all folders. When I try to open them they give errors.

Any idea why this is happening?
What kind of error do you get?
find quote
sphere Offline
Team-Kodi Member
Posts: 1,227
Joined: Jul 2009
Reputation: 50
Location: Germany
Post: #12
I didn't read the entire thread and don't know the special circumstances for your problem. I just spotted this qoute:
(2013-09-22 20:58)josetaza Wrote:  I already tested with streaming from dropbox directly (so no caching), but this didn't work that well. It takes to long to get the media url from dropbox... But I'll check this again, maybe I missed something...

You know the setResolvedUrl() method? I wrote a good explanation for it here.

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote
josetaza Offline
Member
Posts: 50
Joined: Aug 2013
Reputation: 2
Location: The Netherlands, Eindhoven
Post: #13
(2013-09-22 23:03)sphere Wrote:  I didn't read the entire thread and don't know the special circumstances for your problem. I just spotted this qoute:
(2013-09-22 20:58)josetaza Wrote:  I already tested with streaming from dropbox directly (so no caching), but this didn't work that well. It takes to long to get the media url from dropbox... But I'll check this again, maybe I missed something...

You know the setResolvedUrl() method? I wrote a good explanation for it here.
Thanks for the info. I will check this as well. I have played with the setResolvedUrl() before but I didn't understand how it worked. Now I understand it better.
find quote
Agora1 Offline
Junior Member
Posts: 9
Joined: Sep 2013
Reputation: 0
Post: #14
(2013-09-22 20:58)josetaza Wrote:  
(2013-09-22 07:41)Agora1 Wrote:  Also, I'm unable to open all folders. When I try to open them they give errors.

Any idea why this is happening?
What kind of error do you get?

Script failed: addon.py
find quote
josetaza Offline
Member
Posts: 50
Joined: Aug 2013
Reputation: 2
Location: The Netherlands, Eindhoven
Post: #15
(2013-09-25 08:11)Agora1 Wrote:  
(2013-09-22 20:58)josetaza Wrote:  
(2013-09-22 07:41)Agora1 Wrote:  Also, I'm unable to open all folders. When I try to open them they give errors.

Any idea why this is happening?
What kind of error do you get?

Script failed: addon.py
Hi there,
Could you provide a bit more info?
An error message from the xbmc.log would be nice. http://wiki.xbmc.org/index.php?title=Log...#Log_files
Also, what version are you using? In 0.2.1b there was a problem with 'special' characters in the folder/file names (eg.: &,@ and so on) This is (should Frown ) be fixed in 0.4.0.
Can you provide a folder name on which it failes?
What platform are you using it? (Linux, windows, raspberrypi, ...)

Thanks
find quote
Post Reply