0t79JeIfK01RHyzo

joined 4 months ago
[–] 0t79JeIfK01RHyzo@lemmy.ml 3 points 1 week ago* (last edited 1 week ago)

~~It does work~~ I know it at least partially works

class add:
     count = 0

     def __init__(self):
             add.count += 1
             self.value = add.count
     def __str__(self):
             if self.value == 1:
                     return "3"
             elif self.value == 2:
                     return "7"
             else:
                     return "32"

result = add()  # 1 2
print(result)
result = add()  # 3 4
print(result)
result = add()  # 3 4 5 20
print(result)

[–] 0t79JeIfK01RHyzo@lemmy.ml 3 points 1 week ago (1 children)

It's kinda wild.

https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md

It also works in places I wouldn't have expected it, like Twitch livestreams

yt-dlp https://www.twitch.tv/amazonmusic

[–] 0t79JeIfK01RHyzo@lemmy.ml 5 points 1 week ago (4 children)

yt-dlp converts it to a mp4 successfully for me.

yt-dlp https://prod.vodvideo.cbsnews.com/cbsnews/vr/hls/3330898_hls/master.m3u8