Plex - can't add TV show

Hello,
yesterday I found I have bad subtitles in tv show “The Flash (2014)”. So I deleted all series from my NAS and downloaded from another source with correct subtitles. I deleted it via Plex application in MAC.

Today I saw “The Flash” I downloaded isn’t in Plex. I started scan library, didn’t help it.
Any idea how to add TV show in plex again?

I have TV show in correct folder: NAS\Multimedia\TV Shows\The Flash (2014)

this is most likely naming…

Is it:

NAS\Multimedia\TV Shows\The Flash (2014)\Episodes
or
NAS\Multimedia\TV Shows\The Flash (2014)\Season 01\Episodes
???

And are the files named: The Flash (2014) - S01E01 - optional title.ext ? Or some other way?

Also, I hear “TheTVDB” is having issues with shows that have the year in the title like The Flash (2014), you could try simply “The Flash” but my fear is that that will cause it to get the earlier series “The Flash” from the 80’s

This:
NAS\Multimedia\TV Shows\The Flash (2014)\Season 01\The Flash (2014) - S01E01 - Pilot.cze.srt
The Flash (2014) - S01E01 - Pilot.mkv
etc.

Had This filenames previous too and had no problems.
Now if I click on scan library, tv show doesn’t appear.

I thought this one might be a candidate for “Match Failures”, but here at my house testing this works fine for a natural match:

A TV Show Library\
......The Flash (2014)\
...........Season 01\
..............The Flash (2014) - S01E01.xxx

That looks pretty good to me - as far as naming and structuring.
Everyone should do as well.

remove the files from the directory that plex can see

go to settings>troubleshooting

clear bundles and optimize database

also go to the library settings and empty trash

after this, move them back into the directory and re-scan

@JasonNalley tried it now, didn’t help it. Still don’t see “The Flash” in TV Shows…

Also tried to change folder name to “The Flash” only, didn’t help it.

I agree with Juice, that naming is good, and the naming without the date is also good… So, I’d say you may need to repeat the steps I mentioned above, except this time make sure “Debug” Is on (not verbose) and after you’ve finished, wait 2-3 minutes, download the logs, and attach them here so that someone can go through them and see where the failure is.

Out of curiosity, have you tried to add any other shows since this happened?

This might be worth a try:

Might help and won’t hurt.

Curiously, have you power cycled / restarted your NAS, Mac and router, it looks like the link to Plex library is broken. Disregard if other new TV files can be added. :slightly_smiling_face:

So I restarted NAS, server, MAC. Didn’t help it.
So I turned on “Debug”, waited for 3 minutes and attaching logs.

Tried to download “Dexter” TV Show (1 episode). Added it to nas and it works fine with Plex. So problem is with “The Flash” only, because I deleted it via plex, downloaded it again and it can’t load into plex again.

Logs:

I see good advice and everything being done correctly. I also see we’re not getting anywhere…

Retreat!

and call in SWAT: @ChuckPa

:slight_smile:

1 Like

Where a Texas ranger when you need one. Lol

He’s with the PA Pinkertons, but yea… as far as the ‘Big Guns’ - he is one…lol

so any idea why can’t add tv show “The flash” please?

I’m out of tricks. Looks like all the standard tricks have been applied.

We’ll know a lot more when Chuck shows up.

In the meantime, go to Server/Settings/General
Enable Debug Logging
Disable Verbose Logging

Stand by for further instructions.

Ok enabled. Waiting for next instructions.

You used Plex to delete it and not your filesystem? If so, maybe something got screwed up with the database… While you’re waiting for chuck or another employee/ninja to show up, you could try doing a database repair: https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

You could try that, with your setup I think you’d be using the linux one, but not sure…

Yes I deleted tv show via Plex app in MAC. Click on TV show cover and delete.
Right now tried these steps, then I started library scan again but with same result, “The Flash” won’t appear in Library.

sudo service plexmediaserver stop

check database

1. cp com.plexapp.plugins.library.db com.plexapp.plugins.library.db.original
2. sqlite3 com.plexapp.plugins.library.db "DROP index 'index_title_sort_naturalsort'"
3. sqlite3 com.plexapp.plugins.library.db "DELETE from schema_migrations where version='20180501000000'"
4. sqlite3 com.plexapp.plugins.library.db "PRAGMA integrity_check"

repair database

1. cp com.plexapp.plugins.library.db com.plexapp.plugins.library.db.original
2. sqlite3 com.plexapp.plugins.library.db "DROP index 'index_title_sort_naturalsort'"
3. sqlite3 com.plexapp.plugins.library.db "DELETE from schema_migrations where version='20180501000000'"
4. sqlite3 com.plexapp.plugins.library.db .dump > dump.sql
5. rm com.plexapp.plugins.library.db
6. sqlite3 com.plexapp.plugins.library.db < dump.sql
7. chown plex:plex com.plexapp.plugins.library.db

sudo service plexmediaserver start

any update please?

likely that the permissions to The Flash folder are prohibiting plex from seeing it. slightly less likely: it’s matched to another show some where, in which case you would need to go to tv shows library in the webapp, sort by episodes, then click all and sort by duplicates. (or any other way you chose to search) even less likely is you have a .plexignore file in the way somewhere in the TV directory tree.

edit: talked to OP on discord, it was the permissions.

2 Likes