RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

ERROR when trying to create vid

Open mlvps opened this issue 4 years ago • 3 comments

Using the feature to not create the same video twice from JasonLovesDoggo, I get this error. Can someone help?

Traceback (most recent call last): File "C:\Users\User\Desktop\Reddit Bot\main.py", line 73, in <module> main() File "C:\Users\User\Desktop\Reddit Bot\main.py", line 63, in main reddit_object = get_obj() File "C:\Users\User\Desktop\Reddit Bot\main.py", line 60, in get_obj reddit_obj = get_subreddit_threads(os.getenv("VOICE")) File "C:\Users\User\Desktop\Reddit Bot\reddit\subreddit.py", line 42, in get_subreddit_threads submission = get_subreddit_undone(threads, subreddit) File "C:\Users\User\Desktop\Reddit Bot\utils\subreddit.py", line 7, in get_subreddit_undone done_videos = json.load(done_vids_raw) File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 293, in load return loads(fp.read(), File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 38 column 1 (char 1434)

mlvps avatar Jun 17 '22 17:06 mlvps

nvm fixed it

mlvps avatar Jun 17 '22 19:06 mlvps

nvm fixed it

how?

zalikz avatar Jun 20 '22 20:06 zalikz

nvm fixed it

how?

its an error because json cant read the json file. you have to keep the json layout in the videos.json file. So, if you dont know what the layout is you can just delete everything and fill in [] that should fix it.

mlvps avatar Jun 21 '22 11:06 mlvps