SchapplM / xbmc-addon-service-watchedlist

Addon for Kodi Media Center to organize "watched"-status of media.
http://kodi.wiki/view/Add-on:WatchedList
GNU General Public License v3.0
32 stars 13 forks source link

Dropbox API v1 retired. Use API v2 #30

Closed SchapplM closed 6 years ago

SchapplM commented 6 years ago

The Dropbox API version 1 used here is not supported by Dropbox any more. It was deactivated end of september 2017. Error message in WatchedList:

NOTICE: service.watchedlist: Dropbox database download failed. [400] u'v1_retired'.

Refactor the code to use Dropbox API v2:

SchapplM commented 6 years ago

@micahg: I just found out that you already started working on the issue. I also did a similar refactoring, but you also seem to have run into the error I had with dbx.files_download_to_file(self.dropbox_path, remote_file): ValueError('Timeout value connect was Timeout(connect=30, read=30, total=None)). So I will wait what you find out.

micahg commented 6 years ago

Hi,

Yeah, it has to do with the script.modules.requests version. That needs a version bump (requested at https://github.com/beenje/script.module.requests/issues/16).

OptimusGREEN commented 6 years ago

I didn't implement any fix for dbx.files_download_to_file(self.dropbox_path, remote_file) but haven't had any issues. Unless my make stone friendly fix had anything to do with it. It was an issue cause by date time formatting i believe.