Created
December 27, 2020 07:15
-
-
Save dgndgn/0a2d3a27bee89e19957d2d494b018149 to your computer and use it in GitHub Desktop.
unsee fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/unsee_dl/unsee_beta.py | |
+++ b/unsee_dl/unsee_beta.py | |
@@ -4,7 +4,8 @@ import aiohttp | |
from unsee_dl.unsee import UnseeImage | |
-_GRAPHQL_URL = "https://api.unsee.cc/graphql" | |
+_DOMAIN = "https://unsee.cc/" | |
+_GRAPHQL_URL = _DOMAIN + "graphql" | |
class Client: | |
@@ -70,7 +71,7 @@ fragment AuthPayloadFragment on AuthPayload { | |
image = UnseeImage( | |
album_id, album_image["id"], self.out_path, self.group_album | |
) | |
- await self._download_and_save_image(image, album_image["urlBig"]) | |
+ await self._download_and_save_image(image, _DOMAIN+album_image["urlBig"]) | |
async def _create_session(self, album_id): | |
# getSessions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment