When I visit this website, I want to get a vtt subtitle file, but when I open the developer tool options, the VTT subtitle file I get is as shown in the figure. How should I deal with this subtitle file? I want to get a subtitle file of normal format and size. What should I do? Is there a good way?The Website address:https://www.ctv.ca/shows/love-island-usa/episode-1-s7e1
[Attachment 87315 - Click to enlarge]
[Attachment 87316 - Click to enlarge]
+ Reply to Thread
Results 1 to 7 of 7
-
Last edited by pipaguo; 7th Jun 2025 at 04:06.
-
I have another question, if anyone can answer it. I want to know if the subtitles on the website Crave can be obtained? Are the subtitles on that website in the normal format and size? I don't have a Crave account yet. I am considering whether to register one. But I am afraid that the VTT subtitles on Crave will be the same as the subtitles on CTV. Then the account will be registered in vain. Because I only want the subtitle file of this program, I am not interested in other programs and their subtitles.
-
Weird way to present subtitles.
If there is no good solution to this problem, I think I would save my time by doing audio to text transcription, at least I would get full text subtitles this way -
script.py
Code:import sys import re import requests from urllib.parse import urlparse import os def clean_vtt_content(content): pattern = r'(-->.*?)\s+line:\d+% align:center' cleaned = re.sub(pattern, r'\1', content) return cleaned def get_filename_from_url(url): parsed = urlparse(url) return os.path.basename(parsed.path) def main(): if len(sys.argv) != 2: print("Usage: python3 script.py <URL_to_vtt_file>") sys.exit(1) url = sys.argv[1] filename = get_filename_from_url(url) try: response = requests.get(url) response.raise_for_status() content = response.text cleaned_content = clean_vtt_content(content) with open(filename, 'w', encoding='utf-8') as f: f.write(cleaned_content) print(f"Cleaned VTT saved as: {filename}") except requests.exceptions.RequestException as e: print(f"Error fetching the VTT file: {e}") sys.exit(1) if __name__ == "__main__": main()
Code:python script.py https://capi.9c9media.com/destinations/ctv_hub/platforms/desktop/playback/contents/3128780/contentPackages/7561131/manifest.vtt
-
-
Similar Threads
-
Vtt with subtitles embedded in video
By j1simon in forum SubtitleReplies: 1Last Post: 4th Feb 2024, 02:01 -
vtt subtitles that have a new more complete line every 40 ms
By ampersand in forum SubtitleReplies: 0Last Post: 27th Nov 2022, 01:01 -
remove sprite.vtt subtitles
By frant in forum Video Streaming DownloadingReplies: 2Last Post: 8th Sep 2022, 09:11 -
Get VTT fragments in one vtt or srt file, MPD not m3u8
By maronsca in forum Video Streaming DownloadingReplies: 13Last Post: 27th Aug 2022, 10:02 -
Help to get subtitles in Sprite vtt thumbnail
By farafero21 in forum Video Streaming DownloadingReplies: 4Last Post: 10th Oct 2021, 12:19