Private GIT

Skip to content
Snippets Groups Projects
Commit f241f651 authored by miigotu's avatar miigotu
Browse files

Merge pull request #43 from SickRage/labrys-pep-pytivo

Convert to new style class with explicit object subclassing
parents 3f0786fc 2ac54ccb
Branches
Tags
No related merge requests found
# coding=utf-8
# Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
......@@ -27,7 +29,7 @@ from sickrage.helper.encoding import ek
from sickrage.helper.exceptions import ex
class pyTivoNotifier:
class pyTivoNotifier(object):
def notify_snatch(self, ep_name):
pass
......@@ -63,9 +65,7 @@ class pyTivoNotifier:
# come up with.
#
# Calculated values
showPath = ep_obj.show.location
showName = ep_obj.show.name
rootShowAndSeason = ek(os.path.dirname, ep_obj.location)
......@@ -79,11 +79,11 @@ class pyTivoNotifier:
showAndSeason = rootShowAndSeason.replace(root, "")
container = shareName + "/" + showAndSeason
file = "/" + absPath.replace(root, "")
filename = "/" + absPath.replace(root, "")
# Finally create the url and make request
requestUrl = "http://" + host + "/TiVoConnect?" + urlencode(
{'Command': 'Push', 'Container': container, 'File': file, 'tsn': tsn})
{'Command': 'Push', 'Container': container, 'File': filename, 'tsn': tsn})
logger.log(u"pyTivo notification: Requesting " + requestUrl, logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment