Metadata-Version: 2.1
Name: avutil
Version: 1.0.0
Summary: Provide some useful utils for tidying up your AV folder
Home-page: UNKNOWN
Author: Everyone
License: UNKNOWN
Description: # AV Utils
        
        Provide some useful utils for tidying up your personal video folder
        
        - Extract designatio
        - Search folder (recursively)
        - Pull video info (title, actors etc.)
        - Download cover image
        - Rename video file
        
        ## Environment
        
            Python >= 3.4
            BeautifulSoup4 >= 4.7.0
        
        ## Install
        
        ```sh
        pip install avutil
        ```
        
        ## Usage
        
        ```sh
        # tidyup -h
        ```
        
        Tidy up current dir
        
        ```sh
        # tidyup
        ```
        
        ## Usage in Python script
        
        Import avutil:
        ```python
        import avutil
        ```
        
        Search folder recursively to find videos:
        ```python
        folder = "StudyResource"
        videos = avutil.Search_folder(folder)
        ```
        
        Or you can specify the extension type of video
        ```python
        videos = Search_folder(folder, media_suffix={"mp4", "wmv", "avi", "mkv"})
        ```
        
        Pull video info & download cover image
        ```python
        for video in videos:
            # Pull video info
            video.pull_info()
            print(video)
        
            # Download cover image (as video.title + .jpg)
            img_file = os.path.join(folder, video.title + ".jpg")
            video.download_cover(os.path.join(img_file))
        ```
        
        (Or proxy supported!)
        ```python
        for video in videos:
            # Pull video info using proxy
            video.pull_info(use_proxy=True, http_proxy="http://127.0.0.1:1087")
            print(video)
            # Download cover image using proxy (as video.title + .jpg)
            img_file = os.path.join(folder, video.title + ".jpg")
            video.download_cover(os.path.join(img_file), use_proxy=True, http_proxy="http://127.0.0.1:1087")
        ```
        
        Tidy up!
        
        ```python
            # Tidy up (rename to video.title)
            video.rename()
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4.0
Description-Content-Type: text/markdown
