lfm2ytm generates a YouTube (Music) playlist consisting of hot tracks (i.e., most played songs) in Last.fm.
- Generate a YouTube (Music) playlist automatically based on playcounts in Last.fm
- Try to search art tracks in YouTube
- Only print hot tracks in Last.fm running with
--dryrun
./lfm2ytm \
-secretjson=./client_secret.json \
-fromdate=2017-07-11T00:00:00+09:00 \
-todate=2017-07-18T23:59:59+09:00 \
-region=JP \
-lfmmax=10 \
tsubasaogawaResults
✔ Start A Fire - John Legend - Topic (3 times; id=dwTRnPtpSSk)
✔ Herman’s Habit - Justin Hurwitz - Topic (2 times; id=zwiy2EfS0GY)
✔ Planetarium - Justin Hurwitz - Topic (2 times; id=qV1KxmGDkk8)
✔ City Of Stars (Humming) - Justin Hurwitz - Topic (2 times; id=AR1YYN4-qYE)
✔ 'City of Stars' (Duet ft. Ryan Gosling, Emma Stone) - La La Land Original Motion Picture Soundtrack - Interscope Records (2 times; id=GTWqwSNQCcg)
✔ 2 Unlimited - No Limit (RM Radio Edit) - Dove White (1 times; id=q-6EgZZHuds)
✔ Chumbawamba - Tubthumping - ChumbawambaVEVO (1 times; id=2H5uWRjFsGc)
✔ CUBIC 22 / NIGHT IN MOTION (K-Groove Mix) - DancemaniaMania (1 times; id=DN8_52mDDw4)
✔ Dj Miko - What's Up 2000 - Saifam Music (1 times; id=lG86oPotqRU)
✔ Green Flower Street - Donald Fagen - Topic (1 times; id=SoHyj8i8Ywo)
https://developers.google.com/youtube/v3/getting-started
https://developers.google.com/youtube/v3/guides/auth/installed-apps
- Choose "Desktop Application"
See the example.
On the first run, a URL for OAuth authorization is shown. Open it in a browser and proceed with authorization. When an error occurs trying to connect to localhost, copy the code=XXX value from that URL and enter it in the console to finish authorization.
Note
Code is: 8/0Ab32j92XDMCT7-5e6aT8w8gTIxx7UnN5EvS4xAJoTxxIIRiBOoVbFexYxxxvV7n-LvXPw
See command_help.md
- Check your Google client secret json file.
- Delete
~/.config/lfm2ytm/token.jsonand try running the application again.
- Please wait for a minute and retry.
- Fork this repository.
- Chdir and
go mod tidy - Do implements.
- Run
LASTFM_API_KEY=<your lastfm api key> go run main.go [options] - Create a pull-request.

