karaoke-lyrics-processor 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/PKG-INFO +1 -1
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/karaoke_lyrics_processor/karaoke_lyrics_processor.py +7 -4
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/pyproject.toml +1 -1
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/LICENSE +0 -0
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/README.md +0 -0
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/karaoke_lyrics_processor/__init__.py +0 -0
- {karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/karaoke_lyrics_processor/cli.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: karaoke-lyrics-processor
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.1
|
4
4
|
Summary: Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines
|
5
5
|
Home-page: https://github.com/karaokenerds/karaoke-lyrics-processor
|
6
6
|
License: MIT
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import re
|
2
2
|
import logging
|
3
3
|
import pyperclip
|
4
|
-
import unicodedata
|
5
4
|
import docx2txt
|
6
5
|
from striprtf.striprtf import rtf_to_text
|
7
6
|
import os
|
@@ -308,9 +307,13 @@ class KaraokeLyricsProcessor:
|
|
308
307
|
processed_lyrics_text = self.clean_punctuation_spacing(processed_lyrics_text)
|
309
308
|
|
310
309
|
self.processed_lyrics_text = processed_lyrics_text
|
311
|
-
|
312
|
-
|
313
|
-
|
310
|
+
|
311
|
+
# Try to copy to clipboard, but don't fail if it's not available
|
312
|
+
try:
|
313
|
+
pyperclip.copy(processed_lyrics_text)
|
314
|
+
self.logger.info("Processed lyrics copied to clipboard.")
|
315
|
+
except pyperclip.PyperclipException as e:
|
316
|
+
self.logger.warning(f"Could not copy to clipboard: {str(e)}")
|
314
317
|
|
315
318
|
return processed_lyrics_text
|
316
319
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "karaoke-lyrics-processor"
|
3
|
-
version = "0.4.
|
3
|
+
version = "0.4.1"
|
4
4
|
description = "Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines"
|
5
5
|
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
|
6
6
|
license = "MIT"
|
File without changes
|
File without changes
|
File without changes
|
{karaoke_lyrics_processor-0.4.0 → karaoke_lyrics_processor-0.4.1}/karaoke_lyrics_processor/cli.py
RENAMED
File without changes
|