{"id":15587669,"url":"https://github.com/sunny/anyplayer","last_synced_at":"2025-06-11T02:05:34.657Z","repository":{"id":51541001,"uuid":"1265458","full_name":"sunny/anyplayer","owner":"sunny","description":"Interact with the currently running music player. Supports iTunes Mac, iTunes Windows, Spotify Mac, Rdio Mac, MPD, Rhythmbox, Amarok and XMMS2.","archived":false,"fork":false,"pushed_at":"2022-08-02T11:43:37.000Z","size":91,"stargazers_count":50,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-28T12:48:28.134Z","etag":null,"topics":["amarok","itunes-windows","mpd","music","music-console","music-player","rhythmbox","ruby","spotify-mac","xmms2"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunny.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-18T00:32:10.000Z","updated_at":"2024-07-11T02:14:49.000Z","dependencies_parsed_at":"2022-08-22T05:01:05.720Z","dependency_job_id":null,"html_url":"https://github.com/sunny/anyplayer","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fanyplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fanyplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fanyplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fanyplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunny","download_url":"https://codeload.github.com/sunny/anyplayer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fanyplayer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259184740,"owners_count":22818267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amarok","itunes-windows","mpd","music","music-console","music-player","rhythmbox","ruby","spotify-mac","xmms2"],"created_at":"2024-10-02T22:02:49.749Z","updated_at":"2025-06-11T02:05:34.633Z","avatar_url":"https://github.com/sunny.png","language":"Ruby","readme":"Anyplayer\n=========\n\n[![Gem Version](https://badge.fury.io/rb/anyplayer.png)](http://badge.fury.io/rb/anyplayer)\n[![Build Status](https://travis-ci.org/sunny/anyplayer.png)](https://travis-ci.org/sunny/anyplayer)\n\nInteracts with the currently running music player.\nSupports iTunes Mac, iTunes Windows, Spotify Mac, Rdio Mac, MPD, Rhythmbox, Amarok and XMMS2.\n\nInstall\n-------\n\n```sh\n$ gem install anyplayer\n```\n\nUse it in your terminal\n-----------------------\n\n```sh\n$ anyplayer artist     # artist of the current track\nNew Order\n$ anyplayer track      # name of the current track\nBlue Monday\n$ anyplayer album\nPower, Corruption \u0026 Lies\n$ anyplayer next       # changes track forward\n$ anyplayer prev       #               backward\n$ anyplayer playpause  # pauses if it is playing, plays if it's paused\n$ anyplayer play\n$ anyplayer pause\n$ anyplayer voldown    # put the volume somewhat up\n$ anyplayer volup      #                         down\n$ anyplayer volume     # prints the volume percentage\n100\n$ anyplayer vote       # votes to go to next song (default number of votes is 5)\n$ anyplayer name\niTunes\n$ anyplayer launched \u0026\u0026 echo \"a player is running\" || echo \"nothing running\"\na player is running\n```\n\nOr in Ruby\n----------\n\nIn your Gemfile:\n\n```rb\n# Interact with the current music player\ngem \"anyplayer\"\n```\n\nIn your code:\n\n```ruby\nrequire \"anyplayer\"\nplayer = Anyplayer::Selector.new.player\n\nplayer.launched? # =\u003e true\nplayer.name # =\u003e Rythmbox\nplayer.artist # =\u003e \"The Avalanches\"\nplayer.track # =\u003e \"Frontier Psychiatrist\"\n# …\n```\n\nOr in a browser\n----------------\n\nWith the [So Nice](https://github.com/sunny/so-nice/) Web interface:\n\n![So Nice Screenshot](https://github.com/sunny/so-nice/raw/gh-pages/screenshot.png)\n\n\nContribute!\n-----------\n\nAll contributions are welcome! Head to the [Github issues](https://github.com/sunny/anyplayer/issues) to report bugs, questions or code. Also, check out `CONTRIBUTING.md`.\n\nHere a few useful commands while developping:\n\n```sh\n$ ruby -Ilib bin/anyplayer  # Use the anyplayer command-line from source\n$ bin/rake test             # Launch tests\n$ bin/rake install          # Install from source\n$ bin/rake console          # Launch console\n```\n\n\nLicense\n-------\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny%2Fanyplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunny%2Fanyplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny%2Fanyplayer/lists"}