tasks/multimedia-archive: clean up

This commit is contained in:
Gabriel Arazas 2022-10-03 16:43:26 +08:00
parent bfe4a8bc8d
commit 66f535df97
3 changed files with 3 additions and 5 deletions

View File

@ -28,7 +28,7 @@ This is used to easily import them from a process that is used to externally gen
Some of the data may have a schema available (e.g., link:./data/jobs.schema.json[`./data/jobs.schema.json`] for the jobs database). Some of the data may have a schema available (e.g., link:./data/jobs.schema.json[`./data/jobs.schema.json`] for the jobs database).
* link:./scripts/[`./scripts/`] contains a bunch of scripts specific for this tasks. * link:./scripts/[`./scripts/`] contains a bunch of scripts specific for this tasks.
Mainly, it contains scripts to generate data found in `./data/` such as link:./scripts/convert-newpipe-db-to-json[a script that is used to generate a jobs database suitable for this task from a NewPipe database]. Mainly, it contains scripts to generate data found in `./data/` such as link:./scripts/create-jobs-from-newpipe-db[a script that is used to generate a jobs database suitable for this task from a NewPipe database].
* link:./default.nix[`./default.nix`], the entry point for this module. * link:./default.nix[`./default.nix`], the entry point for this module.
@ -39,7 +39,7 @@ Mainly, it contains scripts to generate data found in `./data/` such as link:./s
In this task, I usually just download videos from YouTube. In this task, I usually just download videos from YouTube.
While I could note every preferred creator manually, I could automate them by getting a list of subscriptions from my Newpipe config which I use surprisingly more often than I thought. While I could note every preferred creator manually, I could automate them by getting a list of subscriptions from my Newpipe config which I use surprisingly more often than I thought.
This is done by running the link:./convert-newpipe-db-to-json[`./convert-newpipe-db-to-json`] script and specifying the exported Newpipe database (as a ZIP file). This is done by running the link:./scripts/create-jobs-from-newpipe-db[`./scripts/create-jobs-from-newpipe-db`] script and specifying the exported Newpipe database (as a ZIP file).
[CAUTION] [CAUTION]
==== ====

View File

@ -30,7 +30,7 @@ in
# The global output for all of the jobs. # The global output for all of the jobs.
"--output" "--output"
"%(uploader,artist,creator|Unknown)s/%(release_date>%F,upload_date>%F|Unknown)s-%(title).%(ext)s" "%(uploader,artist,creator|Unknown)s/%(release_date>%F,upload_date>%F|Unknown)s-%(title)s.%(ext)s"
# Select only the most optimal format for my usecases. # Select only the most optimal format for my usecases.
"--format" "--format"

View File

@ -10,10 +10,8 @@ import sys
import sqlite3 import sqlite3
import json import json
import re import re
import os
import shutil import shutil
import tempfile import tempfile
import fileinput
from pathlib import Path from pathlib import Path