{"id":18421888,"url":"https://github.com/mihaiolteanu/lastag","last_synced_at":"2025-04-07T14:31:58.450Z","repository":{"id":83101425,"uuid":"84725501","full_name":"mihaiolteanu/lastag","owner":"mihaiolteanu","description":"tag mp3 files with music genres from last.fm","archived":false,"fork":false,"pushed_at":"2017-03-12T13:08:30.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T12:47:33.470Z","etag":null,"topics":["cmus","lastfm","mp3"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/mihaiolteanu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-12T12:56:38.000Z","updated_at":"2023-03-14T09:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d28cc0b4-4a37-46ca-bfb6-c0ee675c13ea","html_url":"https://github.com/mihaiolteanu/lastag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaiolteanu%2Flastag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaiolteanu%2Flastag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaiolteanu%2Flastag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihaiolteanu%2Flastag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mihaiolteanu","download_url":"https://codeload.github.com/mihaiolteanu/lastag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247669972,"owners_count":20976487,"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":["cmus","lastfm","mp3"],"created_at":"2024-11-06T04:27:12.090Z","updated_at":"2025-04-07T14:31:58.441Z","avatar_url":"https://github.com/mihaiolteanu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lastag - tag mp3 files with music genres from last.fm\n\nCmus is great. One of the many nice features is the filter. Live filtering, saving filters,\ncombining filters, filter by genre, year, duration. All that. Depending on the mood, I\nlike to only listen to certain genres, but the mp3 files are not always helping. Genre tags\nare either missing or they use the id3v1 tags, with only 255 genres available. Well, metal\nhas hundreds of variations, so that is close to useless.\n\nLuckly, last.fm has all that I need in the genres arena. Every artist page has up to five\ngenre tags. So I'm grabing those and sticking them onto the mp3 files using id3v2. Job done.\nNow I can filter away. Sweet.\n\n## features\n- tag a single mp3 file\n- tag all the mp3 files in the given folder\n- daemon mode; tag all new mp3 files added to that folder, recursively. If a flac file is\nadded instead, create nice little mp3 files out of that, and tag those. That is, until\ncmus can [filter flac](https://github.com/cmus/cmus/issues/654) files. Of course, you might\nwant to either remove the flac file afterwards or only add the mp3 file to the cmus library.\nOr even better, filter only the mp3 files\n- with no parameters, echo the genre of the current playing song in cmus and exit\n- Read -h for all the stuff\n\n## install\n``` shell\n    sudo pacman -S id3v2 inotify-tools mp3splt\n    git clone https://github.com/mihaiolteanu/lastag\n    cd lastag\n    sudo ./install.zsh\n```\n\n## usage\nIf you don't want the flac splitting, remove the mp3splt references from above and the install\nfile. Also remove the `elif` body from the `add_genres_to_file` function in the main application.\n\n## bugs and stuff\nFile a complaint, I'll have a look.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihaiolteanu%2Flastag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmihaiolteanu%2Flastag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihaiolteanu%2Flastag/lists"}