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:
072fb77
)
mkm3u: Reformat multi-line regices.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 14 Mar 2022 14:58:53 +0000
(14:58 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 14 Mar 2022 14:58:53 +0000
(14:58 +0000)
mkm3u
patch
|
blob
|
blame
|
history
diff --git
a/mkm3u
b/mkm3u
index eff5d963c8cb065a4013d4c18669ccae1a0c08bc..e250c41e651190fb550e5c92696956a27e4532c2 100755
(executable)
--- a/
mkm3u
+++ b/
mkm3u
@@
-138,8
+138,7
@@
def some_group(m, *gg):
class VideoDir (object):
class VideoDir (object):
- _R_ISO_PRE = RX.compile(r"""
- ^
+ _R_ISO_PRE = RX.compile(r""" ^
(?: S (?P<si> \d+) (?: \. \ (?P<st> .*)—)? (?: D (?P<sdi> \d+))? |
(?P<di> \d+))
\. \ #
(?: S (?P<si> \d+) (?: \. \ (?P<st> .*)—)? (?: D (?P<sdi> \d+))? |
(?P<di> \d+))
\. \ #
@@
-147,8
+146,8
@@
class VideoDir (object):
\. iso $
""", RX.X)
\. iso $
""", RX.X)
- _R_ISO_EP = RX.compile(r"""
-
^
E (?P<ei> \d+) (?: – (?P<ej> \d+))? $
+ _R_ISO_EP = RX.compile(r"""
^
+ E (?P<ei> \d+) (?: – (?P<ej> \d+))? $
""", RX.X)
def __init__(me, dir):
""", RX.X)
def __init__(me, dir):
@@
-207,8
+206,7
@@
class AudioEpisode (Source):
class AudioDir (object):
class AudioDir (object):
- _R_FLAC = RX.compile(r"""
- ^
+ _R_FLAC = RX.compile(r""" ^
E (\d+)
(?: \. \ (.*))?
\. flac $
E (\d+)
(?: \. \ (.*))?
\. flac $