Skip to content

Commit f9566a8

Browse files
committed
Merge branch 'develop'
2 parents 81ad3db + 2e53c75 commit f9566a8

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

plugin.program.autowidget/resources/lib/add.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def build_labels(source, path_def=None, target=""):
9797

9898
if path != "addons://user/":
9999
path = path.replace("addons://user/", "plugin://")
100+
path = path.replace("addons://dependencies/", "dependency://")
100101
if "plugin://plugin.video.themoviedb.helper" in path and not "&widget=True" in path:
101102
path += "&widget=True"
102103
labels["file"]["file"] = path
@@ -122,6 +123,8 @@ def _add_as(path_def):
122123
i in path for i in ["addons://user", "plugin://", "script://"]
123124
) and not parse_qsl(path):
124125
pass
126+
elif "dependency://" in path:
127+
types = [(shortcut_types[4], type_labels[4])]
125128
else:
126129
types = [(shortcut_types[0], type_labels[0])]
127130

plugin.program.autowidget/resources/lib/common/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def wipe(folder=_addon_data, over=False):
264264
if choice or over:
265265
dirs = xbmcvfs.listdir(folder)[0]
266266
files = xbmcvfs.listdir(folder)[1]
267-
267+
268268
for f in files:
269269
path = os.path.join(folder, f)
270270
remove_file(path)
@@ -449,7 +449,7 @@ def write_file(file, content, mode="w"):
449449
return False
450450

451451

452-
def read_json(file, log_file=False, default=None):
452+
def read_json(file, log_file=False, default={}):
453453
data = None
454454
# path = os.path.join(_addon_data, file) if _addon_data not in file else file
455455
path = translatePath(file)

plugin.program.autowidget/resources/lib/menu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def call_path(path_id):
428428
path_def["file"]["file"]
429429
.replace("plugin://", "")
430430
.replace("script://", "")
431+
.replace("dependency://", "")
431432
.split("/")[0]
432433
)
433434
elif (

0 commit comments

Comments
 (0)