Get lyrics demo project failing

44 views
Skip to first unread message

Richard Wallace

unread,
Jul 24, 2019, 4:43:37 PM7/24/19
to Tasker
Trying out the project from João to Fran song lyrics from genius and the %lyroxs variable always returns empty?
Get Lyrics (59)
Abort Existing Task
A1: Variable Set [ Name:%par1 To:Muse hysteria Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:0 ] If [ %par1 !Set ]
A2: Variable Set [ Name:%track To:%par1 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:0 ] If [ %par1 Set ]
A3: Flash [ Text:%track Long:Off ]
A4: If [ %track !Set ]
A5: Flash [ Text:No track to get lyrics from... Long:Off ]
A6: Stop [ With Error:Off Task: ] If [ %track_name !Set ]
A7: End If
A8: HTTP Auth [ Method:OAuth 2.0 Client ID:AKg03BqnPdr9fmZ7zjFiXrF8Et9WSI5CVfJlN81fjYXfKVGsHZE7-xpUGQ8TWFI7 Client Secret:_M9VvG-Z_opeag39FFfrGCXuvsTRW8kwD1lb8CNQYPC0l9c5ecPpvwzn8WlC3kv_T5FxACqIR99JPopdQm6xDw Endpoint To Get Code:https://api.genius.com/oauth/authorize Endpoint To Get Refresh Token:https://api.genius.com/oauth/token Scopes:me Force Re-Authentication:On Timeout (Seconds):30 Username: Password: ]
A9: HTTP Request [ Method:GET URL:https://api.genius.com/search Headers:%http_auth_headers Query Parameters:q:%track Body: File To Send: File To Save With Output: Timeout (Seconds):30 Trust Any Certificate:Off ]
A10: Set Clipboard [ Text:%http_data Add:Off ]
A11: AutoTools Json Read [ Configuration:Simple Mode: true
Json: %http_data
Fields: url
Variable Name: result_url1
Separator: , Timeout (Seconds):60 ]
A12: [X] Variable Split [ Name:%http_data Splitter:"url": Delete Base:On ]
A13: [X] Variable Split [ Name:%http_data2 Splitter:" Delete Base:On ]
A14: [X] Variable Set [ Name:%result_url1 To:%http_data22 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3 ]
A15: [X] AutoWeb Web Service [ Configuration:API: Genius
API Action: Search
Exact: true
Filter Type: song Timeout (Seconds):120 ]
A16: AutoTools HTML Read [ Configuration:URL: %result_url1
CSS Queries: .lyrics
Variable Names: lyrics
Output HTML: true Timeout (Seconds):60 ]
A17: Variable Set [ Name:%line To:
Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:0 ]
A18: AutoTools Text [ Configuration:Text: %lyrics
Variable Name: lyrics
Replacements: </?a[^>]*>=:=@@@<br>=:=
@@@</?p>=:=@@@<!--/?sse-->@@@</?b>=:=@@@</?i>=:=
Regex: true
Joiner Variable: atjoinedtext
Separator: @@@ Timeout (Seconds):60 ]
A19: Flash [ Text:%lyrics Long:Off ]
A20: Return [ Value:%lyrics Stop:On ]

João Dias

unread,
Jul 25, 2019, 6:28:01 AM7/25/19
to tas...@googlegroups.com
Hi. Try updating the project from the Taskernet link again :) I fixed an issue it had.

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/827bace7-3a20-46ee-bdfd-ddd1551efd28%40googlegroups.com.

Richard Wallace

unread,
Jul 25, 2019, 10:54:59 AM7/25/19
to Tasker
yep, can confirm it works!
I cant see what the change was though!
To unsubscribe from this group and stop receiving emails from it, send an email to tas...@googlegroups.com.

João Dias

unread,
Jul 25, 2019, 11:01:47 AM7/25/19
to tas...@googlegroups.com
It was that it was getting the wrong URL from the genius API in some situations :)


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/2e014e7d-e4cf-48bc-8cb8-450d2e9b78ac%40googlegroups.com.

billybobjoe the650th

unread,
Dec 8, 2021, 10:44:22 AM12/8/21
to Tasker
It's broken again, It appears to be getting the right link, but the "%lyrics" variable is not getting set
Reply all
Reply to author
Forward
0 new messages