diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-16 13:56:13 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-16 13:56:30 +0100 |
commit | d7dda1688886284b17c35be200d980f24c2546d2 (patch) | |
tree | 5a9ea993e33005ea35e73f476eda119b1b893a11 /youtube_dl/utils.py | |
parent | a19fd00cc4f799215a942c92fd5c722b3ea499cd (diff) |
[blinkx] Add extractor (Fixes #1972)
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 |