ZeroQI / Absolute-Series-Scanner

Seasons, absolute mode, Subfolders...
1.02k stars 155 forks source link

[feature request] .plexmatch files support #412

Closed vidarrio closed 2 weeks ago

vidarrio commented 2 years ago

The new .plexmatch files would be a great if they worked with this agent as well!

ZeroQI commented 2 years ago

https://support.plex.tv/articles/plexmatch/

Warning: This is an advanced feature and is not intended for general users.

It seem like you can force the title, season, year, tvdbid, tmdbid, and imdbid, guid, episode match Agent specific: the guid only, although the scanner could put it in the series title for the agent to find, so it is a scanner only feature request...

What functionalities does it bring that the anidb.id or tvdb.id doesn't for HAMA users ? I can't really picture some clear added benefits or use case, so why would this be great exactly? Please expand...

vidarrio commented 2 years ago

My personal use case would be less for series matching which is already easy with the anidb id as you said. It would be to correctly scan in episodes which have weird filenames that aren't getting scanned correctly. This isn't really necessary if you can rename the affected files, but in my case, I can't do that. Supporting .plexmatch files would allow full control of the file <-> episode matching separate from the files themselves, in turn making sure one can always manually fix any wrongly scanned files without changing them.

As a user, it's also quite easy to write scripts to generate .plexmatch files for various organisational use cases, so it's a nice tool to have.

ZeroQI commented 2 years ago

Instead of generating a .Plex match file, renaming the file would make more sense. Now you will say you cannot change the filename but that's only the case if using torrent directly to your library without using a temporary folder... Am I wrong?

vidarrio commented 2 years ago

Indeed, I am not using a temporary directory, the reason for this is that I keep everything (50+ TB) seeding at all times, and do not wish to keep duplicate files. There is of course the solution of using symlinks instead, but doing that for everything would be a huge pain in the ass, and the .plexmatch files would be a much more elegant solution in my opinion.

ZeroQI commented 2 years ago

50TB? is that a 6TB HDD x 8 raid set-up ? Are you even using Hi10p torrent releases ? I have saved bucket of space and higher quality with them (just viewing locally, no longer using Plex), but it has been down for a year, will soon retrieve it, as I am moving back from Ireland to France

It is possible to implement:

.plexmatch file format:

Title: Cool Show
Show: Cool Show
Season: 2
Year: 2022
Episode: 01: Pilot.mkv
ep: 12: Episode 12 - Finale Part 2.mkv
ep: SP01: Some Unnumbered Special.mkv
ep: SP02: Season 1/Bonus/Bonus Clip 1.mkv
pe: S03E04-S03E05: Season 03 Episode 04 - Title.mkv

I suppose somebody could create a third party scanner that support plexmatch files exclusively I believe the word algorythm in the scanner is taking a hge part of the code, so if i could remove it but get better regex for all file formats, that could be beneficial... Does any open-source project have a near perfect season/episode regex code (any programming language) i could copy from, and could test removing the word algorythm and just use regex then add plexmatch support ?

vidarrio commented 2 years ago

It's actually 8x8TB atm :P I do use Hi10p releases when available/relevant, but I don't get releases in resolutions higher than 1080p, so they almost only exist for anime and not other media (unlike if I snatched 4k stuff).

Plex could cut third party scanners and agents like they did with podcasts already, as new agent developments not being in Python but C++, but unavailable to third party agents/scanners... Any information about future scanner support being culled ?

I haven't seen anything about it being culled no.

I personally don't use Plex any more, and even less inclined to code something that would only mainly benefit commercial users providing illegal paid Plex streaming services... I would approve pull requests for it, however.

Personally I don't offer a paid service or anything, it's just a hobby with the added benefit of sharing movies and shows with my friends and family for free. I see your point though with that being a large part of the user base that would find it useful. If I find the time outside of school/work/life I'll definitely take a look at the code myself as well.

Does any open-source project have a near perfect season/episode regex code (any programming language) i could copy from, and could test removing the word algorythm and just use regex then add plexmatch support ?

Nothing comes to mind immediately, but I'll have a look around and check with some friends as well. Thanks for taking your time!

ZeroQI commented 2 weeks ago

Will close this for now