Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.1.0.1 #925

Merged
merged 5 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.youtube" name="YouTube" version="7.1.0" provider-name="anxdpanic, bromix, MoojMidge">
<addon id="plugin.video.youtube" name="YouTube" version="7.1.0.1" provider-name="anxdpanic, bromix, MoojMidge">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.27.1"/>
Expand Down
5 changes: 4 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## v7.1.0
## v7.1.0.1
### Fixed
- Fix logging/retry of sqlite3.OperationalError
- Fix trying to use ISA for progressive live streams
Expand All @@ -13,6 +13,9 @@
- Fix new resume details not being saved in plugin local playback history #904
- Fix default thumbnails not being updated if available
- Fix login to personal project only #910
- Fix regression with not using content type when routing after f239764 #922
- Partially revert eb0f81c to avoid merge error in unofficial version #924
- Only attempt to import InputStream Helper if necessary #923

### Changed
- Update multiple busy dialog crash workaround #891
Expand Down
5 changes: 4 additions & 1 deletion resources/lib/youtube_plugin/kodion/abstract_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def wrapper(method):
return wrapper

def run_wizard(self, context):
# ui local variable used for ui.get_view_manager() in unofficial version
ui = context.get_ui()

context.wakeup(
CHECK_SETTINGS,
timeout=5,
Expand All @@ -129,7 +132,7 @@ def run_wizard(self, context):
steps = len(wizard_steps)

try:
if wizard_steps and context.get_ui().on_yes_no_input(
if wizard_steps and ui.on_yes_no_input(
context.localize('setup_wizard'),
(context.localize('setup_wizard.prompt')
% context.localize('setup_wizard.prompt.settings'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ def run(self, provider, context, focused=None):
cache_to_disc = options.get(provider.RESULT_CACHE_TO_DISC, True)
update_listing = options.get(provider.RESULT_UPDATE_LISTING, False)
else:
ui.clear_property(CONTENT_TYPE)
succeeded = bool(result)
if not succeeded:
ui.clear_property(CONTENT_TYPE)
cache_to_disc = False
update_listing = True

Expand Down
29 changes: 15 additions & 14 deletions resources/lib/youtube_plugin/youtube/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
)


try:
from inputstreamhelper import Helper as ISHelper
except ImportError:
ISHelper = None

__RE_PLAYLIST = re.compile(
r'^(/channel/(?P<channel_id>[^/]+))/playlist/(?P<playlist_id>[^/]+)/?$'
)
Expand Down Expand Up @@ -866,17 +861,23 @@ def update_play_info(provider, context, video_id, media_item, video_stream):

if use_isa:
license_info = video_stream.get('license_info', {})
license_proxy = license_info.get('proxy', '')
license_url = license_info.get('url', '')
license_token = license_info.get('token', '')
license_proxy = license_info.get('proxy')
license_url = license_info.get('url')
license_token = license_info.get('token')

if license_proxy and license_url and license_token:
try:
from inputstreamhelper import Helper

if ISHelper and license_proxy and license_url and license_token:
ISHelper('mpd' if media_item.use_mpd() else 'hls',
drm='com.widevine.alpha').check_inputstream()
is_helper = Helper('mpd' if media_item.use_mpd() else 'hls',
drm='com.widevine.alpha')
except ImportError:
is_helper = None

media_item.set_license_key(license_proxy)
ui.set_property(LICENSE_URL, license_url)
ui.set_property(LICENSE_TOKEN, license_token)
if is_helper and is_helper.check_inputstream():
media_item.set_license_key(license_proxy)
ui.set_property(LICENSE_URL, license_url)
ui.set_property(LICENSE_TOKEN, license_token)


def update_fanarts(provider, context, channel_items_dict, data=None):
Expand Down
Loading