Piccoli fix

This commit is contained in:
Alhaziel01
2020-06-15 18:20:59 +02:00
parent afda997453
commit 04fa44d8ca
2 changed files with 4 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ def find_single_match(data, patron, index=0):
else:
return matches.group()
else:
return []
return ""
else:
matches = re.findall(patron, data, flags=re.DOTALL)
return matches[index]

View File

@@ -124,7 +124,7 @@ def resume_playback(item):
head_nfo, item_nfo = videolibrarytools.read_nfo(nfo_path)
# Show Window
if (config.get_setting("player_mode") not in [1, 3] or item.play_from == 'window') and item_nfo.played_time > 0:
if (config.get_setting("player_mode") not in [3] or item.play_from == 'window') and item_nfo.played_time > 0:
Dialog = ResumePlayback('ResumePlayback.xml', config.get_runtime_path(), item=item_nfo)
Dialog.show()
t = 0
@@ -132,6 +132,8 @@ def resume_playback(item):
t += 1
xbmc.sleep(100)
if not Dialog.Resume: item_nfo.played_time = 0
else:
item_nfo.played_time = 0
return item, nfo_path, head_nfo, item_nfo