Skip to main content

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=mpv -fs {filenames}

Project details


Download files

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

Source Distribution

pseudomyth-2.0.1.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file pseudomyth-2.0.1.tar.gz.

File metadata

  • Download URL: pseudomyth-2.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pseudomyth-2.0.1.tar.gz
Algorithm Hash digest
SHA256 2e525877f08fa8aff9491ac9c3154a59f4fd144f078f3f435e8c75bc55e6062c
MD5 a6bd7483f01d0a1b82acf2da2776779c
BLAKE2b-256 8608379cc7c89e8a2d2e60a7ba6e206e2f962f6b29db06575754b5580cd4daee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page