Make sure guessit doesnt loop endless. fix #136
This commit is contained in:
@@ -51,8 +51,8 @@ def split_path(path):
|
|||||||
if head == '/' and tail == '':
|
if head == '/' and tail == '':
|
||||||
return ['/'] + result
|
return ['/'] + result
|
||||||
|
|
||||||
# on Windows, the root folder is a drive letter (eg: 'C:\')
|
# on Windows, the root folder is a drive letter (eg: 'C:\') or for shares \\
|
||||||
if len(head) == 3 and head[1:] == ':\\' and tail == '':
|
if ((len(head) == 3 and head[1:] == ':\\') or (len(head) == 2 and head == '\\\\')) and tail == '':
|
||||||
return [head] + result
|
return [head] + result
|
||||||
|
|
||||||
if head == '' and tail == '':
|
if head == '' and tail == '':
|
||||||
|
|||||||
Reference in New Issue
Block a user