summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sortashuffle.py31
1 files changed, 30 insertions, 1 deletions
diff --git a/sortashuffle.py b/sortashuffle.py
index 1bb7047..9685634 100644
--- a/sortashuffle.py
+++ b/sortashuffle.py
@@ -1,15 +1,44 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2# sortashuffle.py 2# sortashuffle.py
3 3
4# SortaShuffle:
5# - shuffles TV shows together into playlists
6# - retains episode order
7# - spreads shows semi-evenly
8
4# REQUIREMENTS 9# REQUIREMENTS
5# - Must be run as administrator on Windows 10# - Must be run as administrator on Windows
6# - All episodes of each show must be in one folder; no season folders! 11# - All episodes of each show must be in one folder; no season folders!
12# - All episodes must be named so that your filesystem sorts them
13# properly in episode order when sorted alphanumerically.
14# - All episodes must be named according to my personal conventions.
15
16# NAMING CONVENTIONS
17# All files are named suchly:
18# show-name.S#.E#.title-of-episode.mp4
19#
20# The number of seasons and episodes determines how many zeroes are used
21# as padding. If there are 99 episodes, episode 1 should be 01. If there
22# are 250 episodes, episode 1 should be 001. And so on...
23#
24# Multi-part episodes have their episode numbers collapsed back to the
25# base episode number, and have a, b, c, etc. appended to the episode number.
26# This is a destructive operation which loses the true episode number of
27# multi-part episodes. For example, if we have a 3-part episode, it
28# would look like:
29# show-name.S1.E1a.title-of-episode.mp4
30# show-name.S1.E1b.title-of-episode.mp4
31# show-name.S1.E1c.title-of-episode.mp4
32# show-name.S1.E4.title-of-episode.mp4
33# Notice the jump from E1c to E4?
7 34
8# USAGE 35# USAGE
9# 0. Copy this script to the playlist folder 36# 0. Copy this script to the playlist folder
10# 1. Modify the TARGET variable below 37# 1. Modify the TARGET variable below
11# 2. Modify the SOURCES variable below 38# 2. Modify the SOURCES variable below
12# 3. Run the script as administrator 39# 3. Run powershell as administrator
40# 4. `cd' into the TARGET directory
41# 5. Run the script.
13# 42#
14# To add/remove shows or regenerate playlist, 43# To add/remove shows or regenerate playlist,
15# delete everything in TARGET (except this script) 44# delete everything in TARGET (except this script)