diff -w /tmp/a /tmp/b 203,205c203,207 < tz = str(timezone()) < start = datetime.datetime.now().strftime('%Y-%m-%dT%H:00:00').replace('T','%20').replace(':00:00','%3A00%3A00.000'+tz) < stop = (datetime.datetime.now() + datetime.timedelta(hours=4)).strftime('%Y-%m-%dT%H:00:00').replace('T','%20').replace(':00:00','%3A00%3A00.000'+tz) --- > tz = timezone() > tz = '{0:04d}'.format(timezone()) > tz = '%2B{}{}:{}{}'.format(*list(tz)) > start = datetime.datetime.now().strftime('%Y-%m-%dT%H:00:00') + tz > stop = (datetime.datetime.now() + datetime.timedelta(hours=4)).strftime('%Y-%m-%dT%H:00:00') + tz 474a477,507 > xbmc.log(str(url), xbmc.LOGERROR) > > if 'deviceModel' not in url: > url += '&deviceModel=Chrome' > if 'deviceType' not in url: > url += '&deviceType=web' > if 'deviceMake' not in url: > url += '&deviceMake=Chrome' > if 'appName' not in url: > url += '&appName=web' > if 'appVersion' not in url: > url += '&appVersion=unknown' > if 'deviceDNT' not in url: > url += '&deviceDNT=0' > if 'deviceLat' not in url: > url += '&deviceLat=53.7548428' > if 'deviceLon' not in url: > url += '&deviceLon=-1.4675813' > if 'deviceVersion' not in url: > url += '&deviceVersion=unknown' > if 'deviceId' not in url: > url += '&deviceId=' + str(uuid.uuid4()) > if 'architecture' not in url: > url += '&architecture=' > if 'sid' not in url: > url += '&sid=' + str(uuid.uuid4()) > if 'userId' not in url: > url += '&userId=' > if 'clientTime' not in url: > url += '&clientTime=' > 478a512 > xbmc.log(str(liz), xbmc.LOGERROR)