Skip to content

Instantly share code, notes, and snippets.

View cpeel's full-sized avatar

Casey Peel cpeel

View GitHub Profile
@cpeel
cpeel / import-playlist-plex.py
Created August 22, 2020 00:21
Import playlists into Plex using plexapi
#!/usr/bin/env python3
"""
Import playlists into a local Plex server. I used this to import my Google Play
Music playlists when it was being sunset. This consumes the JSON output by my
playlist-reconstructor.py at https://gist.github.com/cpeel/e18d3e1d6f9881039b6a2e024fb5dce1
The script will die if it can't find a track, only creates a playlist if it can
find all the tracks, and will skip playlists that already exist. This allows the
script to be used in an iterative process by tweaking the track title contents
@cpeel
cpeel / playlist-reconstructor.py
Last active December 9, 2020 22:09
Reconstruct your playlists from a Google Play Music Takeout export
#!/usr/bin/env python3
r"""
playlist-reconstructor.py will rebuild your Google Play Music (GPM) playlists
into a JSON file from a Google Takeout export.
To use this script:
1. Export your Google Play Music from https://takeout.google.com/settings/takeout
Yes, you have to download the whole thing. Google puts each playlist track into
its own individual .csv file and these are spread through the whole download
@cpeel
cpeel / keybase.md
Created August 16, 2016 20:19
keybase.md

Keybase proof

I hereby claim:

  • I am cpeel on github.
  • I am cpeel (https://keybase.io/cpeel) on keybase.
  • I have a public key whose fingerprint is 10BC 6F12 34D9 24A3 598C 14F6 4E75 767A 1DEA 5C0B

To claim this, I am signing this object: