Wednesday, 29 April 2020

using jq with youtube-dl

i want to post process the outputted .json file from youtube-dl (using the --exec COMMAND switch) to a .metadata file for plex.

here's a sample of some of that .json

{"upload_date": "20120824", "vcodec": "vp9", "extractor": "youtube", "series": null, "chapters": null, "height": 720, "like_count": 1355, "duration": 712, "fulltitle": "Show of the Week - Sleeping Dogs", "id": "zeqF4LVMe64", "album": null, "view_count": 47295, "playlist": "Show of The Week | Every Week with Outside Xbox", "start_time": null, "title": "Show of the Week - Sleeping Dogs" 

what i need to build is a txt file (which will have the ext .metadata) that looks like this.

[metadata] title=My show title summary=My show summary release=2017-05-01 studio=Studio XYZ genres=Linux, Automation 

what command would i use to do this?



Submitted by te5s3rakt | #Specialdealer Special Offer Online Shopping Store 2016

No comments:

Post a Comment