Release - YouTube Plug-in Thread

  Thread Rating:
  • 10 Vote(s) - 4.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jonib Offline
Senior Member
Posts: 100
Joined: Mar 2006
Reputation: 2
Post: #2431
A while ago I posted about changing the thumbnails in the Youtube plugin to widescreen here.

anxdpanic posted alpha 3 with an option to change the thumbnail size High/Medium. (Thanks again anxdpanic)

But I think most won't know that the "High" has an aspect ratio of 4:3 so is not widescreen and widescreen content gets black bars over/under, and "Medium" is smaller but is widescreen so might be preferable.

My old post has example thumbnails to show the difference.

jonib

XBMC2, EventGhost plugin. [Image: flattr-badge-large.png]
find quote
DjDiabolik Offline
Senior Member
Posts: 220
Joined: Oct 2015
Reputation: 0
Post: #2432
mmmmmmmmmm... i have updated my version to alpha 3.........now the addons it's no more working on my OSMC. I launch and i obtain the usually list... every voice i choice it's not work and obtain an errors say to me to read my log. I have tryed to access to "My Subscriction" also in filtered and not work... also on "Raccomanded" and also on "My Channel"...

How i can fix ?

*EDIT*
Can attach what's append when i try to load "My Subscriction" (normal):
Code:
02:17:44.450 T:1560802288  NOTICE: [plugin.video.youtube] Running: YouTube (5.4.0~alpha3) on Krypton (Kodi-17.3) with Python 2.7.9
02:17:44.815 T:1560802288   ERROR: /home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/connectionpool.py:843: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
                                              InsecureRequestWarning)
02:17:51.091 T:1560802288   ERROR: Previous line repeats 1 times.
02:17:51.091 T:1560802288  NOTICE: [plugin.video.youtube] Running: YouTube (5.4.0~alpha3) on Krypton (Kodi-17.3) with Python 2.7.9
02:17:54.072 T:1560802288   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.ProgrammingError'>
                                            Error Contents: Cannot operate on a closed cursor.
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 401, in _on_yt_specials
                                                return yt_specials.process(category, self, context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_specials.py", line 263, in process
                                                return _process_new_uploaded_videos_tv(provider, context, re_match)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_specials.py", line 230, in _process_new_uploaded_videos_tv
                                                result.extend(tv.my_subscriptions_to_items(provider, context, json_data))
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/tv.py", line 36, in my_subscriptions_to_items
                                                utils.update_video_infos(provider, context, video_id_dict, channel_items_dict=channel_item_dict)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/utils.py", line 183, in update_video_infos
                                                video_data = resource_manager.get_videos(video_ids)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 109, in get_videos
                                                result.update(self._update_videos(list_of_50))
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 81, in _update_videos
                                                video_ids_to_update)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/function_cache.py", line 108, in get
                                                self._set(cache_id, cached_data)
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/storage.py", line 121, in _set
                                                self._optimize_item_count()
                                              File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/storage.py", line 129, in _optimize_item_count
                                                for item in result:
                                            ProgrammingError: Cannot operate on a closed cursor.
                                            -->End of Python script error report<--
02:17:54.341 T:1958199296   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/special/new_uploaded_videos_tv/
02:17:54.344 T:1958199296   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/special/new_uploaded_videos_tv/) failed
On log appear all this....... all in latest osmc build and latest alpha 3....... on alpha 2 apparently all work whitout any problems....

...only on your "little world" can you lay down the law...
(This post was last modified: 2017-06-21 02:22 by DjDiabolik.)
find quote
xodi Offline
Member
Posts: 88
Joined: Nov 2016
Reputation: 1
Post: #2433
After updated to the 5.4.0~alpha3, I got many errors, it should be related with the database connection active close feature. After revert to the previous version, all errors gone.

Code:
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'sqlite3.ProgrammingError'>
Error Contents: Cannot operate on a closed cursor.
Traceback (most recent call last):
  File "/addons/plugin.video.youtube/resources/lib/default.py", line 7, in <module>
    runner.run(__provider__)
  File "/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 32, in run
    __RUNNER__.run(provider, context)
  File "/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
    results = provider.navigate(context)
  File "/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 123, in navigate
    result = method(context, re_match)
  File "/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 268, in _internal_search
    for search in search_history.list():
  File "/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/search_history.py", line 18, in list
    keys = self._get_ids(oldest_first=False)
  File "/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/storage.py", line 165, in _get_ids
    for item in query_result:
ProgrammingError: Cannot operate on a closed cursor.
-->End of Python script error report<--
find quote
epicfail Offline
Member
Posts: 87
Joined: Jan 2015
Reputation: 1
Post: #2434
(2017-06-20 21:31)anxdpanic Wrote:  @epicfail: latest update should cover that if you'd like to test

No error messages so far. Seems good...will have a look
find quote
anxdpanic Offline
Senior Member
Posts: 121
Joined: May 2016
Reputation: 21
Post: #2435
alpha4 zips are posted, to resolve 'Cannot operate on a closed cursor'

Thanks for testing and feedback
find quote
DjDiabolik Offline
Senior Member
Posts: 220
Joined: Oct 2015
Reputation: 0
Post: #2436
(2017-06-21 15:42)anxdpanic Wrote:  alpha4 zips are posted, to resolve 'Cannot operate on a closed cursor'

Thanks for testing and feedback

Thanks to you to continue to provide and continue to developing this fantastic addons......... i test immediatelly on OSMC Smile

*EDIT*
First feedback.........alpha 4 -unofficial- installed and all apparently it's working ever it's do Smile

I have only a question about the override view.... i have re-executed the wizard and from wizard i select id 53 and 54 but apparently nothigs append. On "My Subscription (filtered)" every access the "SHIFT" view_id it's autoselected and it's be selected also if i change the view one time myself. Same append on normal "My Subscription".... every time i access i re-obtain the views setted at "InfoWall". I have tryed to change the view_id manually from "Advanced" related to my xml files posted yesterday but apparently nothings appends..........
mmmmmm ok.... it's not a very important otherwise Smile it's possibly i miss or commit some errors Smile

...only on your "little world" can you lay down the law...
(This post was last modified: 2017-06-21 17:59 by DjDiabolik.)
find quote
Sea Monkey Offline
Junior Member
Posts: 5
Joined: Feb 2016
Reputation: 0
Post: #2437
For those of you getting python errors that crash Kodi when attempting to play YouTube videos...

(2017-02-21 01:16)Klasw Wrote:  It is actually a bug, see this:

https://bugs.launchpad.net/ubuntu/+sourc...ug/1636573

What you can do is to install python-cryptography version 1.7.1-2 and python-openssl version 16.2.0-1 from distro Zesty (Ubuntu 17.04). What I did:

Edit /etc/apt/sources.list

add:

#Zesty
deb http://se.archive.ubuntu.com/ubuntu zesty main
deb-src http://se.archive.ubuntu.com/ubuntu zesty main

(for Sweden, you can of course change to your country's repository, fist letters after http://)

sudo aptitude update
sudo aptitude install python-cryptography=1.7.1-2
(will also upgrade python-openssl to latest version)
find quote
Jeffers24 Offline
Fan
Posts: 465
Joined: Nov 2014
Reputation: 17
Location: England
Post: #2438
When using this addon do I need to apply for personal API details and enter them?

Are there a default set of API details that can be used?

What will happen if I try to use the addon without entering API details?
find quote
jonib Offline
Senior Member
Posts: 100
Joined: Mar 2006
Reputation: 2
Post: #2439
(2017-06-23 18:11)Jeffers24 Wrote:  When using this addon do I need to apply for personal API details and enter them?
No

Quote:Are there a default set of API details that can be used?
Yes (included in the plugin)

Quote:What will happen if I try to use the addon without entering API details?
Some functionality in the plugin might not work in a 24 hour period when the API quota is exceeded (read more here)

jonib

XBMC2, EventGhost plugin. [Image: flattr-badge-large.png]
find quote
Jeffers24 Offline
Fan
Posts: 465
Joined: Nov 2014
Reputation: 17
Location: England
Post: #2440
(2017-06-23 19:46)jonib Wrote:  
(2017-06-23 18:11)Jeffers24 Wrote:  When using this addon do I need to apply for personal API details and enter them?
No

Quote:Are there a default set of API details that can be used?
Yes (included in the plugin)

Quote:What will happen if I try to use the addon without entering API details?
Some functionality in the plugin might not work in a 24 hour period when the API quota is exceeded (read more here)

jonib

Thanks
find quote
Arokhaerr Offline
Junior Member
Posts: 28
Joined: Jun 2016
Reputation: 0
Post: #2441
Sorry if it has been asked before but what is the difference between the alpa4 ZIP and the unofficial_alpha4 zip?
find quote
jdf76 Offline
Donor
Posts: 677
Joined: Jun 2012
Reputation: 70
Location: Maryland USA
Post: #2442
Unofficial has the view choices still in the plugin, but the alpha4 does not. Unoffical is not sanctioned by Kodi because the views should be controlled by the skins and not the plugin. The unofficial is to satisfy the want of some of the users who are used to the old ways.

Thanks
Jeff
find quote
Post Reply