Skip to content

Commit

Permalink
Merge pull request #296 from bohning/bugfixes
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
bohning authored Oct 12, 2024
2 parents d8d3de7 + 20c7d63 commit 10b046f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/usdb_syncer/gui/forms/SettingsDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,19 @@
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_video_embed_artwork">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Embed artwork:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="checkBox_video_embed_artwork">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
Expand Down
2 changes: 2 additions & 0 deletions src/usdb_syncer/gui/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def __init__(self, parent: QWidget, song: UsdbSong | None) -> None:
self._load_settings()
self._setup_path_template()
self._browser = self.comboBox_browser.currentData()
self.label_video_embed_artwork.setVisible(False)
self.checkBox_video_embed_artwork.setVisible(False)
self.groupBox_reencode_video.setVisible(False)

def _populate_comboboxes(self) -> None:
Expand Down
4 changes: 2 additions & 2 deletions src/usdb_syncer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def __str__(self) -> str:
case Encoding.UTF_8:
return "UTF-8"
case Encoding.UTF_8_BOM:
return "UTF-8 BOM"
return "UTF-8 BOM (legacy support for older Vocaluxe versions)"
case Encoding.CP1252:
return "CP1252"
return "CP1252 (legacy support for older USDX CMD)"
case _ as unreachable:
assert_never(unreachable)

Expand Down
2 changes: 1 addition & 1 deletion src/usdb_syncer/song_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def _get_usdb_data(song_id: SongId, logger: Log) -> tuple[SongDetails, SongTxt]:
txt = SongTxt.parse(txt_str, logger)
txt.sanitize()
txt.headers.creator = txt.headers.creator or details.uploader or None
txt.headers.tags = ", ".join(details.comment_tags())
txt.headers.tags = ", ".join(details.comment_tags()) or None
return details, txt


Expand Down

0 comments on commit 10b046f

Please sign in to comment.