Allows you to download subtitles from Amazon Video
< Feedback on Amazon Video - subtitle downloader
Some other changes that would be nice:
- Using the compression:"DEFLATE" option on zip.generateAsync instead of the default (STORE, no compression)
- Adding a way to save the original .ttml2 file instead of/along with the converted .srt
This is clearly a feature request so could you not mark it as "OK - script works, but has bugs" when there are no bugs? -_-
@match
and used matching so lax that it should work on all Amazon URLs..7z
, .rar
, .tar.*
, etc..str
fails my script downloads the original .ttml2
format. If you want to force it you can edit xmlToSrt
function to return null
.Okay. (can't update without a reply)
Works well, but the regex has to change to make it work with more amazon.co.jp URLs.
The script should work for both URLs, but the current version only works with the first one:
https://www.amazon.co.jp/-/dp/B079T9DSY6/
https://www.amazon.co.jp/-/en/gp/video/detail/B079T9DSY6/
I tried to fix it. Original regex:
/^https:\/\/(www|smile)\.amazon\.co\.jp\/(gp\/(video|product)|(.*?\/)?dp)\/.+/
New regex:
/^https:\/\/(www|smile)\.amazon\.co\.jp\/(.*\/.*)?\/(gp\/(video|product)|(.*?\/)?dp)\/.+/