This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Converts Naruto Kai .mkv episodes with separate subtitle streams to .mp4 with hardcoded subtitles. | |
| # Chromecast doesn't like the subtitle streams and displays them with no spacing. | |
| # The script uses ffmpeg with nvidia hardware acceleration. | |
| # | |
| # Recommend to dryrun first which will echo all commands that it will run. If you're happy with it, | |
| # then run the script without the dryrun flag | |
| # Usage: ./naruto-kai-sub-fix.sh /dir/to/search -dryrun | |
| # Usage: ./naruto-kai-sub-fix.sh /dir/to/search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import json | |
| with open('source.csv') as csvfile, open("target.jsonl", "a") as jsonfile: | |
| r = csv.reader(csvfile) | |
| next(r, None) | |
| for row in r: | |
| model = { | |
| "messages": [ | |
| { |
OlderNewer