Kodi Community Forum
[RELEASE] Vimeo (Video) Plugin - De facto default standard Vimeo Addon for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Vimeo (Video) Plugin - De facto default standard Vimeo Addon for XBMC (/showthread.php?tid=81052)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


- Velophile - 2011-03-01

Thanks, that's very kind of you to go to that much effort. I think I've still got an X86_64 Arch install on my laptops try-before-you-buy partition so I can have a go with that later if it's still there.


- fschnack - 2011-03-07

Hello!

The language files must be in a specific format to work? I ask because I'm trying to translate this plugin to brazilian Portuguese but the file fails to load. XBMC log states that the end tag is missing, but it's there.

Here is my file: http://dl.dropbox.com/u/22768127/vimeo-portuguese-brazil.zip


- TobiasTheCommie - 2011-03-07

vaca Wrote:I have the same problem as Velophile. And also for archlinux x86_64.

Velophile Wrote:Thanks, that's very kind of you to go to that much effort. I think I've still got an X86_64 Arch install on my laptops try-before-you-buy partition so I can have a go with that later if it's still there.

I had the same problem on my arch 64bit, at least until i set the time correctly.

The clock in my 64bit was one hour off, after correcting that i could login.

Vimeo plugin uses Oauth2 which uses the system clock to ensure safe and secure communication with Vimeo. Please update your time with ntpd/ntpdate and verify it is correct.

If it still fails please try setting your computer to CET and try again. If that still fails try setting the CMOS time to UTC.

Please use this release http://www.2shared.com/file/hIFiumWe/pluginvideovimeo.html for testing, it gives us a little more debugging.


- TobiasTheCommie - 2011-03-07

fschnack Wrote:Hello!

The language files must be in a specific format to work? I ask because I'm trying to translate this plugin to brazilian Portuguese but the file fails to load. XBMC log states that the end tag is missing, but it's there.

Here is my file: http://dl.dropbox.com/u/22768127/vimeo-portuguese-brazil.zip

As far as i can see the file is not encoded in UTF-8

If you are editing the file on windows try using http://notepad-plus-plus.org/ and make sure you save the file in UTF-8 and not in ascii.


- Velophile - 2011-03-07

TobiasTheCommie Wrote:I had the same problem on my arch 64bit, at least until i set the time correctly.

The clock in my 64bit was one hour off, after correcting that i could login.

Vimeo plugin uses Oauth2 which uses the system clock to ensure safe and secure communication with Vimeo. Please update your time with ntpd/ntpdate and verify it is correct.

If it still fails please try setting your computer to CET and try again. If that still fails try setting the CMOS time to UTC.

Please use this release http://www.2shared.com/file/hIFiumWe/pluginvideovimeo.html for testing, it gives us a little more debugging.

Thanks! intalling the ntpd and running it sorted the problem out. I hadn't noticed the time had drifted as it was only by seconds or minutes but that must have been enough to stop the plugin working.


- TobiasTheCommie - 2011-03-07

Velophile Wrote:Thanks! intalling the ntpd and running it sorted the problem out. I hadn't noticed the time had drifted as it was only by seconds or minutes but that must have been enough to stop the plugin working.

I just did a test on my computer, it really doesn't take a lot to this this problem, i'm surprised so few people have hit it.

As of now it is officially suggested to have an NTP daemon running at all times when using this plugin(This should be automatic for windows i believe, mac, and at least Ubuntu linux).


- fschnack - 2011-03-08

Hello!

I've updated the file as you said and now it works. I've updated the zip file as well. It would be possible to have it added to the plugin official distribution?


- TobiasTheCommie - 2011-03-08

fschnack Wrote:Hello!

I've updated the file as you said and now it works. I've updated the zip file as well. It would be possible to have it added to the plugin official distribution?

That's great news. We will add it to the next beta release.


- vaca - 2011-03-08

TobiasTheCommie Wrote:I had the same problem on my arch 64bit, at least until i set the time correctly.

The clock in my 64bit was one hour off, after correcting that i could login.

