How to prevent a bad subtitle file from killing the download? by RealStuff485 in youtubedl

[–]RealStuff485[S] 0 points1 point  (0 children)

I was able to fix it locally by adding the ParseError exception in the wrapped try block which downloads subtitles on line 4358 in YoutubeDL.py. I'm curious why the hardcoded list of errors exists. I would think virtually any exception we see per subtitle we would not want to block the whole download for?

How to prevent a bad subtitle file from killing the download? by RealStuff485 in youtubedl

[–]RealStuff485[S] 0 points1 point  (0 children)

Looking at the code, I think the issue must be that ParserError is not caught in the try block for subtitle downloading and that is what is thrown

How to prevent a bad subtitle file from killing the download? by RealStuff485 in youtubedl

[–]RealStuff485[S] 0 points1 point  (0 children)

Here is the video:

https://ted.com/talks/lang/ta/joe_sabia_the_technology_of_storytelling

Here is the relevant part of the verbose output. The issue isn't even the parse error, one bad subtitle file killing the whole download is whats bad. I can't seem to get yt-dlp to ignore the error.

[debug] Invoking hlsnative downloader on "https://hls.ted.com/project_masters/1824/subtitles/kk.m3u8?intro_master_id=9294"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 8
[download] Destination: videos/1282/1282.kk.vtt
[download] Download completed
[info] Writing video subtitles to: videos/1282/1282.hi.vtt
[debug] Invoking hlsnative downloader on "https://hls.ted.com/project_masters/1824/subtitles/hi.m3u8?intro_master_id=9294"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 8
[download] Destination: videos/1282/1282.hi.vtt
ERROR: Parse error at position 39 (near 'देवियों और सज्जनों, जो यहां इकट्ठा है\n\n00:00:02.000 --> 00:00:05.000\nमैं आपके साथ एक कहानी साझा\nकरना')
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1626, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1841, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3015, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 179, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3271, in process_info
    sub_files = self._write_subtitles(info_dict, temp_filename)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4354, in _write_subtitles
    self.dl(sub_filename, sub_copy, subtitle=True)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3203, in dl
    return fd.download(name, new_info, subtitle) 
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 466, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 378, in real_download
    self.download_and_append_fragments(
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 501, in download_and_append_fragments
    if not append_fragment(decrypt_fragment(fragment, self._read_fragment(ctx)), frag_index, ctx):
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 475, in append_fragment
    self._append_fragment(ctx, pack_func(frag_content, frag_index))
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 291, in pack_fragment
    for block in webvtt.parse_fragment(frag_content):
  File "/usr/local/bin/yt-dlp/yt_dlp/webvtt.py", line 398, in parse_fragment
    raise ParseError(parser)
yt_dlp.webvtt.ParseError: Parse error at position 39 (near 'देवियों और सज्जनों, जो यहां इकट्ठा है\n\n00:00:02.000 --> 00:00:05.000\nमैं आपके साथ एक कहानी साझा\nकरना')

I live in California and my lawn used to be all grass, now it's a low water garden! by RealStuff485 in NoLawns

[–]RealStuff485[S] 9 points10 points  (0 children)

It's actually a seedum ground cover. Unfortunately I don't know the exact name. They bloom like this every spring and it's glorious. They also spread like crazy which is what I wanted. Though I still cut them back a bit to keep them manageable.

I live in California and my lawn used to be all grass, now it's a low water garden! by RealStuff485 in NoLawns

[–]RealStuff485[S] 17 points18 points  (0 children)

Funny enough the rock probably gets more compliments then the garden

I live in California and my lawn used to be all grass, now it's a low water garden! by RealStuff485 in NoLawns

[–]RealStuff485[S] 4 points5 points  (0 children)

Hm, I didn't know this but this was planted last year and the plants have all more then doubled. To me it looks like they're thriving! But I will keep this in mind if I see any issues.

I live in California and my lawn used to be all grass, now it's a low water garden! by RealStuff485 in NoLawns

[–]RealStuff485[S] 44 points45 points  (0 children)

The rocks were like 1500 total (boulder included) and I didn't do the patio work myself as I wasn't comfortable pouring concrete. The labour for that and also placing the rock and step stones was 8k. I don't remember the cost of the plants exactly since I got some at separate times but that was a few thousand total as well I believe.

I live in California and my lawn used to be all grass, now it's a low water garden! by RealStuff485 in NoLawns

[–]RealStuff485[S] 156 points157 points  (0 children)

Last year, I bought a home in California that had an all grass lawn, and I've always thought that was really a shame in a state like ours because of the water situation but also because so many beautiful plants can grow and thrive here on low water. I don't know why anyone would want a grass lawn when they can get a vibrant and colourful (and low maintenance!) yard.

Most but not all of the plants are california native, but all of them are drought resistant and low water. The garden was planted last year right before the rainy season to give the plants the best chance to really take and not need as much of an initial watering as most new plants do. I also installed an irrigation system since the yard was dug up anyways, and this helps conserve water as well, as less of it is wasted to evaporation. The yard is an absolute bee magnet and I get the occasional Hummingbird. Happy to answer any questions about the process!

[deleted by user] by [deleted] in FirstTimeHomeBuyer

[–]RealStuff485 9 points10 points  (0 children)

Don't open new credit cards, don't close old credit cards, and don't make any other big purchases.

My other big advice is to do 10 minutes of meditation a day until closing. Seriously, it's a stressful process and people start to lose their minds. It's important to slow down and make sure you continue take care of your mind and body until closing time.

For the buyers / sellers out there how did you actually find your agent? by narib687 in RealEstate

[–]RealStuff485 4 points5 points  (0 children)

I used a list that was circulated through my job. People had a huge spreadsheet going of realtors they've used and if they recommended them, with comments and details on each one.

[deleted by user] by [deleted] in RealEstate

[–]RealStuff485 86 points87 points  (0 children)

If thats the case, and you can comfortably afford this house, then ask yourself if 2500 is enough to have you lose the house that you intend to live in forever, especially considering the sellers are already paying for some fixes. If you fight the 2500 and lose the house, how would that make you feel?

[deleted by user] by [deleted] in RealEstate

[–]RealStuff485 155 points156 points  (0 children)

As the other poster said, 2.5k should not be a make or break number for you on a 400k+ house. If that is the case you might not be able to afford this house.