chiark
/
gitweb
/
~mdw
/
epls
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
028b4b5
)
mkm3u: Allow clearing the prevailing expected duration.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 20 Mar 2022 02:56:57 +0000
(
02:56
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 20 Mar 2022 02:56:57 +0000
(
02:56
+0000)
mkm3u
patch
|
blob
|
blame
|
history
diff --git
a/mkm3u
b/mkm3u
index 52266972b23bc3a726f25032774459c66d719dc6..1512e86c0186d06fb452bbbc5f17629357ee6300 100755
(executable)
--- a/
mkm3u
+++ b/
mkm3u
@@
-572,9
+572,12
@@
class EpisodeListParser (object):
elif cmd == "explen":
w = ww.rest(); check(w is not None, "missing duration spec")
- d, v = parse_duration(w)
- me._explen = d
- if v is not None: me._expvar = v
+ if w == "-":
+ me._explen, me._expvar = None, DEFAULT_EXPVAR
+ else:
+ d, v = parse_duration(w)
+ me._explen = d
+ if v is not None: me._expvar = v
elif cmd == "epname":
for k, v in me._keyvals(opts): me._bad_keyval("epname", k, v)