removed prefix(30) and version property

This commit is contained in:
eevee
2024-05-15 23:06:31 +03:00
parent d1d6b60247
commit 885d68e7e4
3 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ struct LrcLibLyricsDataSource {
init() {
let configuration = URLSessionConfiguration.default
configuration.httpAdditionalHeaders = [
"User-Agent": "EeveeSpotify v3.0 https://github.com/whoeevee/EeveeSpotify"
"User-Agent": "EeveeSpotify v\(EeveeSpotify.version) https://github.com/whoeevee/EeveeSpotify"
]
session = URLSession(configuration: configuration)

View File

@@ -15,7 +15,6 @@ extension String {
self
.removeMatches("\\(.*\\)")
.removeMatches("- .*")
.prefix(30)
.trimmingCharacters(in: .whitespaces)
)
}

View File

@@ -23,6 +23,8 @@ class URLHook: ClassHook<NSURL> {
struct EeveeSpotify: Tweak {
static let version = "3.1"
init() {
do {