Skip to content

Commit

Permalink
core: Fix support for lowratevoid
Browse files Browse the repository at this point in the history
The interface is similar to voipbuster.

Tested-by: Danilo Brelih <[email protected]>
  • Loading branch information
Markos Chandras committed Oct 3, 2012
1 parent b4d4ca3 commit 7276243
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

** 1.49
1) Add support for voipwise
2) Fix support for lowratevoip thanks to Danilo Brelih

** 1.48
1) Fix accounts for Forthnet and Voipbuster providers
Expand Down
4 changes: 2 additions & 2 deletions pysmssendmod/account_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def myinsertaccount(f,want_gpg):


def creditsleft(f,account,foobar,verbose):
if account != "otenet" and account != "forthnet" and account != "pennytel" and account != "voipbuster":
if account != "otenet" and account != "forthnet" and account != "pennytel" and account != "voipbuster" and account != "lowratevoip":
if verbose:
print account+": Trying to find how much money left ...\n"
resp=foobar.open(acc_opensms[str(account)])
Expand All @@ -257,7 +257,7 @@ def creditsleft(f,account,foobar,verbose):
f.ui.credits.setText("Credits Left : "+str(final))
if verbose:
print "you have "+final+" left...\n"
elif account == "voipbuster":
elif account == "voipbuster" or account == "lowratevoip":
if verbose:
print account+": Trying to find how much money left ...\n"
resp=foobar.open(acc_opensms[str(account)])
Expand Down
6 changes: 3 additions & 3 deletions pysmssendmod/cmdfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
def creditsleft(account,foobar,verbose):
if verbose:
print "Retrieving remaining credits..."
if account != "otenet" and account != "forthnet" and account != "voipbuster":
if account != "otenet" and account != "forthnet" and account != "voipbuster" and account != "lowratevoip":
gethtml=foobar.response()#get the html and parse it. Im not going to tell the details.
html=gethtml.read()
balance=html.find("balanceid")
balanceline=html[balance:]
euros=balanceline.split('&nbsp;')
creditsleft=euros[1].split('</b>')
final=str(creditsleft[0])
elif account == "voipbuster":
elif account == "voipbuster" or account == "lowratevoip":
gethtml=foobar.response()
html=gethtml.read()
balance=html.find("balance-section")
Expand Down Expand Up @@ -95,7 +95,7 @@ def cmdlogin(account,username,password,verbose):#login function for cmd tools
foobar.select_form(name="loginform")
elif account!="otenet":
foobar.select_form(nr=0)
if account == "voipbuster":
if account == "voipbuster" or account == "lowratevoip":
foobar["login[username]"] = username
foobar["login[password]"] = password
elif account != "forthnet":
Expand Down
2 changes: 1 addition & 1 deletion pysmssendmod/core_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def mylogin(f,tray,verbose,want_gpg,gpg_key):
foobar.select_form(name="loginform")
else:
foobar.select_form(nr=0)
if account == "voipbuster":
if account == "voipbuster" or account == "lowratevoip":
foobar["login[username]"] = username
foobar["login[password]"] = password
elif account != "forthnet":
Expand Down
2 changes: 1 addition & 1 deletion pysmssendmod/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'voipbuster':'https://www.voipbuster.com/en/login',
'voipdiscount':'https://www.voipdiscount.com/myaccount/index.php',
'voipwise':'https://www.voipwise.com/myaccount/index.php',
'lowratevoip':'https://www.lowratevoip.com/myaccount/index.php',
'lowratevoip':'https://www.lowratevoip.com/login',
'voipbusterpro':'https://www.voipbusterpro.com/myaccount/index.php',
'freevoip':'https://www.freevoip.com/myaccount/index.php',
'12voip':'https://www.12voip.com/myaccount/index.php',
Expand Down

0 comments on commit 7276243

Please sign in to comment.