Inrixia / Floatplane-Downloader

Project for automatically organizing and downloading Floatplane videos for plex.
https://monitor.spookelton.net/public-dashboards/db0aec66747b4950b01b128916eb737e
GNU Affero General Public License v3.0
157 stars 41 forks source link

Update regex for nfo season matching #147

Closed rpungello closed 1 year ago

rpungello commented 1 year ago

The current regex used for extracting season & episode numbers from a filename for NFO creation only works if you use titles at the end of the video filename (channel - s01e01 - title.mp4).

If you strip that off to cut down on excessively long filenames (and potential issues with special characters in video filenames), the regex won't match season/episode info as the trailing dash will be absent. I've been trying to use "channel - s01e01.mp4" so the filenames are more manageable, and use NFO files to store the titles, which are then read by Jellyfin.

It seems like season & episode numbers would always be numeric, so this simplified regex should be more reliable, unless there's some scenario I'm unaware of. I suppose there could be fringe cases where this causes false matches, but that seems unlikely.

Inrixia commented 1 year ago

Thanks, this is something I was already thinking about so saved me the trouble :)