Skip to content

Instantly share code, notes, and snippets.

View elan's full-sized avatar
💭
Caldera...

Elan Feingold elan

💭
Caldera...
View GitHub Profile
@vofik
vofik / Plex Movie Scanner.py
Created November 1, 2011 02:06
Plex scanner/stacker improvements
#
# Copyright (c) 2010 Plex Development Team. All rights reserved.
#
import re, os, os.path
import Media, VideoFiles, Stack, Utils
SeriesScanner = __import__('Plex Series Scanner')
nice_match = '(.+) [\(\[]([1-2][0-9]{3})[\)\]]'
standalone_tv_regexs = [ '(.*?)( \(([0-9]+)\))? - ([0-9])+x([0-9]+)(-[0-9]+[Xx]([0-9]+))? - (.*)' ]