8000 Can't use it in a bash script · Issue #56 · moehmeni/syncedlyrics · GitHub
[go: up one dir, main page]

Skip to content

Can't use it in a bash script #56

Open

Description

@Lowrida

For some stupid reason i can't use this program in a bash script!
On the cli it finds the song, when i try it from a bash script and add strings to the search_term it can't find the song!

CLI no problem!

syncedlyrics -v "BluesOwen Campbell Days Like This (Van Morrison Cover)Owen Cambell"
DEBUG:syncedlyrics:Looking for an LRC on Musixmatch
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): apic-desktop.musixmatch.com:443
DEBUG:urllib3.connectionpool:https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=BluesOwen+Campbell+Days+Like+This+%28Van+Morrison+Cover%29Owen+Cambell&page_size=5&page=1&app_id=web-desktop-app-v1.0&usertoken=241113adf3b241a4b9f68fde3acff0610c46aaaeaad65fea6f024b&t=1731537019895 HTTP/1.1" 301 0
DEBUG:urllib3.connectionpool:https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=BluesOwen+Campbell+Days+Like+This+%28Van+Morrison+Cover%29Owen+Cambell&page_size=5&page=1&app_id=web-desktop-app-v1.0&usertoken=241113adf3b241a4b9f68fde3acff0610c46aaaeaad65fea6f024b&t=1731537019895 HTTP/1.1" 200 2360
DEBUG:urllib3.connectionpool:https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.subtitle.get?track_id=998168&subtitle_format=lrc&app_id=web-desktop-app-v1.0&usertoken=241113adf3b241a4b9f68fde3acff0610c46aaaeaad65fea6f024b&t=1731537020414 HTTP/1.1" 200 2226
INFO:syncedlyrics:Lyrics found for "BluesOwen Campbell Days Like This (Van Morrison Cover)Owen Cambell" on Musixmatch
[00:12.03] When it's not always raining there'll be days like this
[00:17.08] When there's no one complaining there'll be days like this
[00:22.21] When everything falls into place like the flick of a switch
[00:27.56] Well my mama told me there'll be days like this
[00:35.55] When you don't need to worry there'll be days like this
[00:40.66] When no one's in a hurry there'll be days like this
[00:45.82] When you don't get betrayed by that old Judas kiss
[00:51.25] Oh my mama told me there'll be days like this
[00:59.03] When you don't need an answer there'll be days like this
[01:04.22] When you don't meet a chancer there'll be days like this
[01:09.24] When all the parts of the puzzle start to look like they fit
[01:14.70] Then I must remember there'll be days like this
[01:40.60] (There'll be days like this)
[01:45.81] When everyone is up front and they're not playing tricks
[01:51.02] When you don't have no freeloaders out to get their kicks
[01:55.93] When it's nobody's business the way that you wanna live
[02:01.29] I just have to remember there'll be days like this
[02:08.58] When no one steps on my dreams there'll be days like this
[02:13.48] When people understand what I mean there'll be days like this
[02:19.15] When you ring out the changes of how everything is
[02:24.30] Well, my mama told me there'll be days like this
[02:31.93] Oh na na, nana nana
[02:36.94] Oh na na, nana nana
[02:47.46] Oh, my mama told me there'll be days like this
[02:52.39] Oh, my mama told me there'll be days like this
[02:57.28] Oh, my mama told me there'll be days like this
[03:02.30] Oh, my mama told me there'll be days like this
[03:07.79] 

Running this bash script, problem!

#!/bin/bash
artist="Blues - Owen Campbell"
title="Days Like This (Van Morrison Cover)"
syncedlyrics -v "$artist - $title"
DEBUG:syncedlyrics:Looking for an LRC on Musixmatch
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): apic-desktop.musixmatch.com:443
DEBUG:urllib3.connectionpool:https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=Blues+-+Owen+Campbell+-+Days+Like+This+%28Van+Morrison+Cover%29&page_size=5&page=1&app_id=web-desktop-app-v1.0&usertoken=241113adf3b241a4b9f68fde3acff0610c46aaaeaad65fea6f024b&t=1731537153638 HTTP/1.1" 301 0
DEBUG:urllib3.connectionpool:https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.search?q=Blues+-+Owen+Campbell+-+Days+Like+This+%28Van+Morrison+Cover%29&page_size=5&page=1&app_id=web-desktop-app-v1.0&usertoken=241113adf3b241a4b9f68fde3acff0610c46aaaeaad65fea6f024b&t=1731537153638 HTTP/1.1" 200 2287
DEBUG:urllib3.connectionpool:https://apic-desktop.musixmatch.com:443 "GET /ws/1.1/track.subtitle.get?track_id=85148147&subtitle_format=lrc&app_id=web-desktop-app-v1.0&usertoken=241113adf3b241a4b9f68fde3acff0610c46aaaeaad65fea6f024b&t=1731537154260 HTTP/1.1" 200 111
DEBUG:syncedlyrics:No suitable lyrics found on Musixmatch, continuing search...
DEBUG:syncedlyrics:Looking for an LRC on Lrclib
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): lrclib.net:443
DEBUG:urllib3.connectionpool:https://lrclib.net:443 "GET /api/search?q=Blues+-+Owen+Campbell+-+Days+Like+This+%28Van+Morrison+Cover%29 HTTP/1.1" 200 2
DEBUG:syncedlyrics:No suitable lyrics found on Lrclib, continuing search...
DEBUG:syncedlyrics:Looking for an LRC on NetEase
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): music.163.com:443
DEBUG:urllib3.connectionpool:https://music.163.com:443 "GET /api/search/pc?limit=10&type=1&offset=0&s=Blues+-+Owen+Campbell+-+Days+Like+This+%28Van+Morrison+Cover%29 HTTP/1.1" 200 None
DEBUG:syncedlyrics:No suitable lyrics found on NetEase, continuing search...
DEBUG:syncedlyrics:Looking for an LRC on Megalobiz
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.megalobiz.com:443
DEBUG:urllib3.connectionpool:https://www.megalobiz.com:443 "GET /search/all?qry=Blues+-+Owen+Campbell+-+Days+Like+This+(Van+Morrison+Cover)&searchButton.x=0&searchButton.y=0 HTTP/1.1" 500 None
DEBUG:syncedlyrics:No suitable lyrics found on Megalobiz, continuing search...
DEBUG:syncedlyrics:Looking for an LRC on Genius
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): genius.com:443
DEBUG:urllib3.connectionpool:https://genius.com:443 "GET /api/search/multi?per_page=5&q=&q=Blues+-+Owen+Campbell+-+Days+Like+This+%28Van+Morrison+Cover%29&per_page=5 HTTP/1.1" 200 None
DEBUG:syncedlyrics:No suitable lyrics found on Genius, continuing search...
INFO:syncedlyrics:No suitable lyrics found for "Blues - Owen Campbell - Days Like This (Van Morrison Cover)" :(

Activity

  1. dkaszews commented on Jun 6, 2025

    @dkaszews

    Your searches are not identical, so unlikely that it has anything to do with being run inside bash script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0