ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
463 stars 44 forks source link

youtube-dl's "--write-info-json" local json file option support #40

Closed ZeroQI closed 4 years ago

ZeroQI commented 4 years ago

It is possible to instruct YouTubeDL to generate a local Json file with: youtube-dl.exe KJB_RyESQqs --write-info-json --skip-download -o "[%(id)s].%(ext)s"

Example attached: KJB_RyESQqs.info.json.txt

The aim would be to make the agent use local metadata in the local file, if present:

Banner-Keith commented 4 years ago

Hi @ZeroQI I took a crack at this and I believe I have it working properly at least for TV Series libraries. I do not have a Movie library to test it on. Would you like me to create a fork and open a PR for you to review?

ZeroQI commented 4 years ago

@Banner-Keith Yes please. I could expend on that to support the movie library

Banner-Keith commented 4 years ago

I believe the code is done for the movie library part too. Just haven't tested it yet. I'll try to get the PR up later tonight.

glensc commented 2 years ago

Documenting this: https://github.com/ZeroQI/YouTube-Agent.bundle/pull/100