we often have to import media in this general manner:
for media_folder in folder:
info = read(media + '/info.json')
forager.create(media_folder + '/media.mp4', info, info.tags)
we can attempt to handle simple control structures inside of the forager cli, much like how ffmpeg handles this:
#!/bin/bash
# ifunny:
forager \
--database ~/.local/share/forager.db \
'ifunny/%04d/media.*' \
--json 'info=(__media_folder__)/media_info.json' \
--title '(info.title)' \
--description '(info.description)' \
--source-created-at '(info.timestamp * 1000)' \
--tag 'source:ifunny'
--tag 'ifunny:(info.tags)' \
--tag 'username:(info.username)' \
we often have to import media in this general manner:
we can attempt to handle simple control structures inside of the forager cli, much like how ffmpeg handles this: