Timeshifting problems with OpenPLi 3.0
Re: Timeshifting problems with OpenPLi 3.0 #541
Re: Timeshifting problems with OpenPLi 3.0 #542
Re: Timeshifting problems with OpenPLi 3.0 #543
Posted 30 March 2013 - 22:48
Hi,
here are 2 patches:
1. Timeshift didn't work for streams. This enables timeshift only for streams with service ref 1:0:... and not with 4097:0:...!!
Problem was that timeshift file was opened with eHttpStream and not with eRawFile, because the main service ref is a stream.
2. If a URL only contains hostname and port (e.g. http://1.2.3.4:8888) it has to end with /. Without / it don't work. I changed it.
And a HTTP redirect didn't work if the Content-Type is behind the Location.
I mean something like this:
GET / HTTP/1.1 Host: w.x.y.z HTTP/1.1 302 Found Date: Sat, 30 Mar 2013 21:51:34 GMT Server: Apache/2.2.15 (Fedora) Location: http://a.b.c.d:8000 Content-Length: 207 Connection: close Content-Type: text/html; charset=iso-8859-1
I know 2. patch has nothing to do with timeshift, but I didn't want to create a new thread for this little patch
EDIT: Sometimes sound was not available while watching timeshift (in streams). I'll try to find out, why sound disappears.
Attached Files
Edited by betacentauri, 30 March 2013 - 22:52.
Re: Timeshifting problems with OpenPLi 3.0 #544
Posted 2 April 2013 - 20:15
I've pushed your second commit, but regarding the first one, wouldn't this simple patch achieve just the same?
--- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -2607,7 +2607,7 @@ void eDVBServicePlay::resetTimeshift(int start) ePtr<iTsSource> eDVBServicePlay::createTsSource(eServiceReferenceDVB &ref, int packetsize) { - if (m_is_stream) + if (ref.path.substr(0, 7) == "http://") { eHttpStream *f = new eHttpStream(); f->open(ref.path.c_str());
Re: Timeshifting problems with OpenPLi 3.0 #545
Re: Timeshifting problems with OpenPLi 3.0 #546
Re: Timeshifting problems with OpenPLi 3.0 #547
Re: Timeshifting problems with OpenPLi 3.0 #548
Re: Timeshifting problems with OpenPLi 3.0 #549
Re: Timeshifting problems with OpenPLi 3.0 #550
Re: Timeshifting problems with OpenPLi 3.0 #551
Re: Timeshifting problems with OpenPLi 3.0 #552
Re: Timeshifting problems with OpenPLi 3.0 #553
Re: Timeshifting problems with OpenPLi 3.0 #554
Re: Timeshifting problems with OpenPLi 3.0 #555
Re: Timeshifting problems with OpenPLi 3.0 #556
Re: Timeshifting problems with OpenPLi 3.0 #557
Posted 12 April 2013 - 08:08
Re: Timeshifting problems with OpenPLi 3.0 #558
Re: Timeshifting problems with OpenPLi 3.0 #559
Re: Timeshifting problems with OpenPLi 3.0 #560
Posted 18 April 2013 - 07:42
littlesat
message Stop timeshift? ->key exit
File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 1614, in checkTimeshiftRunningCallback if "movie" in answer: TypeError: argument of type 'bool' is not iterable
Maybe so...
def checkTimeshiftRunningCallback(self, returnFunction, answer): + if not answer: + return if "movie" in answer: self.save_timeshift_in_movie_dir = True if "save" in answer: self.save_timeshift_file = True self.saveTimeshiftFiles() returnFunction(answer != "continue")
Edited by Dima73, 18 April 2013 - 07:44.
GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K
7 user(s) are reading this topic
0 members, 7 guests, 0 anonymous users