{"id":16133707,"url":"https://github.com/futuresharks/spotify-m3u-import","last_synced_at":"2025-03-18T15:30:56.941Z","repository":{"id":159786743,"uuid":"76276659","full_name":"FutureSharks/spotify-m3u-import","owner":"FutureSharks","description":"A script to import a m3u playlist into Spotify","archived":false,"fork":false,"pushed_at":"2016-12-14T17:51:15.000Z","size":3,"stargazers_count":15,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T10:19:05.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FutureSharks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-12-12T16:54:29.000Z","updated_at":"2024-09-11T14:57:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b032269-33c2-44a9-bf41-7127eb61e838","html_url":"https://github.com/FutureSharks/spotify-m3u-import","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/FutureSharks%2Fspotify-m3u-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureSharks%2Fspotify-m3u-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureSharks%2Fspotify-m3u-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureSharks%2Fspotify-m3u-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FutureSharks","download_url":"https://codeload.github.com/FutureSharks/spotify-m3u-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933439,"owners_count":20370986,"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":[],"created_at":"2024-10-09T22:45:26.257Z","updated_at":"2025-03-18T15:30:56.936Z","avatar_url":"https://github.com/FutureSharks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spotify-m3u-import\n\nA small python script to create a Spotify playlist from a m3u playlist file.\n\nIt will:\n\n  - Read each entry in the playlist file\n  - Read the IDv3 tags from each MP3 file\n  - If there are no IDv3 tags it will attempt guess the artist and title from the file name\n  - Use this data to find a track on Spotify\n  - Create a Spotify playlist using the results\n\n## Installation and requirements\n\nInstall python modules:\n\n```\npip install -r requirements.txt\n```\n\nTake 5 mins to register an app to get access to the Spotify API:\n\nhttps://developer.spotify.com/my-applications/#!/\n\nThe Redirect URI doesn't need to be valid, it can be a non-existant domain.\n\nExport Spotify related environment variables from your new app:\n\n```\nexport SPOTIPY_CLIENT_ID='your-spotify-client-id'\nexport SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'\nexport SPOTIPY_REDIRECT_URI='your-app-redirect-url'\n```\n\n## Example\n\n```\n$ ./read-id3-tags.py --help\nusage: read-id3-tags.py [-h] -f FILE -u USERNAME [-d]\n\nA script to import a m3u playlist into Spotify\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f FILE, --file FILE  Path to m3u playlist file\n  -u USERNAME, --username USERNAME\n                        Spotify username\n  -d, --debug           Debug mode\n$ \n$ ./read-id3-tags.py -f my_playlist.m3u -u my_username\nParsed 3 tracks from my_playlist.m3u\n\ntracks/inspectah deck - the movement - 12 - vendetta.mp3\nIDv3 tag data: Inspectah Deck - Vendetta\nGuess from filename: Not required\nSpotify: Inspectah Deck - Vendetta, 23GoX2Usy1Ios5zCVRIIAO\n\ntracks/darude-sandstorm.mp3\nIDv3 tag data: None\nGuess from filename: darude - sandstorm\nSpotify: Darude - Sandstorm - Extended, 7ikiyBfgcVuAKAwZXXkWVT\n\ntracks/dave spoon - at night (shadow child \u0026 t. williams re-vibe).mp3\nIDv3 tag data: None\nGuess from filename: dave spoon - at night (shadow child \u0026 t. williams re\nSpotify: Dave Spoon - At Night - Shadow Child \u0026 T. Williams Re-vibe, 1JEA273o693GwuI39gayHk\n\n3/3 of tracks matched on Spotify, creating playlist \"my_playlist.m3u\" on Spotify... done\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturesharks%2Fspotify-m3u-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturesharks%2Fspotify-m3u-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturesharks%2Fspotify-m3u-import/lists"}