

{"id":2051,"date":"2018-03-27T20:58:16","date_gmt":"2018-03-27T18:58:16","guid":{"rendered":"https:\/\/fabsk.eu\/blog\/?p=2051"},"modified":"2018-03-27T21:08:18","modified_gmt":"2018-03-27T19:08:18","slug":"submit-songs-to-libre-fm-with-lastfmsubmitd-fork-and-amarok2librefm","status":"publish","type":"post","link":"https:\/\/fabsk.eu\/blog\/2018\/03\/27\/submit-songs-to-libre-fm-with-lastfmsubmitd-fork-and-amarok2librefm\/","title":{"rendered":"Submit songs to Libre.fm with lastfmsubmitd (fork) and Amarok2LibreFM (fork)"},"content":{"rendered":"<p><a href=\"https:\/\/amarok.kde.org\/\">Amarok<\/a> (Linux music player) does not have a native support to submit played songs to <a href=\"https:\/\/libre.fm\/\">Libre.fm<\/a>. It was possible with the script <a href=\"https:\/\/www.linux-apps.com\/content\/show.php\/Amarok2LibreFM?content=107339\">Amarok2LibreFM<\/a> for Amarok and the service <a href=\"http:\/\/www.red-bean.com\/decklin\/lastfmsubmitd\/\">lastfmsubmitd<\/a>. But I discovered (March 2018) that it stopped submitting songs. So I modified both of them:<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/github.com\/Fabiensk\/lastfmsubmitd\">lastfmsubmitd<\/a><\/strong>: This modified version only submit songs to Libre.fm, but works again (based on <a href=\"https:\/\/github.com\/pylast\/pylast\">pylast<\/a> library for submitting song).<\/li>\n<li><strong><a href=\"https:\/\/github.com\/Fabiensk\/Amarok2LibreFM\">Amarok2LibreFM<\/a><\/strong>: Submit the correct song length, and handle a <a href=\"https:\/\/bugs.kde.org\/show_bug.cgi?id=299180\">bug<\/a> that was present in Amarok 2.5 and 2.6.<\/li>\n<\/ul>\n<p>I suggest the following installation procedure:<\/p>\n<ul>\n<li>Download my copy of lastfmsubmitd in a directory in your home.<\/li>\n<li>Create a file ~\/.lastfmsubmitd\/conf with the your name and password like that:<\/li>\n<\/ul>\n<pre>[account]\r\nuser = my_account_name_in_lowercase\r\npassword = my_password<\/pre>\n<ul>\n<li>Download my copy of Amarok2LibreFM in this directory: \u00ab\u00a0<em>\/home\/MY_USER_NAME\/.kde\/share\/apps\/amarok\/scripts<\/em>\u00ab\u00a0. So you will have a directory \u00ab\u00a0<em>Amarok2LibreFM<\/em>\u00a0\u00bb under the directory \u00ab\u00a0<em>script<\/em>\u00ab\u00a0.<\/li>\n<li>Modify the file \u00ab\u00a0<em>Amarok2LibreFM\/main.js<\/em>\u00a0\u00bb so the variable \u00ab\u00a0<em>SUBMIT_CMD<\/em>\u00a0\u00bb points to your installation of <em>lastfmsubmitd<\/em>.<\/li>\n<li>Find a way to start automatically\u00a0<em>lastfmsubmitd<\/em> when you open your session. You can for example do that graphically using the KDE settings, or manually by creating a link \u00ab\u00a0<em>\/home\/MY_USER\/.config\/autostart-scripts\/lastfmsubmitd<\/em>\u00a0\u00bb that will point on the <em>lastfmsubmitd<\/em> script.<em><br \/>\n<\/em><\/li>\n<li>Just for this time, manually start <em>lastfmsubmitd<\/em>.<\/li>\n<li>Restart Amarok and play a song.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Amarok (Linux music player) does not have a native support to submit played songs to Libre.fm. It was possible with the script Amarok2LibreFM for Amarok and the service lastfmsubmitd. But I discovered (March 2018) that it stopped submitting songs. So I modified both of them: lastfmsubmitd: This modified version only submit songs to Libre.fm, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,19],"tags":[],"class_list":["post-2051","post","type-post","status-publish","format-standard","hentry","category-informatique","category-linux"],"_links":{"self":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/2051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/comments?post=2051"}],"version-history":[{"count":4,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions"}],"predecessor-version":[{"id":2055,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions\/2055"}],"wp:attachment":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/media?parent=2051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/categories?post=2051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/tags?post=2051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}