changeset 58:edbe4aff3b78

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 861f4a9992ae
children a3927b2ec6e6
files channeldownloader.py
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/channeldownloader.py	Mon Aug 16 23:07:23 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))