Vimeo plugin uses Oauth2 which uses the system clock to ensure safe and secure communication with Vimeo. Please update your time with ntpd/ntpdate and verify it is correct.

If it still fails please try setting your computer to CET and try again. If that still fails try setting the CMOS time to UTC.

Please use this release http://www.2shared.com/file/hIFiumWe/pluginvideovimeo.html for testing, it gives us a little more debugging.

ok it works already Big Grin


"My Groups" fails - TravellingGuy - 2011-03-20

Hi Henrik.

I'm having a problem with the Vimeo plugin. When I select "My Groups", or I try to view the Groups of one of My Contacts, the plugin fails. Here is the error shown in the xbmc.log:
Code:
10:31:05 T:140222562039552 M:1858146304    INFO: -->Python script returned the following error<--
10:31:05 T:140222562039552 M:1858146304   ERROR: Error Type: exceptions.AttributeError
10:31:05 T:140222562039552 M:1858146304   ERROR: Error Contents: 'NoneType' object has no attribute 'contents'
10:31:05 T:140222562039552 M:1858146304   ERROR: Traceback (most recent call last):
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/default.py", line 37, in ?
                                                navigator.listMenu(params)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 85, in listMenu
                                                self.listUserFolder(params)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 189, in listUserFolder
                                                (result, status) = core.getUserData(params)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 463, in getUserData
                                                result = self._get_list('group', result)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 572, in _get_list
                                                group["thumbnail"] = item.logo_url.contents[0]
                                            AttributeError: 'NoneType' object has no attribute 'contents'
10:31:05 T:140222562039552 M:1858146304    INFO: -->End of Python script error report<--

I should point out that I'm running OpdenKamp's most recent Ubuntu packages (i.e. the XBMC main PVR development repository), so I'm post Dharma. I don't think that this is the cause (the rest of Vimeo plugin works, and all other plugins work), but wanted to point that out, just in case....

Thanks


- HenrikDK - 2011-03-20

TravellingGuy Wrote:Hi Henrik.

I'm having a problem with the Vimeo plugin. When I select "My Groups", or I try to view the Groups of one of My Contacts, the plugin fails. Here is the error shown in the xbmc.log:
Code:
10:31:05 T:140222562039552 M:1858146304    INFO: -->Python script returned the following error<--
10:31:05 T:140222562039552 M:1858146304   ERROR: Error Type: exceptions.AttributeError
10:31:05 T:140222562039552 M:1858146304   ERROR: Error Contents: 'NoneType' object has no attribute 'contents'
10:31:05 T:140222562039552 M:1858146304   ERROR: Traceback (most recent call last):
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/default.py", line 37, in ?
                                                navigator.listMenu(params)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 85, in listMenu
                                                self.listUserFolder(params)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 189, in listUserFolder
                                                (result, status) = core.getUserData(params)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 463, in getUserData
                                                result = self._get_list('group', result)
                                              File "/home/xxxx/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 572, in _get_list
                                                group["thumbnail"] = item.logo_url.contents[0]
                                            AttributeError: 'NoneType' object has no attribute 'contents'
10:31:05 T:140222562039552 M:1858146304    INFO: -->End of Python script error report<--

I should point out that I'm running OpdenKamp's most recent Ubuntu packages (i.e. the XBMC main PVR development repository), so I'm post Dharma. I don't think that this is the cause (the rest of Vimeo plugin works, and all other plugins work), but wanted to point that out, just in case....

Thanks

