|
|
@@ -110,7 +110,8 @@ matchers = [ |
|
|
|
for e in matchers: |
|
|
|
e[0] = re.compile(e[0]) |
|
|
|
|
|
|
|
for origLine in sys.stdin: |
|
|
|
for origLine in sys.stdin.buffer: |
|
|
|
origLine = origLine.decode('utf-8', 'surrogateescape') |
|
|
|
origLine = origLine.strip() |
|
|
|
line = re.sub(r'https?://', '//', origLine) |
|
|
|
line = domainPattern.sub('/www.youtube.com/', line) |
|
|
|