diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-25 15:18:40 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-25 15:18:40 +0100 |
commit | 7217e148fb03ea27edb12a878c959ebefec4c6c3 (patch) | |
tree | 74281d50173c15a0b88880c4ba18f7303548a58f /youtube_dl/utils.py | |
parent | b874fe2da8defdd5fd945e87d746f52ef52a40f2 (diff) |
[yahoo] Use centralized sorting, and add tbr field
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 2e48f187e..4c8bdbb0c 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1098,3 +1098,7 @@ def url_basename(url): class HEADRequest(compat_urllib_request.Request): def get_method(self): return "HEAD" + + +def int_or_none(v): + return v if v is None else int(v) |