blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.67k stars 307 forks source link

Add merge_multiepisodes.py #322

Closed JonnyWong16 closed 2 years ago

JonnyWong16 commented 2 years ago

Description

Add merge_multiepisodes.py script to automatically merge multi-episode files in Plex into a single entry.

Notes

Usage

Folder and file structure naming following Plex's guidelines:

/TV Shows
    /SpongeBob SquarePants
        /Season 01
            SpongeBob SquarePants - S01E01-E02.mp4
            SpongeBob SquarePants - S01E03-E04.mp4
            SpongeBob SquarePants - S01E05-E06.mp4
            SpongeBob SquarePants - S01E07-E08.mp4
            SpongeBob SquarePants - S01E09-E10.mp4
            SpongeBob SquarePants - S01E11-E12.mp4
            SpongeBob SquarePants - S01E13-E14.mp4
            SpongeBob SquarePants - S01E15-E16.mp4
            SpongeBob SquarePants - S01E17-E18.mp4
            SpongeBob SquarePants - S01E19-E20.mp4
python merge_multiepisodes.py --library "TV Shows" --show "SpongeBob SquarePants"

Screenshots

Before:

image

After:

image