Created
July 12, 2017 12:58
-
-
Save blacktwin/df58032de3e6f4d29f7ea562aeaebbab to your computer and use it in GitHub Desktop.
Find full path for Plex items.
This file contains 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
from plexapi.server import PlexServer | |
PLEX_URL = 'http://localhost:32400' | |
PLEX_TOKEN = 'xxxxx' | |
plex = PlexServer(PLEX_URL, PLEX_TOKEN) | |
sections = plex.library.sections() | |
titles = [titles for libraries in sections for titles in libraries.search('star')] | |
for title in titles: | |
try: | |
print(''.join([x.file for x in title.iterParts()])) | |
except Exception: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to find the path of whatever is playing on Plex using PlexPy?