JakeWharton / plex-orphaned-files

Find files in your Plex libraries which are not indexed
Apache License 2.0
117 stars 6 forks source link

Status of external subtitle files not correctly reported #2

Open fongd opened 3 years ago

fongd commented 3 years ago

.srt files are incorrectly reported as not indexed by Plex even though they may be. If there's a way to determine whether Plex is using these, then this should be fixed. Otherwise, perhaps a command-line option to ignore external subtitle files would be more convenient than a generic "exclude" option as proposed in #1?

JakeWharton commented 3 years ago

The info on rules are here: https://support.plex.tv/articles/200471133-adding-local-subtitles-to-your-media/

It's a shame they aren't indexed like media files. Or maybe they are and it's simply in another array.

In either case, I'll take a look soon. Thanks for the report.

fongd commented 3 years ago

Just to confirm, the .srt files are properly named and appear in Plex in the Subtitles dropdown for the corresponding episodes so they are recognized by Plex.

JakeWharton commented 3 years ago

Yeah sorry that link was for my own reference when I go to try and fix this.

jonfairbanks commented 3 years ago

I am also seeing the srt bug along with a few .nfo and .jpg files.

Is the intention of this tool to list missing media only or files of any type that Plex is not watching?

JakeWharton commented 3 years ago

Unless I can query the extensions with the API, I don't want to use an opt-in list of extensions and would prefer that you opt-out. For jpg and nfo you'll be able to use #1.

JakeWharton commented 3 years ago

Despite being indexed internally, the file path of the subtitles is not included in the API responses...

That's unfortunate. It means we have to try to mirror Plex's behavior here to mark a file as being used.