██████╗ ██╗ ██╗██████╗ █████╗ ████████╗██╗ ██████╗ ███╗ ██╗
██╔══██╗██║ ██║██╔══██╗██╔══██╗╚══██╔══╝██║██╔═══██╗████╗ ██║
██║ ██║██║ ██║██████╔╝███████║ ██║ ██║██║ ██║██╔██╗ ██║
██║ ██║██║ ██║██╔══██╗██╔══██║ ██║ ██║██║ ██║██║╚██╗██║
██████╔╝╚██████╔╝██║ ██║██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
██████╗ ███████╗████████╗███████╗ ██████╗████████╗██╗██╗ ██╗███████╗
██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝██║██║ ██║██╔════╝
██║ ██║█████╗ ██║ █████╗ ██║ ██║ ██║██║ ██║█████╗
██║ ██║██╔══╝ ██║ ██╔══╝ ██║ ██║ ██║╚██╗ ██╔╝██╔══╝
██████╔╝███████╗ ██║ ███████╗╚██████╗ ██║ ██║ ╚████╔╝ ███████╗
╚═════╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝
A tree-like tool to check the media duration in your folders/subfolders.
🚀 Installation
Create a virtual environment (if needed)
$ python3 -m venv <your_env>
source <your_env>/bin/activate
Install via pip
pip install duration-detective
Run it
$ DurationDetective --path "/path/to/your/folder"
Scanning Folder :
/path/to/your/folder ...
├──22mins 02secs ⏲️ Batman Hush (2019) (1080p BluRay x265 SAMPA).mkv
├──16mins 39secs ⏲️ Batman.The.Killing.Joke.2016.1080p.6CH.ShAaNiG-[Bi-3-Seda.Ir].mkv
├──27mins 07secs ⏲️ Batman.VsTeenage.Mutant.Ninja.Turtles.2019.720p.WEBRip.x264-[YTS.AM].mp4
├──14mins 16secs ⏲️ Batman.and.Harley.Quinn.2017.WEB-DL.720p.MkvCage.mkv
├──12mins 07secs ⏲️ Batman.vs.Two.Face.2017.DVDRip.MkvCage.mkv
├──45mins 55secs ⏲️ Dark.Web.Cicada.3301.2021.720p.BRRip.Tamil.Dub.Dual-Audio.x264-1XBET.mkv
├──Good Will Hunting (1997) [1080p]/
│ ├──06mins 33secs ⏲️ Good.Will.Hunting.1997.1080p.BrRip.x264.YIFY.mp4
│ └──06mins 33secs ⏲️ : Good Will Hunting (1997) [1080p]/
├──Ship Of Theseus (2012)/
│ ├──24mins 42secs ⏲️ Ship.Of.Theseus.2012.720p.BluRay.x264.[YTS.AG].mp4
│ └──24mins 42secs ⏲️ : Ship Of Theseus (2012)/
├──The.Batman.2022.1080p.WEBRip.x265-RARBG/
│ ├──Subs/
│ │ └──00mins 00secs ⏲️ : Subs/
│ ├──56mins 12secs ⏲️ The.Batman.2022.1080p.WEBRip.x265-RARBG.mp4
│ └──56mins 12secs ⏲️ : The.Batman.2022.1080p.WEBRip.x265-RARBG/
✅ Total Duration: 3hr 39min 33secs ⏲️
Use case
I have been using it personally for planning hours before diving into any Course videos or before Planning to binge watch any Television Series. Gives me a rough estimate of How much time consuming it can be.
Contribution
$ git clone https://github.com/3l-d1abl0/DurationDetective.git
Raise Issues
https://github.com/3l-d1abl0/DurationDetective/issues
Metadata
Release files for duration-detective 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| duration-detective-1.0.1.tar.gz | 5.6 kB | Without provenance | Details for duration-detective-1.0.1.tar.gz |
Release files / duration-detective-1.0.1.tar.gz
| Download URL | duration-detective-1.0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a615eca070adc48801d09bb2a6a34a833690fb5b48a8e34830fa3140eb4d5ace
|
|
BLAKE2b-256 checksum How to use checksums |
f12b594db60d2e4d05848bfdf7c7cf272287e17389512a51b3181c38f95f60fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for duration-detective 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.