wayneclub / Subtitle-Downloader

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.
MIT License
278 stars 60 forks source link

Hi. I use this Python package via Colab. When I try to download subtitles from Apple TV, sometimes I see only zh-Hant subtitles, even if another subtitles are available. #67

Closed wayneclub closed 7 months ago

wayneclub commented 7 months ago
          Hi. I use this Python package via Colab. When I try to download subtitles from Apple TV, sometimes I see only zh-Hant subtitles, even if another subtitles are available.

For example: Simulant (2023)

Link: https://tv.apple.com/tr/movie/simulant/umc.cmc.38jwhekca6uyrvey6zs3n0xkk

Turkish subtitle is available for this movie. But, it downloads zh-Hant subtitles only.

How can I fix this issue? Thank you.

Screenshot 2023-12-03 075937

Originally posted by @probiome in https://github.com/wayneclub/Subtitle-Downloader/issues/65#issuecomment-1837369982

wayneclub commented 7 months ago
          Hi. I use this Python package via Colab. When I try to download subtitles from Apple TV, sometimes I see only zh-Hant subtitles, even if another subtitles are available.

For example: Simulant (2023)

Link: https://tv.apple.com/tr/movie/simulant/umc.cmc.38jwhekca6uyrvey6zs3n0xkk

Turkish subtitle is available for this movie. But, it downloads zh-Hant subtitles only.

How can I fix this issue? Thank you.

Screenshot 2023-12-03 075937

Originally posted by @probiome in #65 (comment)

Please open a new issue next time.

  1. Colab default-language select the language you prefer. You can use all to download all languages of subtitles.

  2. Local Edit user_config.toml default-language to the language you prefer. You can use all to download all languages of subtitles.

[subtitles]
default-language = 'all'
default-format = '.srt'
vleaf0210 commented 7 months ago
          Hi. I use this Python package via Colab. When I try to download subtitles from Apple TV, sometimes I see only zh-Hant subtitles, even if another subtitles are available.

예: 시뮬런트(2023)

링크: https://tv.apple.com/tr/movie/simulant/umc.cmc.38jwhekca6uyrvey6zs3n0xkk

이 영화에는 터키어 자막을 사용할 수 있습니다. 하지만 zh-Hant 자막만 다운로드됩니다.

이 문제를 어떻게 해결할 수 있나요? 감사합니다.

스크린샷 2023-12-03 075937

원래 게시자:@probiome#65(댓글 )

https://www.file.io/MxWc/download/SDyirJmPfuXG I got it using a different tool. I couldn't download Turkish subtitles with this tool. I don't know why.

wayneclub commented 7 months ago
          Hi. I use this Python package via Colab. When I try to download subtitles from Apple TV, sometimes I see only zh-Hant subtitles, even if another subtitles are available.

예: 시뮬런트(2023) 링크: https://tv.apple.com/tr/movie/simulant/umc.cmc.38jwhekca6uyrvey6zs3n0xkk 이 영화에는 터키어 자막을 사용할 수 있습니다. 하지만 zh-Hant 자막만 다운로드됩니다. 이 문제를 어떻게 해결할 수 있나요? 감사합니다. 스크린샷 2023-12-03 075937 원래 게시자:@probiome#65(댓글 )

https://www.file.io/MxWc/download/SDyirJmPfuXG I got it using a different tool. I couldn't download Turkish subtitles with this tool. I don't know why.

Yes. I know iTunes Subtitle Downloader. This script was designed differently because that script depends on js load and gets the m3u8 HSL URL. You will find out not all the movies and TV episodes can be downloaded. As I mentioned in the readme, this script has some prerequisites. You will need the subscription.

probiome commented 7 months ago
          Hi. I use this Python package via Colab. When I try to download subtitles from Apple TV, sometimes I see only zh-Hant subtitles, even if another subtitles are available.

예: 시뮬런트(2023) 링크: https://tv.apple.com/tr/movie/simulant/umc.cmc.38jwhekca6uyrvey6zs3n0xkk 이 영화에는 터키어 자막을 사용할 수 있습니다. 하지만 zh-Hant 자막만 다운로드됩니다. 이 문제를 어떻게 해결할 수 있나요? 감사합니다. 스크린샷 2023-12-03 075937 원래 게시자:@probiome#65(댓글 )

https://www.file.io/MxWc/download/SDyirJmPfuXG I got it using a different tool. I couldn't download Turkish subtitles with this tool. I don't know why.

Yes. I know iTunes Subtitle Downloader. This script was designed differently because that script depends on js load and gets the m3u8 HSL URL. You will find out not all the movies and TV episodes can be downloaded. As I mentioned in the readme, this script has some prerequisites. You will need the subscription.

No need a subscription to download substitles from Apple TV.

I have the previous version of your python package on my computer. I ran it on Windows 11 and it worked for me. But, for some movies it downloads only zh-Hant subtitles. When a movie has multiple subtitles, it downloads all of them or a specific substitle.

probiome commented 7 months ago

Finally, fixed it. :))

Subtitle language

vleaf0210 commented 7 months ago

Finally, fixed it. :))

Subtitle language

How did you fix it?

probiome commented 7 months ago

I opened "AppleTVPlus.toml" with Notepad. And I changed these:

sf = '143480' # "storefront", country | 143441: US, 143444: GB, 143470:TW, 143480:TR

I added Turkey's storefront ID as sf = '143480'

I opened user_config.toml with Notepad and changed default-language for subtitles as "all".

[subtitles] default-language = 'all'

That's all. :)

probiome commented 7 months ago

Get a country code from Apple's StoreFront IDs: https://gist.github.com/theiostream/5871770

You may need these codes someday.

vleaf0210 commented 7 months ago

Oh, Thank you.