Skip to content

Commit 7c40cba

Browse files
committed
chore: remove blueprint-compiler from Flatpak manifest since GNOME SDK 49 has it built-in
1 parent 0c2359e commit 7c40cba

3 files changed

Lines changed: 1 addition & 25 deletions

File tree

build-aux/flatpak/io.github.dzheremi2.lrcmake-gtk.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ modules:
8888
- type: file
8989
url: https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz
9090
sha256: d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e
91-
- name: blueprint-compiler
92-
buildsystem: meson
93-
sources:
94-
- type: git
95-
url: https://github.com/GNOME/blueprint-compiler.git # Using GitHub mirror in cases of GNOME GitLab not responding
96-
tag: v0.18.0
97-
cleanup:
98-
- "*"
9991
- name: Chronograph
10092
builddir: true
10193
buildsystem: meson

build-aux/flatpak/io.github.dzheremi2.lrcmake_gtk.Devel.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ modules:
8888
- type: file
8989
url: https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz
9090
sha256: d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e
91-
- name: blueprint-compiler
92-
buildsystem: meson
93-
sources:
94-
- type: git
95-
url: https://github.com/GNOME/blueprint-compiler.git # Using GitHub mirror in cases of GNOME GitLab not responding
96-
tag: v0.18.0
97-
cleanup:
98-
- "*"
9991
- name: Chronograph
10092
builddir: true
10193
buildsystem: meson

chronograph/utils/lyrics.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import Literal, Optional
44

55
from chronograph.internal import Schema
6-
from chronograph.utils.wbw.models.word_model import WordModel
76
from chronograph.utils.wbw.token_parser import TokenParser
87
from chronograph.utils.wbw.tokens import WordToken
98

@@ -53,13 +52,6 @@ class Lyrics:
5352
Text of lyrics
5453
"""
5554

56-
LINE_TIMESTAMP = re.compile(
57-
r"^\s*\[(?P<ts>(?P<m>\d{2}):(?P<s>\d{2})(?:\.(?P<ms>\d{2,3}))?)\]\s*"
58-
)
59-
WORD_TIMESTAMP = re.compile(r"\s*<\d{2}:\d{2}(?:\.\d{2,3})?>\s*")
60-
TOKEN = re.compile(
61-
r"(?:<(?P<m>\d{2}):(?P<s>\d{2})(?:\.(?P<ms>\d{2,3}))?>\s*)?(?P<word>[^\s<>]+)"
62-
)
6355
TIMESTAMP = re.compile(r"^\d{2}:\d{2}(?:\.\d{2,3})?$")
6456

6557
_SPACER = "\u00a0"
@@ -257,5 +249,5 @@ def _format_timestamp_ms(ms: int, *, precise: bool = True) -> str:
257249
)
258250

259251
@staticmethod
260-
def _is_spacer(word: WordToken | WordModel) -> bool:
252+
def _is_spacer(word: WordToken) -> bool:
261253
return word.word == Lyrics._SPACER * 20

0 commit comments

Comments
 (0)