Skip to content

Commit

Permalink
Fixed Pickle exception for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky4546 committed Dec 22, 2023
1 parent d095fe6 commit 0b37cc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

import lib.common.exceptions as exceptions

VERSION = '0.9.14.00-RC11'
VERSION = '0.9.14.00-RC12'
CABERNET_URL = 'https://github.com/cabernetwork/cabernet'
CABERNET_ID = 'cabernet'
CABERNET_REPO = 'manifest.json'
Expand Down
4 changes: 4 additions & 0 deletions lib/plugins/plugin_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def get_channels(self):
@handle_url_except()
@handle_json_except
def get_uri_json_data(self, _uri, _retries):
self.plugin_obj.initialize_http_session()
header = {
'Content-Type': 'application/json',
'User-agent': utils.DEFAULT_USER_AGENT}
Expand All @@ -94,6 +95,7 @@ def get_uri_json_data(self, _uri, _retries):

@handle_url_except()
def get_uri_data(self, _uri, _retries, _header=None, _data=None):
self.plugin_obj.initialize_http_session()
if _header is None:
header = {
'User-agent': utils.DEFAULT_USER_AGENT}
Expand All @@ -108,6 +110,7 @@ def get_uri_data(self, _uri, _retries, _header=None, _data=None):

@handle_url_except()
def get_m3u8_data(self, _uri, _retries, _header=None):
self.plugin_obj.initialize_http_session()
if _header is None:
return m3u8.load(_uri,
headers={'User-agent': utils.DEFAULT_USER_AGENT},
Expand Down Expand Up @@ -196,6 +199,7 @@ def get_thumbnail_size(self, _thumbnail, _retries, _ch_uid, ):

@handle_url_except
def get_best_stream(self, _url, _retries, _channel_id, _referer=None):
self.plugin_obj.initialize_http_session()
if self.config_obj.data[self.config_section]['player-stream_type'] == 'm3u8redirect':
return _url

Expand Down

0 comments on commit 0b37cc3

Please sign in to comment.