File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
__license__ = "MIT"
6
6
__author__ = "Soheab_"
7
- __version__ = "2.0.2 "
7
+ __version__ = "2.1.0 "
Original file line number Diff line number Diff line change 6
6
7
7
8
8
class Image :
9
- def __init__ (self , url : str , session ) -> None :
9
+ def __init__ (self , url : str , response ) -> None :
10
10
self .url : str = url
11
- self .response : ClientResponse = session
11
+ self .response : ClientResponse = response
12
12
13
13
def __str__ (self ) -> str :
14
14
return self .url if self .url is not None else ""
Original file line number Diff line number Diff line change @@ -264,6 +264,10 @@ async def what(self, image: str) -> Image:
264
264
response = await self ._api_request ("what" , {"image" : str (image )})
265
265
return Image (str (response .url ), response )
266
266
267
+ async def shame (self , image : str ) -> Image :
268
+ response = await self ._api_request ("shame" , {"image" : str (image )})
269
+ return Image (str (response .url ), response )
270
+
267
271
# Other
268
272
269
273
async def support_server (self , creator : bool = False ) -> Union [str , Tuple ]:
Original file line number Diff line number Diff line change 2
2
See here what changed or broke each version.
3
3
4
4
---
5
+ ### v2.1.0 - January 3, 2021
6
+ - Added support for a new endpoint: ` .shame() ` [ See more in docs] ( docs.md#await-alex_apishameimage )
7
+
5
8
### v2.0.2 - November 24, 2020
6
9
- Push better README to PyPi
7
10
- Fixes ` .pornhub() ` having the same value for text2.
@@ -13,7 +16,7 @@ See here what changed or broke each version.
13
16
This introduced the required token in the constructor to be up to date with the api.
14
17
15
18
### v1.7.0 - November 1, 2020
16
- - Added support for new endpoint: ` .what() ` [ See more in docs] ( docs.md#await-alex_apiwhatimage )
19
+ - Added support for a new endpoint: ` .what() ` [ See more in docs] ( docs.md#await-alex_apiwhatimage )
17
20
- Now using urllib.parse to parse text.
18
21
- Added ` bytesio=True ` to ` Image.read() ` set it to False if you want the bytes returned instead of an io.BytesIO object.
19
22
- Removed ` .steam() ` .
You can’t perform that action at this time.
0 commit comments