MythTV master
vimeo_data.py
Go to the documentation of this file.
1# -*- coding: utf-8 -*-
2
3from string import ascii_uppercase, ascii_lowercase
4
5class getData(object):
6 def __init__(self):
7 self.a = b'3530346e36313539393971733336717171323031323134377036356f6f367030'
8 self.s = b'3330373736326f7236716e30323171'
9
10 def update_old(self, data):
11 total = []
12 for char in bytes.fromhex(data).decode('ascii'):
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)
22
23 def update(self, data):
24 total = []
25 for char in bytes.fromhex(data).decode('ascii'):
26 print(char)
static void print(const QList< uint > &raw_minimas, const QList< uint > &raw_maximas, const QList< float > &minimas, const QList< float > &maximas)