Code Monkey home page Code Monkey logo

wayneclub / subtitle-downloader Goto Github PK

View Code? Open in Web Editor NEW
279.0 7.0 60.0 1.75 MB

Auto download subtitles from streaming services, such as Apple TV+, CatchPlay, Crunchyroll, Disney+, FridayVideo, HBO GO Asia, iQIYI, iTunes, KKTV, LINE TV, meWATCH, MyVideo, NowE, NowPlayer, Viki, Viu, WeTV, YouTube, and etc.

License: MIT License

Python 99.47% Batchfile 0.06% Makefile 0.45% Shell 0.02%
subtitles disneyplus hbo kktv linetv friday-video catchplay iqiyi viu wetv

subtitle-downloader's Introduction

Subtitle Downloader

zh python

NON-COMMERCIAL USE ONLY

Subtitle-Downloader supports downloading subtitles from multiple streaming services, such as Apple TV+, CatchPlay, Crunchyroll, Disney+, FridayVideo, HBO GO Asia, iQIYI, iTunes, KKTV, LINE TV, meWATCH, MyVideo, NowE, NowPlayer, Viki, Viu, WeTV, YouTube, etc.

DESCRIPTION

Subtitle-Downloader is a command-line program to download subtitles from the most popular streaming platform. It requires Python 3.10+, and NodeJS. It should work on Linux, on Windows, or macOS. This project is only for personal research and language learning.

INSTALLATION

  • Linux, macOS:
pip install -r requirements.txt
  • Windows: Execute install_requirements.bat

Service Requirements

Name Authentication Geo-blocking
Apple TV+ Cookies
CatchPlay Cookies Indonesia, Singapore, and Taiwan
Crunchyroll Cookies
Disney+ Email & Password
Friday Video Cookies Taiwan
HBO GO Asia Email & Password
iQIYI (iq.com) Cookies Partial region
iTunes
KKTV
LINE TV
MeWATCH Profile Token Singapore
MyVideo Cookies Taiwan
NowE Cookies
Now Player Cookies
Viki Cookies Partial region
Viu
WeTV Cookies Partial region
YouTube Cookies (Subscribe channel)

