Trying out (and failing with) URL commands

Server Version#: 1.24.2.4973

Content stored on unRAID servers.

http://192.168.3.10:32400/library/sections/?X-Plex-Token=MY_PLEX_TOKEN pulls up my libraries. Section 5 is movies with both path=L: and path=S: and section 6 is TV with path=V:

L: and S: are root dirs, with all movie files contained within the root. V: is also root, but each series then has its own directory. Otherwise, we’d just have anarchy…

Instead of scanning all TV directories when adding new content, I’d like to only scan newly added folders or folders that have new files. Using http://192.168.3.10:32400/library/sections/6/refresh?path=/v:/Ghosts&X-Plex-Token=MY_PLEX_TOKEN should work, but appears to not. The series does not appear after a scan completes. This URL also does not produce any new content in Plex:
http://192.168.3.10:32400/library/sections/6/refresh?path=v%3A\The%20Real%20Housewives%20of%20Orange%20County\&X-Plex-Token=MY_PLEX_TOKEN

Here’s the output of Console when running the last URL above:

Try this, and not tested:

http://192.168.3.10:32400/library/sections/6/refresh?path=%2Fv%3A%2FGhosts&X-Plex-Token=MY_PLEX_TOKEN

And adding to self here.

Please show a screen capture of the file system from the root dir of the library and all the way down to the medias.

Could also be related to bad naming

If you want Plex server to handle library scans faster, and improve overall performance when browsing your library, go with the recommended method of

  1. don’t place media in “root” folders. Always use a subfolder.
  2. create one subfolder per movie, (within the general folder recommended in 1. )

This method also makes the “manual” scanning of particular subfolders unnecessary, because Plex can use the date-time stamp of the subfolders to decide whether a scan of the folder is necessary or not. This is what the server option “Run a partial scan when changes are detected” is about.
(may not work with network file shares, depending on the used SMB/CIFS server)

Never omit the Season xx folder level – even if the show only has one season.

L: and S: were only added as proof that I had used some of the URL code correctly. The movie dirs scan quickly every week or so without issues. TV is added to and scanned daily, sometimes twice. Usually just a new show in a couple series, sometimes an entire new series.

v:\Ghosts\Season 01\ghosts.s01e01.mp4 is the new path.

I ran the above URL supplied by Dane22, and the scan completed but the series did not appear.

Which “Ghosts” is it?
https://www.themoviedb.org/search/tv?query=ghosts
https://www.thetvdb.com/search?query=ghosts

https://thetvdb.com/series/ghosts

I still think that your use of a “naked” drive letter as library destination is problematic.
I think it should be rather something like V:\TV\

Try a folder name of v:\Ghosts {tvdb-249106}\Season 01\

Make sure it is not mingled with a different series by the same ort a similar title.
(set the library to “episodes” view mode, then engage the Duplicates quickfilter)

Compare your results with the regular scanning method per the Plex GUI.

As last resort, perform the Plex Dance and use trigger a regular library scan.

Also know, that everything in square brackets are ignored by Scanners and Agents!

So your folder named [Ghosts] will be considered as nothing :wink:

Also recommend adding year to the show folder, like Ghosts (1995) {tvdb-249106}

The square brackets in the screenshot are just because of the use of some “Norton Commander” clone, which introduced the square brackets to indicate folders vs. files.
(gosh, I feel old)

Arrggghhh

I’m primarily a Kodi user, but use Plex for serving content to my relatives. So my folder structure has been set in stone since 2011. Up to now, the Kodi structure has been fine for both Kodi and Plex. Only now trying to use URL commands has this presented an error. I’m not complaining about anything, just explaining.

Just created a new share in unRAID called Media, then created TV Shows > Ghosts > Season 01 > ghosts.s01e01.mp4 and of course it scraped instantly. Plex TV Agent chose the wrong series, but that’s normal behavior… :wink:

I’m going to transfer their shows to this new share. Movies too. Since the library will be much smaller, content will scrape faster and be easier to troubleshoot issues if I follow the Plex folder/naming conventions.

I still would like URL commands to work, but it’s not a huge deal if scanning is faster. Now I just have to find and move their content to the new share. Oh, and create the movie folders.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.