diff options
Diffstat (limited to 'youtube_dl/utils.py')
| -rw-r--r-- | youtube_dl/utils.py | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index bd46a2da2..f3ad47422 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1077,3 +1077,9 @@ def setproctitle(title):          libc.prctl(15, ctypes.byref(buf), 0, 0, 0)      except AttributeError:          return  # Strange libc, just skip this + + +def remove_start(s, start): +    if s.startswith(start): +        return s[len(start):] +    return s  | 
