Commit for 0.51 release

This commit is contained in:
2015-01-12 09:25:07 -06:00
parent d31a3e5bb7
commit d2e6221432
5 changed files with 56 additions and 38 deletions

View File

@@ -2,16 +2,16 @@
name = 'TWBlue'
snapshot = False
if snapshot == False:
version = "0.52"
version = "0.51"
update_url = 'http://twblue.es/updates/tw_blue.json'
else:
version = "7"
update_url = 'http://twblue.es/updates/snapshots.json'
author = u"Manuel Cortéz"
authorEmail = "manuel@manuelcortez.net"
copyright = u"copyright (C) 2013-2014, Manuel cortéz"
copyright = u"copyright (C) 2013-2015, Manuel cortéz"
description = u"TW Blue is an app designed to use Twitter in a simple and fast way and avoiding, as far as possible, the consumtion of excessive resources of the machine where its running. With this app youll have access to most twitter features."
translators = [u"Bryner Villalobos (English)", u"Mohammed Al Shara (Arabic)", u"Joan Rabat, Juan Carlos Rivilla(Catalan)", u"Manuel cortéz(Spanish)", u"Sukil Etxenike Arizaleta(Basque)", u"Jani Kinnunen(finnish)", u"Alba Quinteiro(Galician)", u"Robert Osztolykan(Hungarian)", u"Paweł Masarczyk(Polish)", u"Odenilton Júnior Santos(Portuguese)", u"Alexander Jaszyn(Russian)", u"Burak (Turkish)"]
translators = [u"Bryner Villalobos (English)", u"Mohammed Al Shara (Arabic)", u"Joan Rabat, Juan Carlos Rivilla (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Alba Quinteiro (Galician)", u"Steffen Schultz (German)", u"Robert Osztolykan (Hungarian)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Alexander Jaszyn (Russian)", u"Burak (Turkish)"]
url = u"http://twblue.es"
report_bugs_url = "http://twblue.es/bugs/api/soap/mantisconnect.php?wsdl"

Binary file not shown.

View File

@@ -2,14 +2,14 @@ msgid ""
msgstr ""
"Project-Id-Version: TW Blue 0.44\n"
"POT-Creation-Date: 2014-12-10 23:20+Hora estándar central (México)\n"
"PO-Revision-Date: 2014-12-24 17:41+0100\n"
"Last-Translator: Steffen Schultz <schulle3o@yahoo.de>\n"
"PO-Revision-Date: 2015-01-12 08:55-0600\n"
"Last-Translator: Manuel Cortéz <manuel@manuelcortez.net>\n"
"Language-Team: Manuel Cortez <info@twblue.com.mx>\n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.9\n"
"X-Generator: Poedit 1.6.7\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -241,7 +241,6 @@ msgid "You've turned the volume up or down"
msgstr "Du hast die Lautstärke verändert"
#: ../src\extra\SoundsTutorial\gui.py:37
#, fuzzy
msgid ""
"It seems as though the currently used sound pack needs an update. %i fails "
"are still be required to use this function. Make sure to obtain the needed "

View File

@@ -17,4 +17,16 @@
#
############################################################
import requests
import re
api_key = "d757b8e7f9221d8b95880a02bab524b7"
def get_tweet(uri):
global api_key
data = requests.get("http://api.twishort.com/1.1/get.json", params={"uri": uri, "api_key": api_key})
return data.json()["text"]
def get_uri(url):
url_ = re.search("twishort.com/", url)
return url[url_.end():]