Subtitle-Downloader icon indicating copy to clipboard operation
Subtitle-Downloader copied to clipboard

Failed to download subtitles from Disney Plus

Open rDamascena opened this issue 9 months ago • 6 comments

What is the solution to the problem below?

python subtitle_downloader.py https://www.disneyplus.com/browse/entity-75c90eca-8969-4edb-ac1a-7165cff2671c

Successfully logged in. Welcome **********
Traceback (most recent call last):
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 151, in <module>
    main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 140, in main
    service['class'](args).main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 361, in main
    self.movie_subtitle()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 45, in movie_subtitle
    title = data['text']['title']['full']['program']['default']['content'].strip(
TypeError: 'NoneType' object is not subscriptable

rDamascena avatar May 01 '24 16:05 rDamascena

我也遇到完全一样的问题!不知道是不是因为disney登录之后,还需要选择相应的用户?而一般用户都设置了自己的PIN码,所以程序没有真正的登录进去!这样的话,是不是用cookie的方式更好一些?

frankwu8765 avatar May 05 '24 11:05 frankwu8765

What is the solution to the problem below?

python subtitle_downloader.py https://www.disneyplus.com/browse/entity-75c90eca-8969-4edb-ac1a-7165cff2671c

Successfully logged in. Welcome **********
Traceback (most recent call last):
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 151, in <module>
    main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 140, in main
    service['class'](args).main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 361, in main
    self.movie_subtitle()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 45, in movie_subtitle
    title = data['text']['title']['full']['program']['default']['content'].strip(
TypeError: 'NoneType' object is not subscriptable

Disney Update new API. Fixed. Please try again

wayneclub avatar May 09 '24 20:05 wayneclub

What is the solution to the problem below?

python subtitle_downloader.py https://www.disneyplus.com/browse/entity-75c90eca-8969-4edb-ac1a-7165cff2671c

Successfully logged in. Welcome **********
Traceback (most recent call last):
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 151, in <module>
    main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 140, in main
    service['class'](args).main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 361, in main
    self.movie_subtitle()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 45, in movie_subtitle
    title = data['text']['title']['full']['program']['default']['content'].strip(
TypeError: 'NoneType' object is not subscriptable

Disney Update new API. Fixed. Please try again

I tried and the error persists!

python subtitle_downloader.py "https://www.disneyplus.com/browse/entity-d90a933e-3b20-45a3-9bcf-b07e631a603f" --season 1

Successfully logged in. Welcome *******
Traceback (most recent call last):
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 151, in <module>
    main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\subtitle_downloader.py", line 140, in main
    service['class'](args).main()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 370, in main
    self.movie_subtitle()
  File "C:\Users\Adriana\Documents\Subtitle-Downloader-main\services\disneyplus\disneyplus.py", line 46, in movie_subtitle
    title = data['text']['title']['full']['program']['default']['content'].strip(
TypeError: 'NoneType' object is not subscriptable

rDamascena avatar May 10 '24 05:05 rDamascena

https://www.disneyplus.com/browse/entity-75c90eca-8969-4edb-ac1a-7165cff2671c

I mean I had updated the project need to redownload and try again.

wayneclub avatar May 28 '24 14:05 wayneclub

https://www.disneyplus.com/browse/entity-75c90eca-8969-4edb-ac1a-7165cff2671c

I mean I had updated the project need to redownload and try again.

It is working for movies only. If I try to download TV series the json-response seems to be empty.

{'data': {'DmcVideoBundle': {'containers': [], 'extras': {'meta': {'hits': 0, 'offset': 0, 'page_size': 50, 'hasMore': False}, 'videos': []}, 'promoLabels': None, 'related': {'experimentToken': '', 'items': [], 'meta': {'hits': 0, 'offset': 0, 'page_size': 8, 'hasMore': False}}, 'video': None}}}

Edit: The recognition for difference between movies and TV shows needs to be updated. I solved it for me by forcing to use the "series_subtitle"-method at the end of the ./Subtitle-Downloader/services/disneyplus/disneyplus.py

achatschnecke avatar May 31 '24 17:05 achatschnecke

Edit: The recognition for difference between movies and TV shows needs to be updated. I solved it for me by forcing to use the "series_subtitle"-method at the end of the ./Subtitle-Downloader/services/disneyplus/disneyplus.py

Thanks to your tip I was able to download tv shows again.

But now I have a different issue. After a couple of days of usage, now Disney started requiring a one-time code sent via email every time I login. This has made the script stop working with the error "Error: [{'code': 'throttled'}]"

Any way to fix this?

Manujito avatar Aug 22 '24 15:08 Manujito