Skip to content

Commit 41e51c9

Browse files
committed
refactor: rename ttml module to parser and update imports
1 parent 2ac3218 commit 41e51c9

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

pyamll/components/carousel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from textual.app import ComposeResult
22
from textual.widgets import Label, ListItem, ListView
33
from textual.containers import Horizontal, Vertical
4-
from ttml import VocalElement, Lyrics
4+
from parser import VocalElement, Lyrics
55
from enum import Enum
66
from utils import convert_seconds_to_format as fsec
77

pyamll/ttml.py renamed to pyamll/parser/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __str__(self):
5858
class Lyrics(list):
5959
element_map = []
6060
init_list:list[Line]
61+
6162
def __init__(self, init_list:list[Line], *args):
6263
self.init_list = init_list
6364
for i,line in enumerate(init_list):

pyamll/player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ttml import *
1+
from parser import *
22
import vlc
33
import time
44
from enum import Enum

pyamll/screens/edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from components.filepicker import FileNamePicker, FileType
22
from components.sidebar import Sidebar
3-
from ttml import process_lyrics
3+
from parser import process_lyrics
44

55
from textual import events
66
from textual.app import ComposeResult

pyamll/screens/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from components.carousel import Carousel, ScrollDirection, VerticalScroller
22
from components.playerbox import PlayerBox
33
from components.sidebar import Sidebar
4-
from ttml import Lyrics, process_lyrics
4+
from parser import Lyrics, process_lyrics
55
from screens.edit import EditScreen
66

77

pyamll/tui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from screens.sync import SyncScreen
66

77
from player import MusicPlayer
8-
from ttml import Lyrics
8+
from parser import Lyrics
99

1010

1111
class TTMLApp(App):

0 commit comments

Comments
 (0)