Skip to content

Commit

Permalink
Support AppleTV URLs without a movie title
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelYochpaz committed Aug 31, 2022
1 parent ef02376 commit 3120b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isubrip/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# RegEx
# - Urls (Match groups result in a URL without movie's title, which is a valid URL)
ITUNES_URL_REGEX = r"^(https?://itunes\.apple\.com/[a-z]{2}/movie/(?:[\w\-%]+/)?(id\d{9,10}))(?:$|\?.*)"
APPLETV_URL_REGEX = r"^(https?://tv\.apple\.com/([a-z]{2})/movie/[\w\-%]+/(umc\.cmc\.[a-z\d]{24,25}))(?:$|\?.*)"
APPLETV_URL_REGEX = r"^(https?://tv\.apple\.com/([a-z]{2})/movie/(?:[\w\-%]+/)?(umc\.cmc\.[a-z\d]{24,25}))(?:$|\?.*)"

# - WEBVTT
WEBVTT_PERCENTAGE_REGEX = r"\d{1,3}(?:.\d+)?%"
Expand Down

0 comments on commit 3120b7c

Please sign in to comment.