Get Cookies

  1. Install Chrome plugin: get-cookiestxt-locally
  2. Login to the streaming service, and use the plugin to download cookies.txt (Don't modify anything even the file name)
  3. Put cookie.txt into Subtitle-Downloader/cookies

Email & Password

  • Fill your email and password in Subtitle-Downloader/user_config.toml

USAGE

Online (Colab environment is in the US, if you want to use it in another region please execute it locally)

  1. Save a copy in Drive
  2. Connect Colab
  3. Install the requirements (Click 1st play button)
  4. Depend the download platform and modify the text field (Click the play button next to it when modified completely)
  5. Download the subtitles from the left-side menu

Colab

Local

  1. Depending on the download platform and modify Subtitle-Downloader/user_config.toml

    [subtitles]
    default-language = 'en'  # all/en/zh-Hant/zh-Hans/zh-HK/ja/ko
    default-format = '.srt'  # .srt/.ass
    archive = true           # true/false
    
    [headers]
    User-Agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36'
    
    [credentials.DisneyPlus]
    email = ''
    password = ''
    
    [proxies]
    us = 'http:127.0.0.1:7890' # Clash
    
    [nordvpn]
    username = ''
    password = ''
  2. Follow each platform's requirements and put cookies.txt into Subtitle-Downloader/cookies

  3. Execute the program with the command line or Subtitle-Downloader.bat (Paste the title's URL)

    python subtitle_downloader.py URL [OPTIONS]

OPTIONS

  -h, --help                    show this help message and exit

  -s --season                   download season [0-9]

  -e --episode                  download episode [0-9]

  -l, --last-episode            download last episode

  -o, --output                  output directory

  -slang, --subtitle-language   languages of subtitles; use commas to separate multiple languages
                                default: Traditional Chinese
                                all: download all available languages

  -alang, --audio-language      languages of audio-tracks; use commas to separate multiple languages

  -sf, --subtitle-format        subtitles format: .srt or .ass

  -locale, --locale             interface language

  -p, --proxy                   proxy

  -d, --debug                   enable debug logging

  -v, --version                 app's version

Subtitle Languages

Disney+

Codec Language
en English [CC]
zh-Hant Chinese (Traditional)
zh-Hans Chinese (Simplified)
zh-HK Cantonese
da Dansk
de Deutsch
de-forced Deutsch [forced]
es-ES Español
es-ES-forced Español [forced]
es-419 Español (Latinoamericano)
es-419-forced Español (Latinoamericano) [forced]
fr-FR Français
fr-FR-forced Français [forced]
fr-CA Français (Canadien)
fr-CA-forced Français (Canadien) [forced]
it Italiano
it-forced Italiano [forced]
ja Japanese
ja-forced Japanese [forced]
ko Korean
ko-forced Korean [forced]
nl Nederlands
no Norsk
pl Polski
pl-forced Polski [forced]
pt-PT Português
pt-BR Português (Brasil)
pt-BR-forced Português (Brasil) [forced]
fi Suomi
sv Svenska

HBO GO Asia

Codec Language
en English
zh-Hant Traditional Chinese
zh-Hans Simplified Chinese
ms Malay
th Thai
id Indonesian

iQIYI iq.com

Codec Language
en English
zh-Hant Traditional Chinese
zh-Hans Simplified Chinese
ms Malay
vi Vietnamese
th Thai
id Indonesian
es Spanish
ko Korean
ar Arabic

Viu

Codec Language
en English
zh-Hant Traditional Chinese
zh-Hans Simplified Chinese
ms Malay
th Thai
id Indonesian
my Burmese

WeTV

Codec Language
en English
zh-Hant Traditional Chinese
zh-Hans Simplified Chinese
ms
th Thai
id Indonesian
pt Português
es Spanish
ko Korean

meWATCH

  1. Login to meWATCH on the browser.
  2. Select a movie or series you want to download
  3. Open the devtools in the browser (Windows: Ctrl + Shift + I or F12; macOS: ⌘ + ⌥ + I.)
  4. Refresh the page and select Network on devtools
  5. Type https://www.mewatch.sg/api/account/profile in the filter to find the profile api
  6. Copy profile token (X-Authorization) from profile API Request Headers (Do not include Bearer, the profile token starts with eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJ) and paste in Subtitle-Downloader/user_config.toml ([credentials.meWATCH] profile_token='').

Now E, Now Player

  • Copy the user-agent from login browser https://www.whatsmyua.info/ and paste it in Subtitle-Downloader/user_config.toml (User-Agent). The user-agent must be the same as login browser user-agent.

More Examples

  • Download all seasons and all episodes
python subtitle_downloader.py URL
  • Download season 1 episode 1
python subtitle_downloader.py URL -s 1 -e 1
  • Download season 1 episode 1's subtitle with all languages
python subtitle_downloader.py URL -s 1 -e 1 -slang all
  • Download all episode subtitles in all languages: en, zh-Hant
python subtitle_downloader.py https://www.disneyplus.com/series/loki/6pARMvILBGzF -slang en,zh-Hant
  • Download the latest episode
python subtitle_downloader.py URL -l
  • Download season 1 episode 1-10
python subtitle_downloader.py URL -s 1 -e 1-10
  • Download season 1 episode 1,3,5
python subtitle_downloader.py URL -s 1 -e 1,3,5
  • Download season 1 episodes with NordVPN (region=tw)
python subtitle_downloader.py URL -s 1 -p tw
  • Download season 1 episodes with proxy (Clash)
python subtitle_downloader.py URL -s 1 -p http:127.0.0.1:7890
  • Download season 1 episodes with .ass format subtitle
python subtitle_downloader.py URL -s 1 -sf .ass

NOTICE

  • Few streaming services have Geo-blocking, make sure you are in the same region or use a proxy to bypass restrictions.
  • Disney+ doesn't support VPN.
  • Viki has API protection, don't call API too often. (Only catch 100% completed subtitles)

FAQ

  • Any issue during downloading subtitles, upload the screenshot and log file (Please provide title, platform, and region).
  • Make sure the video contains embedded subtitles (subtitles able to turn on and off) and it is playable in your region.

Support & Contributions

  • Please ⭐️ this repository if this project helped you!
  • Contributions of any kind are welcome!

Buy Me A Coffee

Appendix

subtitle-downloader's People

Contributors

ricoloic avatar wayneclub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

subtitle-downloader's Issues

UnicodeEncodeError on windows

UnicodeEncodeError: 'cp950' codec can't encode character '\u53d1' in position 0: illegal multibyte sequence

# subtitle_tool.py
`def file_create(...)` missing `encoding='utf-8'`

Disney+ return 404

# disneyplus.py
m3u_sub = m3u8.load(os.path.join(base_url, media.uri))

windows used backslash to join, the result url contain specials character \r and inaccessible
https://xxxx.com/ps01/disney/xxxxxx + r/composite_xxxxxx = https://xxxx.com/ps01/disney/xxxxxx + \ + r/composite_xxxxxx

WeTV = Sorry, there's no embeded subtitles in this video

Hi, I tried for download all subtitle in 1 season in wetv.vip, but no subtitle downloaded, and stop function at random episode, it was said = Sorry, there's no embeded subtitles in this video
Please add function = download subtitle from episod 5 - 15 in example
Thanks

Disney+ not working

Tried across multiple shows, and I keep getting the following error

{"errors":[{"code":"media.not-playable"}]}

I'm based in Australia, and aren't going through any VPN. I can playback content just fine, not sure why the script is being refused like this. Running it locally on my Windows machine.

Unexpected convert .eac3 to .srt

Platform: Disney+

Download xxxx.vtt
...
Merge
...
Convert .eac3 to .srt

When the audio is available and --alang is enabled, the program try to convert audio to srt in the last step and crashed.

Failed to download friday's subtitle.

ip: 35.245.38.33 (US)
Traceback (most recent call last):
File "subtitle_downloader.py", line 158, in
friday.main()
File "/content/Subtitle-Downloader/services/friday.py", line 313, in main
r'<h2 class="title-eng">(.+)</h2>', res.text)[0].strip().replace(',', ',')
IndexError: list index out of range

Disney - Expected str.

Command : python subtitle_downloader.py https://www.disneyplus.com/en-gb/movies/encanto/33q7DY1rtHQH -slang "en"

Traceback (most recent call last):
  File "Subtitle-Downloader\subt
itle_downloader.py", line 175, in <module>
    disney_plus.main()
  File "Subtitle-Downloader\serv
ices\disneyplus\disneyplus.py", line 313, in main
    self.movie_subtitle()
  File "Subtitle-Downloader\serv
ices\disneyplus\disneyplus.py", line 70, in movie_subtitle
    folder_path = os.path.join(self.output, title)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\ntpath.py", l
ine 78, in join
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType

time out

hello,
Please advice, i always got Timeout, please retry

Sekuat Cahaya Mentari

Season 1 total: 18 episode(s) update to episode 19 download all episodes

Chromedriver is already installed.
Finding Sekuat Cahaya Mentari.S01E01.WEB-DL.WeTV.vtt ...

Timeout, please retry.

Add support HiTV

Hello, can u add support for download subtitles from HiTV ? Thanks

wetv.vip Support

Hey, First of all, I just wanted to say incredible work, this is amazing

I wanted to ask if you could add wetv.vip subtitles also?

Thanks

Add support for hotstar.com (Disney+)

Looks like you can download sub and video files through url mpd.
https://hses5.hotstar.com/videos/hotstarint/{season_id}/{ep_id}/v3/{media_id}/52c00cab79ea700623db005b11805403/master-72bb5517b8-tv-0.mpd

thanks for the useful script!

HBO Go Asia

Hi, some weeks ago, I tried hbogoasia, and it worked...
but now, its error, like this =
{"code":500,"message":"Wrong Username or Password"}

Username & password is correct. Please fix it.
Thanks

Add support for HBOMax

I want to thank you first for the script.
HBOGo it's not available in Europe anymore, only HBOMax.
Can you add support for emea region ? Subtitles are in vtt format.

DNSP issue for content with name containing special characters

Hi there,

There is an issue downloading subs from Disney+ (probably other services too) for films/TV shows with name containing special characters, e.g. M*A*S*H*

https://www.disneyplus.com/series/m-a-s-h/319NpA8tlhOI

The script fails to create a folder for such name since it contains special characters, resulting in failed run, please find log below.

Log:

M*A*S*H total: 11 season(s)

Season 1 total: 24 episode(s)   download all episodes

Download: M*A*S*H.S01E01.WEB-DL.DisneyPlus.vtt

Traceback (most recent call last):
  File "D:\Downloads\Subtitle-Downloader-main\subtitle_downloader.py", line 152, in <module>
    main()
  File "D:\Downloads\Subtitle-Downloader-main\subtitle_downloader.py", line 140, in main
    service['class'](args).main()
  File "D:\Downloads\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 367, in main
    self.series_subtitle()
  File "D:\Downloads\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 172, in series_subtitle
    self.get_subtitle(subtitle_list, program_type,
  File "D:\Downloads\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 319, in get_subtitle
    os.makedirs(lang_folder_path, exist_ok=True)
  File "D:\Apps\!P\!Code\Python\Python310\lib\os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "D:\Apps\!P\!Code\Python\Python310\lib\os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "D:\Apps\!P\!Code\Python\Python310\lib\os.py", line 225, in makedirs
    mkdir(name, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\Downloads\\Subtitle-Downloader-main\\downloads\\M*A*S*H.S01'

There is probably more content with special characters in the name so I would probably adjust the special character treatment in the script rather than add an exception for MASH.

Here's the list of Windows special characters:

< (less than)
> (greater than)
: (colon)
" (quote)
/ (forward slash)
\ (backslash)
| (vertical bar)
? (question mark)
* (asterisk)
^ (caret) *FAT

Many thanks for the great coding - you saved me lots of scripting :)

catchplay无法下载

catchplay只有俗女养成记可以下载,因为字幕没有加密,其他都无法下载

Disney - No suitable formats

This problem is only with some seasons of some shows from Disney.
It doenst work even english subtitle to download.

Traceback (most recent call last):
  File "I:\Subtitle-Downloader-main\subtitle_downloader.py", line
175, in <module>
    disney_plus.main()
  File "I:\Subtitle-Downloader-main\services\disneyplus\disneyplus
.py", line 348, in main
    self.series_subtitle()
  File "I:\Subtitle-Downloader-main\services\disneyplus\disneyplus
.py", line 162, in series_subtitle
    self.get_subtitle(subtitle_list, program_type,
  File "I:\Subtitle-Downloader-main\services\disneyplus\disneyplus
.py", line 311, in get_subtitle
    self.download_subtitle(subtitles, languages)
  File "I:\Subtitle-Downloader-main\services\disneyplus\disneyplus
.py", line 320, in download_subtitle
    merge_subtitle_fragments(
  File "I:\Subtitle-Downloader-main\utils\subtitle.py", line 168,
in merge_subtitle_fragments
    subs = convert_list_to_subtitle(subtitles)
  File "I:\Subtitle-Downloader-main\utils\subtitle.py", line 135,
in convert_list_to_subtitle
    return pysubs2.ssafile.SSAFile.from_string(text)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages
\pysubs2\ssafile.py", line 133, in from_string
    return cls.from_file(fp, format_, fps=fps, **kwargs)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages
\pysubs2\ssafile.py", line 160, in from_file
    format_ = autodetect_format(fragment)
  File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages
\pysubs2\formats.py", line 78, in autodetect_format
    raise FormatAutodetectionError("No suitable formats")
pysubs2.exceptions.FormatAutodetectionError: No suitable formats

Didn't work

Colab: python3: can't open file 'subtitle_downloader.py': [Errno 2] No such file or directory
Windows run Subtitle-Downloader.bat keep asking for url though input and enter correctly

Catchplay+ error

D:\GitHub\Subtitle-Downloader>python subtitle_downloader.py https://www.catchplay.com/tw/video/332c41b2-dce5-4930-82a0-1f28ec7313e5 -s 1 -e 3 -p http://127.0.0.1:7890

Proxy Status: Activated Local Proxy (http://127.0.0.1:7890)
ip: ***(TW)
Traceback (most recent call last):
  File "D:\GitHub\Subtitle-Downloader\subtitle_downloader.py", line 161, in <module>
    catchplay.main()
  File "D:\GitHub\Subtitle-Downloader\services\catchplay.py", line 244, in main
    if data['apolloState'][f'Program:{program_id}']['type'] == 'MOVIE':
KeyError: 'apolloState'
{
    "videoId": "ae01be24-0731-11ed-83d9-02de47760d8e",
    "videoType": "vod",
    "videoUrl": "***",
    "maxBitrate": 368640000,
    "maxResolution": 1080,
    "duration": 2786,
    "defaultLanguage": {
        "audio": "zh-TW",
        "subtitle": "zh-TW"
    },
    "offline": {
        "support": false,
        "version": 3
    },
    "license": {
        "url": "https://vcmsapi.catchplay.com/video/v3/drm/license/widevine",
        "extraHeaders": {
            "Authorization": "Bearer ***",
            "ASIAPLAY-PLATFORM": "desktop",
            "ASIAPLAY-DEVICE-TYPE": "web",
            "ASIAPLAY-DEVICE-MODEL": "windows",
            "ASIAPLAY-OS-TYPE": "chrome",
            "ASIAPLAY-OS-VERSION": "103.0.0",
            "ASIAPLAY-APP-VERSION": "3.0",
            "Content-Type": "text/plain;charset=UTF-8"
        }
    },
    "cards": {
        "warning": {
            "second": 4,
            "url": "https://cms.asset.catchplay.com/ratingcard/Copyright.jpg"
        }
    }
}

CatchPlay无法获取到字幕?

一直尝试 还是403,是api接口的问题吗

2022-02-21 00:57:40 - urllib3.connectionpool - 818 - Starting new HTTPS connection (1): ipinfo.io
2022-02-21 00:57:41 - urllib3.connectionpool - 395 - https://ipinfo.io:443 "GET /json HTTP/1.1" 200 299
2022-02-21 00:57:41 - root - 111 - ip: (TW)
2022-02-21 00:57:41 - urllib3.connectionpool - 818 - Starting new HTTPS connection (1): ipinfo.io
2022-02-21 00:57:41 - urllib3.connectionpool - 395 - https://ipinfo.io:443 "GET /json HTTP/1.1" 200 299
2022-02-21 00:57:41 - services.catchplay - 73 - (Some) cookies expired, renew...
2022-02-21 00:57:41 - urllib3.connectionpool - 818 - Starting new HTTPS connection (1): www.catchplay.com
2022-02-21 00:57:42 - urllib3.connectionpool - 395 - https://www.catchplay.com:443 "GET /ssr-oauth/getOauth HTTP/1.1" 200 325
2022-02-21 00:57:42 - services.catchplay - 102 - User: {'token_type': 'bearer', 'access_token': 'eyJhbGciOiJI45sInR5cCI6IkpXVCJ9.eyJncmFudF90eXBlIjo45550X2NyZWRlbnRpYWxzIiwic2NvcGUiOlsiLioiXSwiaXNzIjoiU1VOLUF1dGgiLCJleHAiOjE2NDU0MzM45555lhdCI6MTY0NTM0NjY5OSwiY2xpZW50X2lkIjoiYmQyOGE4ZTYtMGE0NC00YTcwLTg2NjItMWI2NjExZjM4YTJlIn0.bD7GghVw2xQpqrKtFcu6fd545454545454M'}
2022-02-21 00:57:42 - urllib3.connectionpool - 818 - Starting new HTTPS connection (1): www.catchplay.com
2022-02-21 00:57:42 - urllib3.connectionpool - 395 - https://www.catchplay.com:443 "GET /tw/video/5b967c34-e3ac-4e2f-9353-28f3102dc581 HTTP/1.1" 200 611337
2022-02-21 00:57:42 - services.catchplay - 134 -
和平使者 共有:1 季
2022-02-21 00:57:42 - services.catchplay - 151 -
第 1 季 共有:8 集 下載全集

2022-02-21 00:57:42 - services.catchplay - 155 - 尋找 和平使者.S01E01.WEB-DL.CatchPlay.vtt ...
2022-02-21 00:57:42 - urllib3.connectionpool - 818 - Starting new HTTPS connection (1): hp2-api.catchplay.com
2022-02-21 00:57:43 - urllib3.connectionpool - 395 - https://hp2-api.catchplay.com:443 "POST /me/play HTTP/1.1" 403 131
2022-02-21 00:57:43 - common.utils - 96 -
{"code":"100008","updatedDate":"2022-02-20T16:57:43Z","message":"Insufficient permission to access the request path POST /me/play"}

Help with Catchplay?

Hi sorry to open an issue, I'm a new to Phyton and I can't get this to work.

  1. I installed Phyton.
  2. I took the cookies and copied to Subtitle-Downloader/configs/cookies
  3. Double click install_requirements.bat
  4. Double click Subtitle_Downloader.bat
  5. A cmd window appeared
  6. Type in this command: python subtitle_downloader.py https://www.catchplay.com/id-en/video/743c61f7-19a7-488d-910b-7d32a89bd841 -slang all but doesn't work, said unrecognized argument.

Screenshot: https://puu.sh/JcnWA/1ecc32f193.png

What did I do wrong? This film is a rental movie, I have paid for it. Does it need account info? If yes, I don't use e-mail but phone number, is it possible to be done? Can the software be used for rent movie? Thanks in advance.

EDIT:
Tried in Collab and it said Out of services! Does this mean it doesn't work for Catchplay?

HBOGO Asia can't log in, showing 401

F:\Subtitle-Downloader-main>python subtitle_downloader.py https://www.hbogoasia.tw/series/sr562 -slang zh-Hans,zh-Hant,en -s 2 -d
2022-03-29 21:25:43 - urllib3.connectionpool - 823 - Starting new HTTPS connection (1): ipinfo.io:443
2022-03-29 21:25:43 - urllib3.connectionpool - 393 - https://ipinfo.io:443 "GET /json HTTP/1.1" 200 None
2022-03-29 21:25:43 - utils.proxy_environ - 124 - ip: 123.252.97.21 (TW)
2022-03-29 21:25:43 - urllib3.connectionpool - 823 - Starting new HTTPS connection (1): api2.hbogoasia.com:443
2022-03-29 21:25:44 - urllib3.connectionpool - 393 - https://api2.hbogoasia.com:443 "GET /v1/geog?lang=zh-Hant&version=0&bundleId=www.hbogoasia.tw HTTP/1.1" 200 341
2022-03-29 21:25:44 - services.hbogoasia - 80 - TWN
2022-03-29 21:25:44 - urllib3.connectionpool - 393 - https://api2.hbogoasia.com:443 "POST /v1/hbouser/login?lang=zh-Hant HTTP/1.1" 401 53
2022-03-29 21:25:44 - services.hbogoasia - 123 - {"status":500,"message":"Wrong Username or Password"}
2022-03-29 21:25:45 - urllib3.connectionpool - 393 - https://api2.hbogoasia.com:443 "GET /v1/tvseason/list?parentId=562&territory=TWN HTTP/1.1" 200 7238
2022-03-29 21:25:45 - services.hbogoasia - 198 -
異星災變 共有:2 季
2022-03-29 21:25:45 - services.hbogoasia - 205 - season url: https://api2.hbogoasia.com/v1/tvepisode/list?parentId=1494&territory=TWN
2022-03-29 21:25:45 - urllib3.connectionpool - 393 - https://api2.hbogoasia.com:443 "GET /v1/tvepisode/list?parentId=1494&territory=TWN HTTP/1.1" 200 42835
2022-03-29 21:25:45 - services.hbogoasia - 219 -
第 2 季 共有:8 集 下載全集
2022-03-29 21:25:45 - services.hbogoasia - 231 - 尋找 異星災變.S02E01.WEB-DL.HBOGO.vtt ...
2022-03-29 21:25:45 - services.hbogoasia - 245 - https://api2.hbogoasia.com/v1/asset/playbackurl?territory=TWN&contentId=036271X0&sessionToken=&channelPartnerID=&operatorId=SIN&lang=zh-Hant
2022-03-29 21:25:45 - urllib3.connectionpool - 393 - https://api2.hbogoasia.com:443 "GET /v1/asset/playbackurl?territory=TWN&contentId=036271X0&sessionToken=&channelPartnerID=&operatorId=SIN&lang=zh-Hant HTTP/1.1" 400 77
Traceback (most recent call last):
File "subtitle_downloader.py", line 178, in
hbogoasia.main()
File "F:\Subtitle-Downloader-main\services\hbogoasia.py", line 314, in main
self.series_subtitle(series_url)
File "F:\Subtitle-Downloader-main\services\hbogoasia.py", line 233, in series_subtitle
content_id, episode, folder_path, file_name)
TypeError: cannot unpack non-iterable NoneType object

老大,能否增加Disney+的Codec!

Disney+
正常情况下,英语字幕默认为 “English[CC]”,Codec是 en,此字幕为[sdh],里面有很多提示音的英文解释,适合残障人士,本人也比较喜欢这种字幕,因为我可以用它来练习英语口语和听力。
现在麻烦了,Disney+在部分剧集中又增加了一种字幕“English”,这样就变成了,“English”,Codec是 en,而之前的“English[CC]”,Codec是 en-gb。

这样我输入命令下载,打上en-gb,结果说找不到这个字幕。。。
求老大帮忙,增加en-gb这个Codec行吗?因为我就喜欢这种[sdh]字幕,里面有很多细节描述,对我学英文有帮助。
拜托啦,我自己曾经尝试编辑源代码,但是技术太差,没法通过。谢谢喔~~~
^_^

2023-02-17_182808

VIKI Support

Hey, First of all, I just wanted to say incredible work, this is amazing

I wanted to ask if you could add VIKI subtitles also?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.