Commit 05d8576

xxwhirlpool  ·  2026-04-05 22:37:13 -0400 EDT
parent f519bbe
yolo
2 files changed,  +8, -4
+5, -3
......@@ -4,12 +4,14 @@ tracking my plex library & stuff
44
55 ## plex_playlists.py
66
7-- exports to ~/Scripts/plex/playlists
7+- exports to `~/Scripts/plex/playlists`
88 - each filename is the title of the playlist + `.txt`
9-- each track is formatted as "Artist - Song"
9+- each track is formatted as `Artist - Song`
1010 - only works for music playlists
1111 - no track numbers; add them with `cat -n [FILENAME]`
1212
1313 ### usage
1414
15-`plex_playlist.py [TOKEN IN QUOTES]`
15+```bash
16+plex_playlist.py [TOKEN]
17+```
+3, -1
......@@ -6,7 +6,7 @@
66 # ]
77 # ///
88
9-# USAGE: plex_playlist.py [TOKEN IN QUOTES]
9+# USAGE: plex_playlist.py [TOKEN]
1010 # this is such script kiddie shit idk python
1111
1212 from plexapi.server import PlexServer
......@@ -27,5 +27,7 @@ for list in plex.playlists(playlistType="audio"):
2727 albumArtist = i.grandparentTitle
2828 if artist == None:
2929 artist = albumArtist + " - "
30+ else:
31+ artist = i.originalTitle + " - "
3032 pl_file.write(artist + title + "\n")
3133 pl_file.close()