- Thread starter
- #31
First guess: update didn't work. Kinda strange, because the changes I did for commit 152b07e818e8f10004b10a985d2e2a18ada5d9e5 were not for offbyone's dll, but for mine...
@joecrow Can you check what happens if you go to the side-menu and update the "Das Erste" from there?
That is what I did when I said I had done a manual update, at least that is what I assume you mean by the side menu, but not clear on how to update Das Erste specifically???? Also when I first went in to OV this morning I got an auto update and though quick I did see Das Erste flash up.
I get the same problems, the dll which gets downloaded during the update does not match the latest GitHub Sources.
@doskabouter you can simply try this with this code (need some usings and references from OnlineVideo.dll, but this is the minimized original code), it says the dll was updated 2018-06-26 20:37:16
and when you downlowd the dll and reflect it e.g. with IlSpy you see the changed code is missing
Code:
Site[] _onlineSites = null;
Dll[] _onlineDlls = null;
OnlineVideosService ws = new OnlineVideosService() { Timeout = 30000, EnableDecompression = true };
try
{
_onlineSites = ws.GetSitesOverview();
}
catch (Exception ex)
{
Log.Warn("Error on getting sites overview from server: {0}", ex.ToString());
}
try
{
_onlineDlls = ws.GetDllsOverview();
}
catch (Exception ex)
{
Log.Warn("Error on getting dlls overview from server: {0}", ex.ToString());
}
var dasErsteSite = _onlineSites.First(s => s.Name.Contains("Das Erste"));
Console.WriteLine(dasErsteSite.LastUpdated);
var dll = _onlineDlls.First(d => d.Name.Contains("offbyone"));
byte[] onlineDllData = ws.GetDll(dll.Name);
var localPath = string.Format(@"C:\Temp\{0}.dll",dll.Name);
if (onlineDllData != null && onlineDllData.Length > 0) File.WriteAllBytes(localPath, onlineDllData);