MythTV  master
vimeo_data.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 from string import ascii_uppercase, ascii_lowercase
4 
5 class getData(object):
6  def __init__(self):
7  self.a = '3530346e36313539393971733336717171323031323134377036356f6f367030'
8  self.s = '3330373736326f7236716e30323171'
9 
10  def update(self, data):
11  total = []
12  for char in data.decode("hex"):
13  if char in ascii_uppercase:
14  index = (ascii_uppercase.find(char) + 13) % 26
15  total.append(ascii_uppercase[index])
16  elif char in ascii_lowercase:
17  index = (ascii_lowercase.find(char) + 13) % 26
18  total.append(ascii_lowercase[index])
19  else:
20  total.append(char)
21  return "".join(total)
nv_python_libs.vimeo.vimeo_data.getData.s
s
Definition: vimeo_data.py:8
nv_python_libs.vimeo.vimeo_data.getData.__init__
def __init__(self)
Definition: vimeo_data.py:6
nv_python_libs.vimeo.vimeo_data.getData.a
a
Definition: vimeo_data.py:7
nv_python_libs.vimeo.vimeo_data.getData.update
def update(self, data)
Definition: vimeo_data.py:10
nv_python_libs.vimeo.vimeo_data.getData
Definition: vimeo_data.py:5