Possibility to download multiple selected photos

bulk photo download is useful for making photo books, mugs, ordering prints, etc…

1 Like

+1 for me as well on bulk download an albums including favorites. My use case is that I want to load them onto a digital picture frame so it would be even better if I could choose the output resolution.

2 Likes

+1 for me on the batch download as well. I’d like to create a family Christmas album for my kids, and I can’t even download my own favorites photo album to put in a book for them. Can that be right? I can hardly believe it even though I see the comments here.

Hey man I edited your script slightly - it simply takes in some basic vars about the plex server and create the object that way without needing to get the token manually.

import os
from plexapi import utils
from plexapi.myplex import MyPlexAccount
import getpass


servername = input("Plex Server Namei : ")
username = input("Plex Username/email : ")
password = getpass.getpass('{0} - {1} Password: '.format(username, servername))


print("\nConnecting .......")
account = MyPlexAccount(username, password)
plex = account.resource(servername).connect()


# if no playlists/albums will select the first and only
playlists = [pl for pl in plex.playlists() if pl.isPhoto]
playlist = utils.choose('\nChoose Playlist', playlists, lambda pl: '%s' % pl.title)


for photo in playlist.items():

    photomediapart = photo.media[0].parts[0]

    print ('\nDownload File: %s' % os.path.basename(photomediapart.file))

    url = plex.url('%s?download=1' % photomediapart.key)
    directory = os.path.join(os.getcwd(), playlist.title)
    filename = os.path.basename(photomediapart.file)
    path = os.path.join(directory, filename)

    utils.download(url, account._token, filename, savepath=path, session=photo._server._session, showstatus=True )
1 Like

+1 for basic handling of photos!

Plex is improving as a server to throw all your pictures at for automatic storage, viewing and categorisation. The intelligent search (“Canada”, “dogs”, “beach”, “picnic” etc) is excellent. But once you’ve selected them you’re stuck. Plex will allow a download - of a single file, ignoring your selection. You can’t share your selection easily either.

PLEX is improving but as a trusted media server, falling short for simple tasks is a potential showstopper for users.

If there is a mechanism for getting features prioritised by Plex Product Management, I’d be happy to vote!

+1 to bulk download either let me download the whole album from a more menu on the album screen, or check individual images with multi select and download that way. Creating an album to download wold be ok for me.

I needed to create a Christmas photo album today and individual downloading was tedious.

+1 for bulk download of albums, folders etc.

Hi there,

Sorry for the noob question, but any chance you could explain how install/use this script?

Thanks.

Hi Mate,

Will expand the earlier instructions a little

  1. Python 3+
    https://www.python.org/downloads/
    Once installed, you run the interactive Python GUI called IDLE

  2. Python PlexApi https://github.com/pkkid/python-plexapi
    Dowload the package and unzip to following folder
    C:\Users\USER\AppData\Local\Programs\Python\Python37-32\Lib\site-packages

  3. Plex Auth Token for the User who has the Album (can be server owner or local user)
    https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
    This step only needed if using my version, I use this as I can set the local user but I wasn’t sure that would work with mooosethemucha’s version.

  4. Running…
    Create a script file somewhere (myscript.py), then from the Python Shell, File -> Open. On the script file that opens you can copy & paste one of the scripts from above and set the Auth Token if needed from step 3, then choose Run -> Run Module and the output will show up in the Python Shell window.

Good luck!

1 Like

Thanks so much! I followed all your steps but get the following error:

Traceback (most recent call last):
File “C:\Users\USER\Documents\Scripts\MyScript.py”, line 2, in **
from plexapi.server import PlexServer
ModuleNotFoundError: No module named ‘plexapi’**

I should say that I tried to install the Python PlexAPi previously by putting it in the Plex plugins folder but it didn’t show up under Plugins.

Thanks for any help!

UPDATE: OK I figured out that I had not installed the plexapi package properly. It is now installed, and I successfully ran the script, THANK YOU!

It is amazingly lame that Plex has STILL not implemented the ability to download multiple photos, but your script is awesome so thanks again :slight_smile:

Cool glad you got it sorted mate. There’s a few basic features missing from photos which is really frustrating after committing so much to using Plex…

What a waste of time. On Christmas Eve I spent hours uploading and organizing thousands of photos. I wanted to surprise my wife with 20 years of digital images in neatly organized albums. Only when I had the images organized I discovered there is no way to do a bulk download of an album. I can’t imagine why this would not be a basic function. To have to download and reorganize thousands of images individually is near impossible.

Is bulk download of image files something that is being worked on or is it simply not a feature that PLEX wants to offer users? An answer would go a long way to determining whether to continue with PLEX or not. Thanks!

1 Like

As a Yearly Plex Pass holder, I couldn’t agree more. We need download of selected items that can be used for all media types. It should be easy to add this function to the existing hamburger menu in the upper right.

IMHO, this is a serious deficiency of a basic function.

Why do the Plex developers ignore us and won’t even respond to our inquiries?

Please devs give us a response.

1 Like

I’ve just discovered the same limitation with Apple/iCloud Photo Sharing, which makes me think this feature is deliberately left out.

I.e. Please use our wonderful product to store and view your precious memories … but don’t you dare try to download and move away from us!!!

This problem seems to be really persisten on the devs side. So what does a programmer and lazy ■■■■ like me do? Right, he programms a workaround. I spent a lot more time than I originally planned (manly because I’ve never done a Chrome extention before and also my JS is a bit rusty) to create said Chrome extention that does what we all want.

This is the first working version I made and I plan to improve it a lot in the coming week when I find the time. In the meantime I uploaded it unlisted to the Chrome Store where you can download and test it and report any bugs you find so they can be squashed.

Code: GitHub
Chrome extention: Chrome Store

Note that I already fucked up the first version (won’t load due to a delted file still in the manifest) and the updated version still hangs at Google, if you still see V 0.1 you’ll have to wait or import it from the GitHub repo if you know how.

Feel free to contact me if anything doesn’t work or you need help. I realise it is a bit bare bones but I really didn’t have time to add more right now. Planned is also a way to download currently selected items but that’ll have to wait a bit since the Plex site is a abhorrent mess (intentional or due to incompetence, who knows)

5 Likes

Hi Bermos1

Great idea, but I can’t get the chrome extension to work. The bulk downloader extension-logo is always grey and does not react/wake up when in a plex album. I see version 0.6 of the extension.

Will be a great tool when working properly :slight_smile: Many thanks!

//

Hi info_grafikexperten_se

Thanks for trying it out and sorry for that first impression :smiley: I’m assuming you are accessing your server via app.plex.tv? I tried to do some url pattern matching so the extension will only show on plex sites but since everyone can host it under any url that isn’t as easy. I tested it with my own url and just assumed Plex would be using the same Pattern :sweat_smile: Long story short, I added a match for app.plex.tv and updated the extension. It should now work for you as well.

Edit: I also just noticed that photo albums are structured differently than folder view and they don’t work yet. But I’m working on that right now.

Edit 2: Alright photo album download should now be working as expected.

1 Like

Wow, that was quick! Many thanks; it works perfectly :slight_smile:

I was working on it when you posted and it was an easy fix :slight_smile: Glad it works for you, now it’s already been worth my time.