Hi, thanks for the feed back, even though the error is pretty apparent (we assume there's always gonna be a logo for a group) is there any chance i could get a full log with the plugins debug mode enabled? or alternatively name of the group that it's failing on (your vimeo nick/ userid would also do ). Smile

/Henrik DK


- TravellingGuy - 2011-03-20

HenrikDK Wrote:Hi, thanks for the feed back, even though the error is pretty apparent (we assume there's always gonna be a logo for a group) is there any chance i could get a full log with the plugins debug mode enabled? or alternatively name of the group that it's failing on (your vimeo nick/ userid would also do ). Smile

/Henrik DK

Hey Henrik. Thanks for the quick response. I deleted all my groups, then started adding them back in to find out which one(s) were causing problems.

The "Documentaries" group has this problem (http://vimeo.com/groups/688), for example.

If that's not enough, I can supply a full log, but not sure how to enable debug mode for plugins. Let me know.


- neo2154 - 2011-04-22

Hello Smile

I have found 2 problem:

The XBMC distro is Ubuntu Live Dharma 10.1., with Aeon MQ2 skin (but the error persist also with confluence skin) and the hardware a Zotac ZBOX ION 2

First: Related with the playback of only certain Vimeo Videos ...

The error report is (debug flag set to true):

21:35:06 T:2538601328 M:1524862976 NOTICE: -->Python Interpreter Initialized<--
21:35:06 T:2538601328 M:1524862976 NOTICE: Vimeo-1.0.2
21:35:11 T:2538601328 M:1524858880 ERROR: Error Type: exceptions.AttributeError
21:35:11 T:2538601328 M:1524858880 ERROR: Error Contents: 'NoneType' object has no attribute 'contents'
21:35:11 T:2538601328 M:1524858880 ERROR: Traceback (most recent call last):
File "/home/dd/.xbmc/addons/plugin.video.vimeo/default.py", line 35, in ?
navigator.executeAction(params)
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 135, in executeAction
self.playVideo(params)
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 307, in playVideo
(video, status) = core.construct_video_url(get('videoid'));
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 351, in construct_video_url
video = self._get_details(videoid)
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 523, in _get_details
video['videoid'] = soup.embed_settings.clip_id.contents[0]
AttributeError: 'NoneType' object has no attribute 'contents'
21:35:11 T:3055388544 M:1524858880 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vimeo/?path=/root/search&action=play_video&videoid=5606758]

The video id is 5606758 (an incredible HD 720p video of the most large aquarium in the world Sad ).

There are other videos which are reporting the same error, but know i cant remember... if you need more videos please tell me...



Second: When i try to login (the xbmc screen displays "login uncaught error" ) and the error report is (debug flag set to true):

21:55:08 T:2983058288 M:1866383360 WARNING: Create - Unsupported protocol(script) in script://
21:55:12 T:2886728560 M:1866928128 WARNING: Previous line repeats 1 times.
21:55:12 T:2886728560 M:1866928128 NOTICE: -->Python Interpreter Initialized<--
21:55:12 T:2886728560 M:1866928128 NOTICE: Vimeo-1.0.2 ARGV: ['plugin://plugin.video.vimeo/', '0', '']
21:55:16 T:2886728560 M:1866309632 NOTICE: Vimeo-1.0.2 __init__
21:55:16 T:2886728560 M:1866309632 NOTICE: Vimeo-1.0.2 view mode: 2
21:55:18 T:2886728560 M:1866948608 NOTICE: -->Python Interpreter Initialized<--
21:55:18 T:2886728560 M:1866948608 NOTICE: Vimeo-1.0.2 ARGV: ['plugin://plugin.video.vimeo/', '0', '?path=/root/login&action=settings&']
21:55:21 T:2886728560 M:1866948608 NOTICE: Vimeo-1.0.2 __init__
21:55:26 T:2886728560 M:1866059776 NOTICE: Vimeo-1.0.2 login_get_verifier - auth_url: http://vimeo.com/oauth/authorize?oauth_token=b88a406a1b68dbbbfeb5ea4e1d17fc9d&permission=write
21:55:30 T:2886728560 M:1866067968 NOTICE: Cookie jar contents: <_LWPCookieJar.LWPCookieJar[Cookie(version=0, name='cached_email', value='xxxxx@xxxx.com', port=None, port_specified=False, domain='.vimeo.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=None, discard=False, comment=None, comment_url=None, rest={}), Cookie(version=0, name='uid', value='6798055%7Cuser6798055%7C1303173722%7C0', port=None, port_specified=False, domain='.vimeo.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1618862129, discard=False, comment=None, comment_url=None, rest={}), Cookie(version=0, name='vimeo', value='g5a5560t6500hiufd88anblol5', port=None, port_specified=False, domain='.vimeo.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1306094127, discard=False, comment=None, comment_url=None, rest={})]>
21:55:30 T:2886728560 M:1866067968 NOTICE: Vimeo-1.0.2 setting userid: '6798055'
21:55:32 T:2886728560 M:1866067968 NOTICE: Vimeo-1.0.2 login_get_verifier no oauth_token:
21:55:32 T:2937060208 M:1866194944 NOTICE: -->Python Interpreter Initialized<--
21:55:32 T:2937060208 M:1866194944 NOTICE: Vimeo-1.0.2 ARGV: ['plugin://plugin.video.vimeo/', '1', '']
21:55:35 T:2937060208 M:1865187328 NOTICE: Vimeo-1.0.2 __init__
21:55:35 T:2937060208 M:1865187328 NOTICE: Vimeo-1.0.2 view mode: 2
21:55:35 T:3079481216 M:1865314304 ERROR: GetDirectory - Error getting plugin://plugin.video.vimeo/?path=/root/login&action=settings&
21:55:35 T:3079481216 M:1865314304 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vimeo/?path=/root/login&action=settings&) failed

I have been watching the logs looking for a solution, and i have synced my local time with ntpdate, but i am not a skilled python interpreter and i have not solved this error with ntp setup Wink ... anyway if you need some help tell me and i will try to help you...

Thanks a lot,
Regards,


- HenrikDK - 2011-04-22

neo2154 Wrote:The XBMC distro is Ubuntu Live Dharma 10.1., with Aeon MQ2 skin (but the error persist also with confluence skin) and the hardware a Zotac ZBOX ION 2

First: Related with the playback of only certain Vimeo Videos ...

The error report is (debug flag set to true):

21:35:06 T:2538601328 M:1524862976 NOTICE: -->Python Interpreter Initialized<--
21:35:06 T:2538601328 M:1524862976 NOTICE: Vimeo-1.0.2
21:35:11 T:2538601328 M:1524858880 ERROR: Error Type: exceptions.AttributeError
21:35:11 T:2538601328 M:1524858880 ERROR: Error Contents: 'NoneType' object has no attribute 'contents'
21:35:11 T:2538601328 M:1524858880 ERROR: Traceback (most recent call last):
File "/home/dd/.xbmc/addons/plugin.video.vimeo/default.py", line 35, in ?
navigator.executeAction(params)
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 135, in executeAction
self.playVideo(params)
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoNavigation.py", line 307, in playVideo
(video, status) = core.construct_video_url(get('videoid'));
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 351, in construct_video_url
video = self._get_details(videoid)
File "/home/dd/.xbmc/addons/plugin.video.vimeo/VimeoCore.py", line 523, in _get_details
video['videoid'] = soup.embed_settings.clip_id.contents[0]
AttributeError: 'NoneType' object has no attribute 'contents'
21:35:11 T:3055388544 M:1524858880 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.vimeo/?path=/root/search&action=play_video&videoid=5606758]

The video id is 5606758 (an incredible HD 720p video of the most large aquarium in the world Sad ).

There are other videos which are reporting the same error, but know i cant remember... if you need more videos please tell me...

Hi according to the april 21. post on their blog / tumblr page http://vimeoapi.tumblr.com/ vimeo just change a lot of stuff with their api, one of the things it seems is that it now no longer returns the videoid in the resulting xml as we expect. In any case this is unnessecary (since we already know the id at the time) so a quick fix to repair video playback would be to replace:
Code:
video['videoid'] = soup.embed_settings.clip_id.contents[0]
with:
video['videoid'] = videoid

in the _get_details function located in VimeoCore.py

neo2154 Wrote:Second: When i try to login (the xbmc screen displays "login uncaught error" ) and the error report is (debug flag set to true):

21:55:08 T:2983058288 M:1866383360 WARNING: Create - Unsupported protocol(script) in script://
21:55:12 T:2886728560 M:1866928128 WARNING: Previous line repeats 1 times.
21:55:12 T:2886728560 M:1866928128 NOTICE: -->Python Interpreter Initialized<--
21:55:12 T:2886728560 M:1866928128 NOTICE: Vimeo-1.0.2 ARGV: ['plugin://plugin.video.vimeo/', '0', '']
21:55:16 T:2886728560 M:1866309632 NOTICE: Vimeo-1.0.2 __init__
21:55:16 T:2886728560 M:1866309632 NOTICE: Vimeo-1.0.2 view mode: 2
21:55:18 T:2886728560 M:1866948608 NOTICE: -->Python Interpreter Initialized<--
21:55:18 T:2886728560 M:1866948608 NOTICE: Vimeo-1.0.2 ARGV: ['plugin://plugin.video.vimeo/', '0', '?path=/root/login&action=settings&']
21:55:21 T:2886728560 M:1866948608 NOTICE: Vimeo-1.0.2 __init__
21:55:26 T:2886728560 M:1866059776 NOTICE: Vimeo-1.0.2 login_get_verifier - auth_url: http://vimeo.com/oauth/authorize?oauth_token=b88a406a1b68dbbbfeb5ea4e1d17fc9d&permission=write
21:55:30 T:2886728560 M:1866067968 NOTICE: Cookie jar contents: <_LWPCookieJar.LWPCookieJar[Cookie(version=0, name='cached_email', value='xxxxx@xxxx.com', port=None, port_specified=False, domain='.vimeo.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=None, discard=False, comment=None, comment_url=None, rest={}), Cookie(version=0, name='uid', value='6798055%7Cuser6798055%7C1303173722%7C0', port=None, port_specified=False, domain='.vimeo.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1618862129, discard=False, comment=None, comment_url=None, rest={}), Cookie(version=0, name='vimeo', value='g5a5560t6500hiufd88anblol5', port=None, port_specified=False, domain='.vimeo.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1306094127, discard=False, comment=None, comment_url=None, rest={})]>
21:55:30 T:2886728560 M:1866067968 NOTICE: Vimeo-1.0.2 setting userid: '6798055'
21:55:32 T:2886728560 M:1866067968 NOTICE: Vimeo-1.0.2 login_get_verifier no oauth_token:
21:55:32 T:2937060208 M:1866194944 NOTICE: -->Python Interpreter Initialized<--
21:55:32 T:2937060208 M:1866194944 NOTICE: Vimeo-1.0.2 ARGV: ['plugin://plugin.video.vimeo/', '1', '']
21:55:35 T:2937060208 M:1865187328 NOTICE: Vimeo-1.0.2 __init__
21:55:35 T:2937060208 M:1865187328 NOTICE: Vimeo-1.0.2 view mode: 2
21:55:35 T:3079481216 M:1865314304 ERROR: GetDirectory - Error getting plugin://plugin.video.vimeo/?path=/root/login&action=settings&
21:55:35 T:3079481216 M:1865314304 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vimeo/?path=/root/login&action=settings&) failed

I have been watching the logs looking for a solution, and i have synced my local time with ntpdate, but i am not a skilled python interpreter and i have not solved this error with ntp setup Wink ... anyway if you need some help tell me and i will try to help you...
This one is a bit worse, it seems that among their recent pages they also broke the code we have for authenticating the plugin. This is messy code so it will be a while before i can sort out a fix.

For impatient users im suggesting applying the video playback fix manually since it will be a while before i can push a new version.


- HenrikDK - 2011-04-22

HenrikDK Wrote:This one is a bit worse, it seems that among their recent pages they also broke the code we have for authenticating the plugin. This is messy code so it will be a while before i can sort out a fix.

For impatient users im suggesting applying the video playback fix manually since it will be a while before i can push a new version.

Ok, I take that back, spent another 10 minuts on it, vimeo just made our life a whole lot easier Smile I'll push out a fix on sunday..