Browse Source

Make sure guessit doesnt loop endless. fix #136

tags/build/2.0.0.pre1
Ruud 13 years ago
parent
commit
076fd47cbe
  1. 4
      libs/guessit/fileutils.py

4
libs/guessit/fileutils.py

@ -51,8 +51,8 @@ def split_path(path):
if head == '/' and tail == '':
return ['/'] + result
# on Windows, the root folder is a drive letter (eg: 'C:\')
if len(head) == 3 and head[1:] == ':\\' and tail == '':
# on Windows, the root folder is a drive letter (eg: 'C:\') or for shares \\
if ((len(head) == 3 and head[1:] == ':\\') or (len(head) == 2 and head == '\\\\')) and tail == '':
return [head] + result
if head == '' and tail == '':

Loading…
Cancel
Save