subhd.py
subhd.py copied to clipboard
Download subtitles from subhd.com automatically
PS C:\Users\leafl> pip install subhd.py Collecting subhd.py Using cached subhd.py-0.1.4.tar.gz Collecting beautifulsoup4==4.3.2 (from subhd.py) Using cached beautifulsoup4-4.3.2.tar.gz Collecting chardet==2.3.0 (from subhd.py) Using cached chardet-2.3.0-py2.py3-none-any.whl Collecting guessit==0.9.4 (from subhd.py) Using cached...
bug fixes 1. fix guessit 2.05 #3 2. fix search pattern for latest subhd website
如果是 guessit 2.05 from guessit import guess_video_info 改为: from guessit import guessit video_info = guess_video_info(video_name) 改为: video_info = guessit(video_name)
def get_guessed_video_name(video_name): '''Parse the video info from the filename ``` Args: video_name: the filename of the video Returns: keyword: return video title, usually as movie name, otherwise the series title,...