From f24c0955ce894f96051b7a7dd4960f1885c3b4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 28 Nov 2015 10:24:16 -0600 Subject: [PATCH] ADded libraries for the new stable version. --- src/application.py | 2 +- src/keys/__init__.py | 13 ++++++++++--- .../{api_keys32.dll => snapshot_api_keys32.dll} | Bin .../{api_keys64.dll => snapshot_api_keys64.dll} | Bin src/keys/lib/stable_api_keys32.dll | Bin 0 -> 11776 bytes src/keys/lib/stable_api_keys64.dll | Bin 0 -> 14848 bytes src/long_tweets/twishort.py | 7 ++++++- 7 files changed, 17 insertions(+), 5 deletions(-) rename src/keys/lib/{api_keys32.dll => snapshot_api_keys32.dll} (100%) rename src/keys/lib/{api_keys64.dll => snapshot_api_keys64.dll} (100%) create mode 100644 src/keys/lib/stable_api_keys32.dll create mode 100644 src/keys/lib/stable_api_keys64.dll diff --git a/src/application.py b/src/application.py index 4a465b7d..92d44524 100644 --- a/src/application.py +++ b/src/application.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- name = 'TWBlue' -snapshot = True +snapshot = False if snapshot == False: version = "0.80" update_url = 'http://twblue.es/updates/twblue_ngen.json' diff --git a/src/keys/__init__.py b/src/keys/__init__.py index 1fe28f1d..3145f5a0 100644 --- a/src/keys/__init__.py +++ b/src/keys/__init__.py @@ -5,10 +5,17 @@ import exceptions from ctypes import c_char_p from libloader import load_library import paths -if platform.architecture()[0][:2] == "32": - lib = load_library("api_keys32", x86_path=paths.app_path("keys/lib")) +if application.snapshot == True: + if platform.architecture()[0][:2] == "32": + lib = load_library("snapshot_api_keys32", x86_path=paths.app_path("keys/lib")) + else: + lib = load_library("snapshot_api_keys64", x64_path=paths.app_path("keys/lib")) else: - lib = load_library("api_keys64", x64_path=paths.app_path("keys/lib")) + if platform.architecture()[0][:2] == "32": + lib = load_library("stable_api_keys32", x86_path=paths.app_path("keys/lib")) + else: + lib = load_library("stable_api_keys64", x64_path=paths.app_path("keys/lib")) + # import linuxKeys # lib = linuxKeys diff --git a/src/keys/lib/api_keys32.dll b/src/keys/lib/snapshot_api_keys32.dll similarity index 100% rename from src/keys/lib/api_keys32.dll rename to src/keys/lib/snapshot_api_keys32.dll diff --git a/src/keys/lib/api_keys64.dll b/src/keys/lib/snapshot_api_keys64.dll similarity index 100% rename from src/keys/lib/api_keys64.dll rename to src/keys/lib/snapshot_api_keys64.dll diff --git a/src/keys/lib/stable_api_keys32.dll b/src/keys/lib/stable_api_keys32.dll new file mode 100644 index 0000000000000000000000000000000000000000..d8b1a54de0aa769e200abe65140d0f42ebbba62a GIT binary patch literal 11776 zcmeHNeRLbum4CL!i2_Pwz-A3NFn|&qnq)PyoLK%&Y?BY1#z~wI@=-^&#*PwM64EG6 zLI4|CWv7E!v1BRBq1$-FvMr^DkL5ssZDV3LCM~okumRRAUt3yvWoQCyVhD@&ci)T@ zW73|Uvxgr3$eeTa-n;L9y?gJw?~SAt8{#a7F(v>~DaH<C?}%8lsyT z7;DU$#&Tc2aa~&5J8Z_)=VxXA6}uRiYXLAWkdHPGU;{8y2k&R=c4q-Y_Ved4d}46m zAmi&|Ow{>^f%x(8W(#Al(ICLsBN=8wOnUZV3_XAJi8EGsmdQ6Eci&m?Y1Dj0-l<^l zV0vA&)=743VNF}+yIqP4Q$@sR1CTA3(%{Tf%WVDggF4|}ny&?rEY5`1ctBS>zcm!1 z;UERQ$(Webbh9n}^JQHg_t6#*kX#Wk;oOf-3RK}ts`+u~?)Up3Td??e0C|_7)uu$sXIDqB=ZMuyE@f+4bLY~%a zwMLJIyZTs@sUzBNxvLn{kwlg@({vL=5LPQKLN{rKvIJzMjzz|Vp?a%{#G(~Q9_Ai_ zw$v+;F>|y({A%B07)8djExqsSvsa)=tb&yEH?Vt7pYWxoL2G`j>wp4)J!Jt;GxUwHg&**CTem? z74avYy#PXnAp}!AZvQ}tgM@%gLFZv;5^+rEjO4S?he4vAjQ!g+q&G4)H+odvWGzx( zQTJG_>X7QS7OO8IXr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?dfKsBuxVBV2`G$RYV8Vo zy^PgbyZR73sNG=gG1@j+d%Qgz0r==XYsk0O@4@c|-?N6~V7C`P!F-=;{*Imi+i%^_ z6$twLau*L~%AtRUvZP_@l@0EB6?`v67t_$k|FrakHgp7KQzN(j-0L6R1BGXQ_ch&N zejg5u`%Y}OpMxJR54axH=UFn~bmO~zdH?&*|A%XI=dArNJy4FlA54Y)j{frg%6`_b a<3&2g|3`}2S--8nu)hec=bryh9{5i%d?KR& literal 0 HcmV?d00001 diff --git a/src/long_tweets/twishort.py b/src/long_tweets/twishort.py index ea147903..635545a4 100644 --- a/src/long_tweets/twishort.py +++ b/src/long_tweets/twishort.py @@ -18,6 +18,7 @@ ############################################################ import requests import keys +import application from twitter import utils def get_twishort_uri(url): @@ -41,10 +42,14 @@ def get_full_text(uri): # return False def create_tweet(user_token, user_secret, text, media=0): + if application.snapshot == True: + url = "http://twblue.es/snapshot_twishort.php" + else: + url = "http://twblue.es/stable_twishort.php" data = {"user_token": user_token, "user_secret": user_secret, "text": text.encode("utf-8"), "media": media} - response = requests.post("http://twblue.es/twishort.php", data=data) + response = requests.post(url, data=data) # print response.json() return response.json()["text_to_tweet"] \ No newline at end of file