4 Commits

Author SHA1 Message Date
Maveno
62877dfed6 ff 2024-11-19 07:54:39 +01:00
Maveno
87ff94e204 add codec srt 2024-11-19 07:54:06 +01:00
Maveno
0c78ed7cf7 ff 2024-11-18 21:15:29 +01:00
Maveno
4db9bfd103 ff 2024-11-18 20:57:04 +01:00
5 changed files with 9 additions and 4 deletions

View File

@@ -530,6 +530,8 @@ class MediaDetailsScreen(Screen):
if type(showDescriptor) is not ShowDescriptor: if type(showDescriptor) is not ShowDescriptor:
raise TypeError("MediaDetailsScreen.handle_new_pattern(): Argument 'showDescriptor' has to be of type ShowDescriptor") raise TypeError("MediaDetailsScreen.handle_new_pattern(): Argument 'showDescriptor' has to be of type ShowDescriptor")
self.removeShow()
showRowIndex = self.getRowIndexFromShowId(showDescriptor.getId()) showRowIndex = self.getRowIndexFromShowId(showDescriptor.getId())
if showRowIndex is None: if showRowIndex is None:
show = (showDescriptor.getId(), showDescriptor.getName(), showDescriptor.getYear()) show = (showDescriptor.getId(), showDescriptor.getName(), showDescriptor.getYear())
@@ -539,8 +541,6 @@ class MediaDetailsScreen(Screen):
if showRowIndex is not None: if showRowIndex is not None:
self.showsTable.move_cursor(row=showRowIndex) self.showsTable.move_cursor(row=showRowIndex)
self.removeShow()
patternDescriptor = self.getPatternDescriptorFromInput() patternDescriptor = self.getPatternDescriptorFromInput()
if patternDescriptor: if patternDescriptor:

View File

@@ -155,6 +155,7 @@ class PatternDetailsScreen(Screen):
trackLanguage = td.getLanguage() trackLanguage = td.getLanguage()
audioLayout = td.getAudioLayout() audioLayout = td.getAudioLayout()
row = (td.getIndex(), row = (td.getIndex(),
trackType.label(), trackType.label(),
typeCounter[trackType], typeCounter[trackType],

View File

@@ -162,4 +162,7 @@ class ShowsScreen(Screen):
yield self.table yield self.table
yield Footer() f = Footer()
f.description = "yolo"
yield f

View File

@@ -8,6 +8,7 @@ class TrackCodec(Enum):
AAC = {'identifier': 'aac', 'format': None, 'extension': 'aac' , 'label': 'AAC'} AAC = {'identifier': 'aac', 'format': None, 'extension': 'aac' , 'label': 'AAC'}
AC3 = {'identifier': 'ac3', 'format': 'ac3', 'extension': 'ac3' , 'label': 'AC3'} AC3 = {'identifier': 'ac3', 'format': 'ac3', 'extension': 'ac3' , 'label': 'AC3'}
DTS = {'identifier': 'dts', 'format': 'dts', 'extension': 'dts' , 'label': 'DTS'} DTS = {'identifier': 'dts', 'format': 'dts', 'extension': 'dts' , 'label': 'DTS'}
SRT = {'identifier': 'srt', 'format': 'srt', 'extension': 'srt' , 'label': 'SRT'}
ASS = {'identifier': 'ass', 'format': 'ass', 'extension': 'ass' , 'label': 'ASS'} ASS = {'identifier': 'ass', 'format': 'ass', 'extension': 'ass' , 'label': 'ASS'}
PGS = {'identifier': 'hdmv_pgs_subtitle', 'format': 'sup', 'extension': 'sup' , 'label': 'PGS'} PGS = {'identifier': 'hdmv_pgs_subtitle', 'format': 'sup', 'extension': 'sup' , 'label': 'PGS'}

View File

@@ -2,7 +2,7 @@
. ~/.local/share/ffx.venv/bin/activate . ~/.local/share/ffx.venv/bin/activate
pushd ~/.local/src/ffx/ pushd ~/.local/src/ffx/
git checkout main git checkout "${1:-main}"
git pull git pull
pip install --editable . pip install --editable .
popd popd