I have had a few separate movie libraries (i.e. horror) over the years tied back to various folders (i.e. e:\horror - vampires, e:\horror - classics, etc.)
Over time i have created Collections in those libraries for the respective subfolder name (i.e. horror - vampires).
I have opted to create a single movie library and just sort based on collections. My question is, is there away I can sort movies in the new library to show their folder location so i can easily tag the movies and not miss something? I had tried the “Folders” option for display, but the problem is i cannot select the movie direct in subfolders (i.e. horror - vampires has a subfolder Dracula and i would have to go into each subfolder individually to tag the movie). I want to see all Movies in E:\Horror - Vampires\ %subfolder%, select all and tag them all at once with the respective tag. Then rinse and repeat for all 25 or so various folders i have.
You should be able to multi-select items inside a folder. As there’s no “select all” option, start selecting the 1st item, slowly scroll to the end of the list (giving Plex a chance to load all the items in between), hold shift and select the last item… then edit the items from the action bar and add the collection.
Thanks, but that doesnt seem to work. If I click the first folder (i.e Dracula) it goes into the dracula folder. There is no option to put a check mark or select it. Hitting shift before clicking doesnt work either.
Is there another way to see folder a movie is in within in Plex and sort by folder location? To go into each individual movie will take weeks if not longer with 2500+ movies in loaded into Plex.
You can only see to which folder a movie belongs in 2 ways:
in regular view by clicking on > Info or ... > Get Info
in folder mode
With #1 you need to check each item individually (taking into account that some items might have multiple files associated to them.
The example shared above should allow you to edit all items inside a folder. So there’s no “going into each individual movie” – except of course your movies are stored in their own individual folders inside the genre/collection level folders.
Guessing no one has any other input on this? Was still hoping to find a way to create collections based on folder without having to move everything out of the defined movie title folder. Any scripts or anything that may be out there?
@dbirtch What Python libraries are you thinking of?
I am having this same problem (I am migrating to Plex and my movies are currently organized in folders by custom genres). After extensive searching, the closest to a solution I have found is this mention of “filepath” filtering in Plex-Meta-Manager: Filters · meisnate12/Plex-Meta-Manager Wiki · GitHub. I do know Python but after wading through the documentation, I can’t say I immediately understand how to use this tool to solve my problem.
from plexapi.server import PlexServer
from plexapi.myplex import MyPlexAccount
def main():
account = MyPlexAccount('<username>', '<password>')
plex = account.resource('<servername>').connect()
seen = get_lines(u'seen.txt')
places = ['TV'] # library name
for place in places:
tv_shows = plex.library.section(place)
for show in tv_shows.all():
episodes = None
error_count = 0
while not episodes:
try:
episodes = show.episodes()
except:
error_count +=1
pass
if error_count > 10:
episodes = show.episodes()
time.sleep(2)
for video in episodes:
for part in video.iterParts():
filename = part.file
##########
## if re.search(<matchregex>,filename,flags=reI):
## video.addLabel('<label>')
###################################
### section for logging history ###
###################################
if video.isWatched:
log(u'%s\n' % filename,u'seen.txt')
###################################
### section for restoring status ###
###################################
if filename in seen:
video.markWatched()
def log(text,file):
f3 = codecs.open(file, 'a', 'utf-8')
f3.write(text)
f3.close()
def get_lines(file):
# try:
f = codecs.open(file,'r', 'utf-8')
names = f.read().split('\n')
f.close()
f = True
while f:
try:
names.remove('')
except:
f = False
pass
# except:
# names = []
return names
if __name__ == '__main__':
main()
sorry i havent checked on this in a while. I am not a programmer, but i did find plex media manager python and using the discord channel for assistance i was able to get it to state that i was able to get what i was trying to do working between the file paths and also pulling from IMDB lists.