News for hackers. Stuff that matters.
Re:Self hosted YouTube media server – Tube Archivist by codetrotter on Sunday July 16, 2023 @07:07AM (#36745622)
Does it save the video thumbnail as well? Video description? Comments? Channel name? Channel avatar? etc

Currently I use yt-dlp to manually download individual videos that I want to keep. At the moment I only save the video itself. And most of the time I then also paste the URL of the video into archive.is save page and web.archive.org/save so that there is a snapshot of what the video page itself looked like at the time. But this is still incomplete, and relies on those services continuing to exist. Locally saving a snapshot of the page like that, and then also saving the thumbnail and perhaps more of the comments would be nice.

Re:Self hosted YouTube media server – Tube Archivist by CrampusDestrus on Sunday July 16, 2023 @07:27AM (#36745764)
You can embed both the thumbnail and the description of a video with ytdl, if you use the appropriate containers
Re:Self hosted YouTube media server – Tube Archivist by tjfl on Sunday July 16, 2023 @09:08AM (#36746592)
I didn't know this, neat! Going to try this out:

https://www.reddit.com/r/youtubedl/comments/mcvgmr/download_...

Re:Self hosted YouTube media server – Tube Archivist by submeta on Sunday July 16, 2023 @07:47AM (#36745915)
Check this code fragment:

    youtube_details = {
        "youtube_id": vid_id,
        "channel_name": vid["channel"],
        "vid_thumb_url": vid["thumbnail"],
        "title": vid["title"],
        "channel_id": vid["channel_id"],
        "duration": duration_str,
        "published": published,
        "timestamp": int(datetime.now().timestamp()),
        # Pulling enum value out so it is serializable
        "vid_type": vid_type.value,
    }
Re:Self hosted YouTube media server – Tube Archivist by brettwilcox on Sunday July 16, 2023 @09:47AM (#36746947)
You should also check out https://archivebox.io/
Re:Self hosted YouTube media server – Tube Archivist by moritzruth on Sunday July 16, 2023 @10:18AM (#36747279)
It saves all the things you mentioned plus the number of views and likes.
Re:Self hosted YouTube media server – Tube Archivist by abracadaniel on Sunday July 16, 2023 @11:00AM (#36747738)
I’ve been using the ytdl-sub docker container for managing automated download of channels and importing them into Plex https://github.com/jmbannon/ytdl-sub
Re:Self hosted YouTube media server – Tube Archivist by snthd on Sunday July 16, 2023 @11:18AM (#36747975)
Re:Self hosted YouTube media server – Tube Archivist by progman32 on Sunday July 16, 2023 @03:02PM (#36750348)
Yes to all of those. It even indexes most of those so you can do full text searches if you want.