{"action":"created","issue":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/652","repository_url":"https://api.github.com/repos/savonet/liquidsoap","labels_url":"https://api.github.com/repos/savonet/liquidsoap/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/savonet/liquidsoap/issues/652/comments","events_url":"https://api.github.com/repos/savonet/liquidsoap/issues/652/events","html_url":"https://github.com/savonet/liquidsoap/issues/652","id":379340309,"node_id":"MDU6SXNzdWUzNzkzNDAzMDk=","number":652,"title":"Liquidsoap 1.3.4 not working with custom crossfade","user":{"login":"wizbox","id":2085595,"node_id":"MDQ6VXNlcjIwODU1OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2085595?v=4","gravatar_id":"","url":"https://api.github.com/users/wizbox","html_url":"https://github.com/wizbox","followers_url":"https://api.github.com/users/wizbox/followers","following_url":"https://api.github.com/users/wizbox/following{/other_user}","gists_url":"https://api.github.com/users/wizbox/gists{/gist_id}","starred_url":"https://api.github.com/users/wizbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizbox/subscriptions","organizations_url":"https://api.github.com/users/wizbox/orgs","repos_url":"https://api.github.com/users/wizbox/repos","events_url":"https://api.github.com/users/wizbox/events{/privacy}","received_events_url":"https://api.github.com/users/wizbox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"toots","id":871060,"node_id":"MDQ6VXNlcjg3MTA2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/871060?v=4","gravatar_id":"","url":"https://api.github.com/users/toots","html_url":"https://github.com/toots","followers_url":"https://api.github.com/users/toots/followers","following_url":"https://api.github.com/users/toots/following{/other_user}","gists_url":"https://api.github.com/users/toots/gists{/gist_id}","starred_url":"https://api.github.com/users/toots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toots/subscriptions","organizations_url":"https://api.github.com/users/toots/orgs","repos_url":"https://api.github.com/users/toots/repos","events_url":"https://api.github.com/users/toots/events{/privacy}","received_events_url":"https://api.github.com/users/toots/received_events","type":"User","site_admin":false},"assignees":[{"login":"toots","id":871060,"node_id":"MDQ6VXNlcjg3MTA2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/871060?v=4","gravatar_id":"","url":"https://api.github.com/users/toots","html_url":"https://github.com/toots","followers_url":"https://api.github.com/users/toots/followers","following_url":"https://api.github.com/users/toots/following{/other_user}","gists_url":"https://api.github.com/users/toots/gists{/gist_id}","starred_url":"https://api.github.com/users/toots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toots/subscriptions","organizations_url":"https://api.github.com/users/toots/orgs","repos_url":"https://api.github.com/users/toots/repos","events_url":"https://api.github.com/users/toots/events{/privacy}","received_events_url":"https://api.github.com/users/toots/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-09T22:13:33Z","updated_at":"2018-11-09T22:42:12Z","closed_at":null,"author_association":"NONE","body":"I am using the following code for a custom crossfade what supports jingles:\r\n\r\n```\r\ndef my_crossfade(s) =\r\n  def f(_,_, old_m, new_m, old, new) =\r\n    if old_m[\"genre\"] != \"myradio\" and new_m[\"genre\"] != \"myradio\" then\r\n      add([fade.initial(new), fade.final(old)])\r\n    else\r\n      log(\"Old or new file is a jingle: sequenced transition.\")\r\n      sequence([old,new])\r\n    end\r\n end\r\n smart_cross(f,s)\r\nend\r\n```\r\n\r\nThis works perfectly on liquidsoap 1.3.3, however, on liquidsoap 1.3.4, the jingles are detected in the logs but when they are played, silence happens instead?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/comments/437518066","html_url":"https://github.com/savonet/liquidsoap/issues/652#issuecomment-437518066","issue_url":"https://api.github.com/repos/savonet/liquidsoap/issues/652","id":437518066,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzUxODA2Ng==","user":{"login":"toots","id":871060,"node_id":"MDQ6VXNlcjg3MTA2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/871060?v=4","gravatar_id":"","url":"https://api.github.com/users/toots","html_url":"https://github.com/toots","followers_url":"https://api.github.com/users/toots/followers","following_url":"https://api.github.com/users/toots/following{/other_user}","gists_url":"https://api.github.com/users/toots/gists{/gist_id}","starred_url":"https://api.github.com/users/toots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toots/subscriptions","organizations_url":"https://api.github.com/users/toots/orgs","repos_url":"https://api.github.com/users/toots/repos","events_url":"https://api.github.com/users/toots/events{/privacy}","received_events_url":"https://api.github.com/users/toots/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T22:42:12Z","updated_at":"2018-11-09T22:42:12Z","author_association":"MEMBER","body":"First test script fails to reproduce:\r\n\r\n```\r\ndef my_crossfade(s) =\r\n  def f(_,_, old_m, new_m, old, new) =\r\n    if old_m[\"genre\"] != \"myradio\" and new_m[\"genre\"] != \"myradio\" then\r\n      add([fade.initial(new), fade.final(old)])\r\n    else\r\n      log(\"Old or new file is a jingle: sequenced transition.\")\r\n      sequence([old,new])\r\n    end\r\n end\r\n smart_cross(f,s)\r\nend\r\n\r\nmyradio = playlist(prefix=\"annotate:genre=\\\"myradio\\\":\",\"~/music\")\r\njingles = playlist(prefix=\"annotate:genre=\\\"jingles\\\":\",\"~/music\")\r\n\r\ns = rotate([myradio,jingles])\r\n\r\ns = my_crossfade(s)\r\n\r\noutput.ao(fallible=true,s)\r\n```\r\n\r\nCould you share more from your script? Thks!"}}
{"actor":{"display_login":"toots"}}