Embed key on api only contained embed's url and the thumbnail url.
Api didn't provide any data about the thumbnail (size,width etc) and there wasn't much useful data besides that so i didn't create class for embed, and didn't use the File class to create an thumbnail object either.
EMBED Method
Added embed property to post, None if no embed. Used regex to parse the url.
Embed key on api only contained embed's url and the thumbnail url. Api didn't provide any data about the thumbnail (size,width etc) and there wasn't much useful data besides that so i didn't create class for embed, and didn't use the File class to create an thumbnail object either.
FIXES
Accessing the session like this:
Was throwing this error:
So replaced with
self._post._thread
instead.Replacing <p with \n like this: https://github.com/bibanon/py8chan/blob/bc498f3da434538676172e4b6f4413a0b105639d/py8chan/util.py#L26 was adding a newline beginning to texts:
Used .strip() to get rid of that.