Skip to content

Instantly share code, notes, and snippets.

View Araevin's full-sized avatar

Brian Latwis Araevin

View GitHub Profile
@Araevin
Araevin / youtubedl-chapter-extract.py
Created June 29, 2020 02:21
Assuming a linux system with youtube-dl, ffmpeg, and python3 installed, this script should download the audio from a youtube video and break it up into tracks by chapter
import argparse
import os
import json
parser = argparse.ArgumentParser(description='Download all chapters as audio from a youtube link')
parser.add_argument('url', help='Link to youtube video')
args = parser.parse_args()
print('Requesting information for: ' + args.url + '\n')
## Dungeondraft Map Merger Utility
## Author: Brian Latwis & mtvjr
## Date: 04/09/2020
import argparse
import json
import random
from copy import deepcopy
## Create a set to store unique node ids