Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A script with which to determine what order to watch anime episodes in

Project Description

A script that parses filenames in a folder looking for videos with common release filename structures and plays them back in an appropriately random order.

Example

$ pip install pseudomyth

$ ls
[Coalgirls]_Clannad_10_(1280x720_Blu-Ray_FLAC)_[3827A783].mkv
[Coalgirls]_Clannad_ED_(1280x720_Blu-Ray_FLAC)_[A230547E].mkv
[Coalgirls]_Clannad_OP_(1280x720_Blu-Ray_FLAC)_[940FB269].mkv
[Commie] Persona 4 - 25 [Director's Cut] [BD 720p AAC] [311CA781].mkv
[Commie] Persona 4 - 26 [True Ending] [BD 720p AAC] [0A24880E].mkv
[HorribleSubs] Space Brothers - 19 [720p].mkv
[HorribleSubs] Space Brothers - 20 [720p].mkv
[HorribleSubs] Space Brothers - 21 [720p].mkv
[HorribleSubs] YuruYuri - 04 [720p].mkv
[HorribleSubs] YuruYuri - 05 [720p].mkv
[SGKK-Ruri] Deadman Wonderland - 01 (1280x720 H264 AAC) [666F0275].mkv
[SGKK-Ruri] Deadman Wonderland - 02 (1280x720 H264 AAC) [CD79F07F].mkv

$ pseudomyth
/人◕ ‿‿ ◕人\  LET’S WATCH 10 KEIONS!
Clannad [10] OP ED
Deadman Wonderland [1, 2]
Persona 4 [25, 26]
Space Brothers [19, 20, 21]
YuruYuri [4, 5]

At this stage, if the list of episodes is to your satisfaction, you could hit enter and pseudomyth would start playing back the first present episode of a random series. Shows with more present episodes are more likely to be picked. In the case of (in this example) Clannad, the opening and ending would be played prior to and following the episode selected.

Once an episode has been played, it is moved to a ‘consumed’ subdirectory of the current working directory and the cycle begins anew. You could, at this point, either ^C out of the script or hit enter to watch another episode. Because watched episodes are moved, you can stop and resume between episodes at will.

Configuration

If you don’t want to use your system’s default video player or pseudomyth can’t work out what your system’s default player is, you can configure an alternative command in a ~/.pseudomyth file. The command is specified as a shell command, where {filenames} will be replaced with the files (usually just one) to be played back. For example, mine looks like this:

[DEFAULT]
command=mplayer -fs {filenames}
Release History

Release History

This version
History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pseudomyth-1.0.8.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Jan 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting