Mercurial > channeldownloader
changeset 1:b50c74fc47b5
Update channeldownloader.py
why did i even do that
committer: GitHub <noreply@github.com>
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
|---|---|
| date | Wed, 13 Oct 2021 18:45:50 -0400 |
| parents | d098a293a02d |
| children | c65d14f01453 |
| files | channeldownloader.py |
| diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/channeldownloader.py Sat Jul 31 01:38:46 2021 -0400 +++ b/channeldownloader.py Wed Oct 13 18:45:50 2021 -0400 @@ -181,13 +181,6 @@ print(" unknown error downloading video!") print(e) # metadata - meta = { - "fulltitle": i["title"], - "description": i["description"], - "upload_date": i["upload_date"], - "uploader": i["uploader"] - } - metajson = json.dumps(meta) with open("{2}\\{0}-{1}.info.json".format(sanitize_filename(i["title"], restricted=True), i["id"], output), "w") as jsonfile: - print(metajson, end="", file=jsonfile) + print(json.dumps(i), end="", file=jsonfile) print(" saved {0}-{1}.info.json".format(sanitize_filename(i["title"], restricted=True), i["id"], output))
