MichaelYochpaz / iSubRip

A Python command-line tool for scraping and downloading subtitles from AppleTV and iTunes movie pages.
MIT License
119 stars 15 forks source link

[Feature Request]: List Available Subtitles for Not-Yet-Released Movies #66

Open TJruee opened 7 months ago

TJruee commented 7 months ago

Confirmations

Description

It can be done that it will find the language I chose in "config.toml" even if the subtitles have not yet been released

exmple: Found movie: Dune: Part Two (2024) Found Subtitles (9): English, Greek, French, Arabic, Czech,Finnish,Hebrew,Greek,Turkish Release date (iTunes): 2024-04-16.

New exmple: Found movie: Godzilla x Kong: The New Empire [2024] (ID: 1733624264) Found Subtitles (9): English, Greek, French, Arabic, Czech, Finnish, Hebrew, Greek, Turkish. (If it is possible for the names to be color yellow, that is better) 'Godzilla x Kong: The New Empire' is currently unavailable on iTunes, and will be available on 2024-05-14.

TJruee commented 6 months ago

@MichaelYochpaz Is this a good idea?

MichaelYochpaz commented 6 months ago

Hey, it's a valid suggestion, but more complicated than it may seem.

Currently, the downloaded subtitles are fetched from the iTunes playlist of the movie (a file that refers to different streams to download, like different video / audio / subtitles tracks), not from the data that's used to display available languages on the movie pages on AppleTV.

When a movie is not available yet, it usually has no playlist (since you can't stream it yet), thus the subtitles that will be available once it's released can't be listed using the current method used.

It's very possible to fetch subtitles data from API's data (the subtitles listed on the AppleTV page), but it requires new additional code specifically for that, and requires the code to check languages that are available specifically for the iTunes channel in case there are multiple channels (read here for more information).

So while it's possible and a valid feature request, it's one that will take some time to implement. I leave this feature request open for now, but can't guarantee it'll be implemented any time soon.