diff options
| author | Tristan Williams <tgwil@tgwil.net> | 2025-03-31 04:07:01 -0400 |
|---|---|---|
| committer | Tristan Williams <tgwil@tgwil.net> | 2025-03-31 04:07:01 -0400 |
| commit | 65e5e3470921ba64931b0b41655bc9cd3b829c5e (patch) | |
| tree | dc6b5e58b5059a8dae0d60ab1110fd123dbde679 | |
| parent | Conform to PEP 8 conventions (diff) | |
| download | sortashuffle-65e5e3470921ba64931b0b41655bc9cd3b829c5e.tar.gz sortashuffle-65e5e3470921ba64931b0b41655bc9cd3b829c5e.tar.bz2 sortashuffle-65e5e3470921ba64931b0b41655bc9cd3b829c5e.zip | |
Improve instructions
| -rw-r--r-- | sortashuffle.py | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/sortashuffle.py b/sortashuffle.py index 1bb7047..6a07c4a 100644 --- a/sortashuffle.py +++ b/sortashuffle.py | |||
| @@ -1,15 +1,39 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/usr/bin/env python3 |
| 2 | # sortashuffle.py | 2 | # sortashuffle.py |
| 3 | 3 | ||
| 4 | # REQUIREMENTS | 4 | # REQUIREMENTS |
| 5 | # - Must be run as administrator on Windows | 5 | # - Must be run as administrator on Windows |
| 6 | # - All episodes of each show must be in one folder; no season folders! | 6 | # - All episodes of each show must be in one folder; no season folders! |
| 7 | # - All episodes must be named so that your filesystem sorts them | ||
| 8 | # properly in episode order when sorted alphanumerically. | ||
| 9 | # - All episodes must be named according to my personal conventions. | ||
| 10 | |||
| 11 | # NAMING CONVENTIONS | ||
| 12 | # All files are named suchly: | ||
| 13 | # show-name.S#.E#.title-of-episode.mp4 | ||
| 14 | # | ||
| 15 | # The number of seasons and episodes determines how many zeroes are used | ||
| 16 | # as padding. If there are 99 episodes, episode 1 should be 01. If there | ||
| 17 | # are 250 episodes, episode 1 should be 001. And so on... | ||
| 18 | # | ||
| 19 | # Multi-part episodes have their episode numbers collapsed back to the | ||
| 20 | # base episode number, and have a, b, c, etc. appended to the episode number. | ||
| 21 | # This is a destructive operation which loses the true episode number of | ||
| 22 | # multi-part episodes. For example, if we have a 3-part episode, it | ||
| 23 | # would look like: | ||
| 24 | # show-name.S1.E1a.title-of-episode.mp4 | ||
| 25 | # show-name.S1.E1b.title-of-episode.mp4 | ||
| 26 | # show-name.S1.E1c.title-of-episode.mp4 | ||
| 27 | # show-name.S1.E4.title-of-episode.mp4 | ||
| 28 | # Notice the jump from E1c to E4? | ||
| 7 | 29 | ||
| 8 | # USAGE | 30 | # USAGE |
| 9 | # 0. Copy this script to the playlist folder | 31 | # 0. Copy this script to the playlist folder |
| 10 | # 1. Modify the TARGET variable below | 32 | # 1. Modify the TARGET variable below |
| 11 | # 2. Modify the SOURCES variable below | 33 | # 2. Modify the SOURCES variable below |
| 12 | # 3. Run the script as administrator | 34 | # 3. Run powershell as administrator |
| 35 | # 4. `cd' into the TARGET directory | ||
| 36 | # 5. Run the script. | ||
| 13 | # | 37 | # |
| 14 | # To add/remove shows or regenerate playlist, | 38 | # To add/remove shows or regenerate playlist, |
| 15 | # delete everything in TARGET (except this script) | 39 | # delete everything in TARGET (except this script) |