Metadata-Version: 2.1
Name: video-utils
Version: 2.0.11
Summary: This library is used for lots of shared functionality around parsing TV shows and movies
License: MIT
Author: Justin Dray
Author-email: justin@dray.be
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: colorama (>=0.4.0,<0.5.0)
Requires-Dist: ffmpy (>=0.2.2,<0.3.0)
Requires-Dist: pymediainfo (>=4.1,<5.0)
Requires-Dist: tqdm (>=4.40.2,<5.0.0)
Description-Content-Type: text/markdown

# Video Utils

![Test Status](https://github.com/justin8/video_utils/workflows/Tests/badge.svg?branch=master)
[![codecov](https://codecov.io/gh/justin8/video_utils/branch/master/graph/badge.svg)](https://codecov.io/gh/justin8/video_utils)

This library provides utilities for dealing with TV show and Movie files and the metadata around them.

## Example Usage

```python
from video_utils import FileMap

f = FileMap("/path/to/videos")
f.load() # By default, this will load the cached metadata, and then update files that have changed in size

for directory in f.contents:
    for video in f.contents[directory]:
        codec = video.codec
        print(codec.pretty_name) # x265
        print(video.quality) # 1080p
        print(video.full_path)
        print(video.size) # in bytes
        print(video)
        video.refresh() # force a refresh of the video metadata, will only occur if filesize has changed.
```

