1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 05:36:59 -05:00

Update Stream Methods

This commit is contained in:
deathbybandaid 2021-01-04 10:18:52 -05:00
parent 8fc69ba973
commit e7e4ddcade
4 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class Direct_M3U8_Stream():
except Exception as e: except Exception as e:
self.fhdhr.logger.info("Connection Closed: " + str(e)) self.fhdhr.logger.info("Connection Closed: " + str(e))
finally: finally:
self.fhdhr.logger.info("Connection Closed: Tuner Lock Removed")
self.tuner.close() self.tuner.close()
# raise TunerError("806 - Tune Failed") # raise TunerError("806 - Tune Failed")

View File

@ -57,6 +57,7 @@ class Direct_Stream():
self.fhdhr.logger.info("Connection Closed: " + str(e)) self.fhdhr.logger.info("Connection Closed: " + str(e))
finally: finally:
req.close() req.close()
self.fhdhr.logger.info("Connection Closed: Tuner Lock Removed")
self.tuner.close() self.tuner.close()
# raise TunerError("806 - Tune Failed") # raise TunerError("806 - Tune Failed")

View File

@ -38,6 +38,8 @@ class FFMPEG_Stream():
finally: finally:
ffmpeg_proc.terminate() ffmpeg_proc.terminate()
ffmpeg_proc.communicate() ffmpeg_proc.communicate()
ffmpeg_proc.kill()
self.fhdhr.logger.info("Connection Closed: Tuner Lock Removed")
self.tuner.close() self.tuner.close()
# raise TunerError("806 - Tune Failed") # raise TunerError("806 - Tune Failed")

View File

@ -39,6 +39,7 @@ class VLC_Stream():
finally: finally:
vlc_proc.terminate() vlc_proc.terminate()
vlc_proc.communicate() vlc_proc.communicate()
vlc_proc.kill()
self.fhdhr.logger.info("Connection Closed: Tuner Lock Removed") self.fhdhr.logger.info("Connection Closed: Tuner Lock Removed")
self.tuner.close() self.tuner.close()
# raise TunerError("806 - Tune Failed") # raise TunerError("806 - Tune Failed")