This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |