Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Commits

Ticket #10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL

 

 

MythTV commits RSS feed   Index | Next | Previous | View Threaded


noreply at mythtv

Jul 31, 2012, 1:36 PM

Post #1 of 3 (89 views)
Permalink
Ticket #10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL

#10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL
-----------------------------------+-------------------------
Reporter: esarfl@… | Owner: wagnerrp
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
-----------------------------------+-------------------------
`MythXML().getExpiring()` seems to map to `Dvr/GetExpiring`, when the
correct url is `Dvr/GetExpiringList`.

To reproduce, open a Python shell:
{{{#!python
>>> import MythTV
>>> for i in MythTV.MythXML().getExpiring():
... i
... break
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/MythTV/methodheap.py", line 1202,
in getExpiring
for prog in self._request('Dvr/GetExpiring')\
File "/usr/lib/pymodules/python2.7/MythTV/connections.py", line 574,
in readJSON
return json.loads(self.read())
File "/usr/lib/pymodules/python2.7/MythTV/connections.py", line 563, in
read
def read(self): return self.open().read()
File "/usr/lib/pymodules/python2.7/MythTV/connections.py", line 562, in
open
def open(self): return urllib2.urlopen(self)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 444, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10968>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Aug 18, 2012, 7:11 PM

Post #2 of 3 (61 views)
Permalink
Re: Ticket #10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL [In reply to]

#10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL
-------------------------------+-----------------------------
Reporter: esarfl@… | Owner: wagnerrp
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------+-----------------------------
Changes (by wagnerrp):

* milestone: unknown => 0.26


--
Ticket URL: <http://code.mythtv.org/trac/ticket/10968#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits


noreply at mythtv

Sep 1, 2012, 2:47 PM

Post #3 of 3 (50 views)
Permalink
Re: Ticket #10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL [In reply to]

#10968: Python bindings - MythTV.MythXML().getExpiring has wrong request URL
-------------------------------+-----------------------------
Reporter: esarfl@… | Owner: wagnerrp
Type: Patch - Bug Fix | Status: closed
Priority: minor | Milestone: 0.26
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
-------------------------------+-----------------------------
Changes (by Tom Hayward <esarfl+github@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:e4c6e5db329007a6bbb5e890a3f402982fa03e29/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="e4c6e5db329007a6bbb5e890a3f402982fa03e29"
Correct URL for MythXML.getExpiring()

This changes getExpiring() from using the incorrect "Dvr/GetExpiring" to
the correct "Dvr/GetExpiringList".

Fixes #10968

Signed-off-by: Raymond Wagner <rwagner [at] mythtv>
}}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/10968#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-commits

MythTV commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.