Hello community, here is the log from the commit of package python-gTTS-token for openSUSE:Factory checked in at 2018-12-03 10:11:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gTTS-token (Old) and /work/SRC/openSUSE:Factory/.python-gTTS-token.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gTTS-token" Mon Dec 3 10:11:43 2018 rev:3 rq:653417 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gTTS-token/python-gTTS-token.changes 2018-11-06 14:39:27.256590088 +0100 +++ /work/SRC/openSUSE:Factory/.python-gTTS-token.new.19453/python-gTTS-token.changes 2018-12-03 10:12:17.475603465 +0100 @@ -1,0 +2,6 @@ +Sat Dec 1 14:20:32 UTC 2018 - Adrian Schröter <[email protected]> + +-- update to version 1.1.3 + * updating tkk extraction due to new Google Translate UI + +------------------------------------------------------------------- Old: ---- gTTS-token-1.1.2.tar.gz New: ---- gTTS-token-1.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gTTS-token.spec ++++++ --- /var/tmp/diff_new_pack.HLy7MF/_old 2018-12-03 10:12:18.671602357 +0100 +++ /var/tmp/diff_new_pack.HLy7MF/_new 2018-12-03 10:12:18.675602354 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gTTS-token -Version: 1.1.2 +Version: 1.1.3 Release: 0 Summary: Python module for calculating a token to run the Google text-to-speech engine License: MIT ++++++ gTTS-token-1.1.2.tar.gz -> gTTS-token-1.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gTTS-token-1.1.2/PKG-INFO new/gTTS-token-1.1.3/PKG-INFO --- old/gTTS-token-1.1.2/PKG-INFO 2018-09-21 19:19:54.000000000 +0200 +++ new/gTTS-token-1.1.3/PKG-INFO 2018-11-29 17:53:48.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: gTTS-token -Version: 1.1.2 +Version: 1.1.3 Summary: Calculates a token to run the Google Translate text to speech Home-page: https://github.com/boudewijn26/gTTS-token Author: Boudewijn van Groos diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gTTS-token-1.1.2/gTTS_token.egg-info/PKG-INFO new/gTTS-token-1.1.3/gTTS_token.egg-info/PKG-INFO --- old/gTTS-token-1.1.2/gTTS_token.egg-info/PKG-INFO 2018-09-21 19:19:54.000000000 +0200 +++ new/gTTS-token-1.1.3/gTTS_token.egg-info/PKG-INFO 2018-11-29 17:53:48.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: gTTS-token -Version: 1.1.2 +Version: 1.1.3 Summary: Calculates a token to run the Google Translate text to speech Home-page: https://github.com/boudewijn26/gTTS-token Author: Boudewijn van Groos diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gTTS-token-1.1.2/gtts_token/gtts_token.py new/gTTS-token-1.1.3/gtts_token/gtts_token.py --- old/gTTS-token-1.1.2/gtts_token/gtts_token.py 2018-09-21 19:12:57.000000000 +0200 +++ new/gTTS-token-1.1.3/gtts_token/gtts_token.py 2018-11-29 17:49:00.000000000 +0100 @@ -53,9 +53,13 @@ return self.token_key response = requests.get("https://translate.google.com/") - line = response.text.split('\n')[-1] - tkk_expr = re.search(".*?(TKK=.*?;)W.*?", line).group(1) + tkk_expr = re.search("(tkk:.*?),", response.text) + if not tkk_expr: + raise ValueError( + "Unable to find token seed! Did https://translate.google.com change?" + ) + tkk_expr = tkk_expr.group(1) try: # Grab the token directly if already generated by function call result = re.search("\d{6}\.[0-9]+", tkk_expr).group(0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gTTS-token-1.1.2/gtts_token/version.py new/gTTS-token-1.1.3/gtts_token/version.py --- old/gTTS-token-1.1.2/gtts_token/version.py 2018-09-21 19:17:55.000000000 +0200 +++ new/gTTS-token-1.1.3/gtts_token/version.py 2018-11-29 17:49:00.000000000 +0100 @@ -1 +1 @@ -__version__ = '1.1.2' +__version__ = '1.1.3'
